[clang] [HIP] Remove default `-flto-partitions=8` in the HIP toolchain (PR #203948)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 18 06:15:52 PDT 2026
jhuber6 wrote:
> Output or behavior ? Does the observable program behavior change ?
Yes, this was motivated by a regression dcsrgemm. You could probably mitigate that in other ways, but I still believe this should not be default. `-flto-partitions=8` is *extremely* annoying for debugging because it makes 8 temp files, and the number 8 is just a hand-waving guess at the number of threads the user has or would want.
> Does it cause issues with the kernel descriptor ?
Yes, I raised https://github.com/ROCm/rocm-systems/issues/3573 a long time ago and I don't think it's been fixed. I've also fixed issues like https://github.com/llvm/llvm-project/pull/187295 in the past.
> If there are issues with SplitModule that cause programs to become incorrect, then tickets/upstream issues should be filed before this lands.
Hard disagree, doing this by default is bad even if it works perfectly fine.
https://github.com/llvm/llvm-project/pull/203948
More information about the cfe-commits
mailing list