🚀 Recommendation: Remove obsolete CUDA architectures (sm_35, sm_37) from OpenMP build targets #260
Closed
anothergasteizone
started this conversation in
General
Replies: 1 comment
-
I know the problem is not from the repository itself, but i leave this here in case it helps anyone. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When building llvm-project/openmp through rocm_sdk_builder, the build currently fails with:
error: '__nvvm_atom_sys_add_gen_ll' needs target feature sm_60|sm_61|sm_62|sm_70|...
This happens because the build system still includes sm_35 and sm_37 as NVPTX targets.
These architectures (Kepler) are too old and no longer support modern NVVM atomic instructions used in recent Clang/LLVM versions.
Suggested fix:
Remove sm_35 and sm_37 from the NVPTX target list in openmp/libomptarget CMake configuration, e.g.:
set(LIBOMPTARGET_NVPTX_COMPUTE_CAPABILITIES 60 70 75 80 86 90)
This resolves the build errors and keeps compatibility with current CUDA toolchains.
Tested with ROCm SDK 6.1.2 and Clang 17.
Beta Was this translation helpful? Give feedback.
All reactions