Skip to content

[openmp] Fix device omp_lib.mod build to use host flang-rt modules#3094

Open
skganesan008 wants to merge 1 commit into
amd-feature/wave-transformfrom
fix/device-omp-lib-flang-rt-modules
Open

[openmp] Fix device omp_lib.mod build to use host flang-rt modules#3094
skganesan008 wants to merge 1 commit into
amd-feature/wave-transformfrom
fix/device-omp-lib-flang-rt-modules

Conversation

@skganesan008

Copy link
Copy Markdown
Collaborator

Device runtimes sub-builds configure with LLVM_ENABLE_RUNTIMES=openmp only, so omp_lib.F90 for amdgcn/nvptx can compile before iso_c_binding.mod exists. Point libomp-mod at the host flang-rt module directory and order device runtimes builds after flang-rt-mod.

@rocm-cciapp

rocm-cciapp Bot commented Jun 27, 2026

Copy link
Copy Markdown

Device runtimes sub-builds configure with LLVM_ENABLE_RUNTIMES=openmp only,
so omp_lib.F90 for amdgcn/nvptx can compile before iso_c_binding.mod exists.
Point libomp-mod at the host flang-rt module directory and order device
runtimes builds after flang-rt-mod.
@skganesan008 skganesan008 force-pushed the fix/device-omp-lib-flang-rt-modules branch from 6fb0953 to c87df6e Compare June 27, 2026 15:45
@rocm-cciapp

rocm-cciapp Bot commented Jun 27, 2026

Copy link
Copy Markdown

@skganesan008

Copy link
Copy Markdown
Collaborator Author

llvm#188495 seems to be addressing the same/similar problem

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.

1 participant