You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[LLVMCPU] Lowering strategy selection is non-deterministic for a decomposed softmax #25258
Compiling the same input repeatedly with the same iree-compile gives two different results. The vector_common_parallel tile size that iree-llvmcpu-select-lowering-strategy picks for the first loop of the softmax dispatch alternates between runs.
The same happens with --iree-llvmcpu-target-cpu=host on an Apple M4 ([4] vs [1]) and with --iree-llvmcpu-target-triple=aarch64-unknown-linux-gnu --iree-llvmcpu-target-cpu=cortex-a76. With --compile-to=executable-sources the output is the same on every run.
tests/e2e/stablehlo_models/mnist_fake_weights.mlir shows it too, in its softmax dispatch; its .vmfb differs between runs.
What component(s) does this issue relate to?
Compiler
Version information
main at 957e6b5, built from source on macOS (arm64), release build.
Hi @Manewing, is anyone already working on this? Local checks on an ARM64 host with the November 17 nightly (8953bcf) reproduce the changing vector_common_parallel sizes for both Haswell and Cortex-A76 targets. The executable-sources output stayed identical in 16 runs per target. Final VMFB files were also stable in 16 runs per input and target for softmax and MNIST. I'd like to investigate the ordering of equal-priority candidates in fillTileSizesWithNonRootOps, while preserving the existing PackOp priority.
Would that be a useful direction to take?
Activity
yashb98 commentedon Nov 17, 2026
Hi @Manewing, is anyone already working on this? Local checks on an ARM64 host with the November 17 nightly (8953bcf) reproduce the changing vector_common_parallel sizes for both Haswell and Cortex-A76 targets. The executable-sources output stayed identical in 16 runs per target. Final VMFB files were also stable in 16 runs per input and target for softmax and MNIST. I'd like to investigate the ordering of equal-priority candidates in fillTileSizesWithNonRootOps, while preserving the existing PackOp priority.
Would that be a useful direction to take?