Skip to content

Conversation

@krzysz00
Copy link
Contributor

@krzysz00 krzysz00 commented Mar 27, 2025

Explicitly set amdhsa_code_object_version when constructing ROCm LLVM modules, explicitly pass -mcode-object-version=N to microkernel compiles, and explicitly set the __oclc_ABI_version global, so that we don't get hit with errors about being unable to run our binaries from the compiler default code object version getting bumped further than what our users or CI support.

The default code object version in LLVM as of this commit is 6, we pin to 5. The followup work to update to v6 is #20423 .

@krzysz00
Copy link
Contributor Author

@Groverkss Please review changes related to your upstream refactoring of vector lowering patterns

Copy link
Member

@kuhar kuhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for figuring this out and unblocking us

@krzysz00 krzysz00 merged commit 884a518 into main Apr 1, 2025
47 checks passed
@krzysz00 krzysz00 deleted the integrates/llvm-20250327 branch April 1, 2025 03:32
bangtianliu pushed a commit to bangtianliu/iree that referenced this pull request Apr 8, 2025
- Add calls to `populateVectorGatherLoweringPatterns` and
`populateVectorGatherToConditionalLoadPatterns` as needed to handle
upstream llvm/llvm-project#132206
- Update ROCDL tests to account for
llvm/llvm-project#131850
- Disable `tosa.reduce_prod` and `tosa.clamp` tests on integers
temporarily since they're failing Tosa verification - see iree-org#20422

Explicitly set `amdhsa_code_object_version` when constructing ROCm LLVM
modules, explicitly pass `-mcode-object-version=N` to microkernel
compiles, and explicitly set the `__oclc_ABI_version` global, so that we
don't get hit with errors about being unable to run our binaries from
the compiler default code object version getting bumped further than
what our users or CI support.

The default code object version in LLVM as of this commit is 6, we pin
to 5. The followup work to update to v6 is iree-org#20423 .
AWoloszyn pushed a commit that referenced this pull request Dec 1, 2025
- Add calls to `populateVectorGatherLoweringPatterns` and
`populateVectorGatherToConditionalLoadPatterns` as needed to handle
upstream llvm/llvm-project#132206
- Update ROCDL tests to account for
llvm/llvm-project#131850
- Disable `tosa.reduce_prod` and `tosa.clamp` tests on integers
temporarily since they're failing Tosa verification - see #20422

Explicitly set `amdhsa_code_object_version` when constructing ROCm LLVM
modules, explicitly pass `-mcode-object-version=N` to microkernel
compiles, and explicitly set the `__oclc_ABI_version` global, so that we
don't get hit with errors about being unable to run our binaries from
the compiler default code object version getting bumped further than
what our users or CI support.

The default code object version in LLVM as of this commit is 6, we pin
to 5. The followup work to update to v6 is #20423 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants