Skip to content

Conversation

@Meinersbur
Copy link

Adapt the aomp build to llvm/llvm-project#169638 / ROCm/llvm-project#679

The upstream change requires the Flang module files to be built per-target by flang-rt, including for amdgcn-amd-amdhsa. This change adds 'flang-rt' to the LLVM_ENABLE_RUNTIMES for amdgcn-amd-amdhsa to build the modules. The already present runtime 'openmp' will build omp_lib.mod for amdgcn-amd-amdhsa.

This PR does not change build_openmp.sh: Building the .mod files needs to be done only once. The script sets LIBOMP_FORTRAN_MODULES_COMPILER which is the old mechanism to build omp_lib.h. It will just do nothing and can be cleaned up later.

Copy link
Contributor

@ronlieb ronlieb left a comment

Choose a reason for hiding this comment

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

hi michael. a local build succeeded ???

@Meinersbur
Copy link
Author

Meinersbur commented Dec 2, 2025

Local build using build_aomp.sh was fine. check-flang, check-openmp, and run_OpenMP_VV.sh as well.

@Meinersbur
Copy link
Author

Meinersbur commented Dec 2, 2025

I have 20 test with check-offload tests failing on MI210, e.g.

$ llvm-offload-device-info
...
UID: [Liboffload error 8]: provided size is invalid

this seems unrelated

@ronlieb ronlieb self-requested a review December 2, 2025 14:30
@Meinersbur Meinersbur requested review from DominikAdamski and removed request for ronlieb December 2, 2025 14:30
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.

4 participants