On 11/5/26 2:07 AM, Bohan Lei wrote:
Hi Jeff,
Yea it generally looks good. So the question is do we want to go
forward now or wait. Given the K3 is the more common system available
to end users, I'd suggest trying to understand the regressions over
there. As you note, they may be scheduling problems and I wouldn't
necessarily expect you to go fix scheduling issues with a competitor's
chip ;-) Just understanding is the ask, particularly since I don't have
a high degree of confidence in how well we're modeling the K3/X110
design's behavior.
I looked further into these regressions. Here is what I found:
- nextafter: The regression was gone after I tried to align both branch
addresses with NOPs, which indicates that difference code placement was
the major cause.
Very possible. Alignment sensitivity is common. I've never really
tried to characterize that problem on the K1/K3 designs, but I've
stumbled through them enough in my career to know they happen and often
in unpredictable ways.
- cbrtf: There are two fmv.d.x instructions in the sequence. Starting
from the patched binary, interestingly, replacing the first fmv with a
memory roundtrip resulted in execution time reduction, while replacing
the second resulted in its increase. So still not clear.
Yea, that sounds surprising too. Hard to even start to guess on this one.
- cosh: The function itself was not changed by the patch. The only changed
function in the call chain is the exp function, but the measurement of exp
itself was show performance improvement. The mechanism is yet unclear.
The K1 was really sensitive to process pinning. ie, you could get
meaningful run to run performance deltas for the same binary. Pinning to
a cpu seemed to help considerably. I haven't tried to evaluate the K3
along that axis, but you may be seeing the same kind of effect. Just
something to keep in mind.
jeff