Skip to content

Commit d56e66a

Browse files
committed
Fix use of CUDA CCs in LLVM easyblock and cleanup
1 parent 1d2cc7f commit d56e66a

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

easybuild/easyblocks/l/llvm.py

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def _configure_final_build(self):
526526
if self.cfg['build_openmp_offload']:
527527
# Force dlopen of the GPU libraries at runtime, not using existing libraries
528528
if LooseVersion(self.version) >= '19':
529-
self.runtimes_cmake_args['LIBOMPTARGET_PLUGINS_TO_BUILD'] = '%s' % '|'.join(self.offload_targets)
529+
self._cmakeopts['LIBOMPTARGET_PLUGINS_TO_BUILD'] = self.list_to_cmake_arg(self.offload_targets)
530530
dlopen_plugins = set(self.offload_targets) & set(AVAILABLE_OFFLOAD_DLOPEN_PLUGIN_OPTIONS)
531531
if dlopen_plugins:
532532
self._cmakeopts['LIBOMPTARGET_DLOPEN_PLUGINS'] = self.list_to_cmake_arg(dlopen_plugins)
@@ -1458,18 +1458,17 @@ def sanity_check_step(self, custom_paths=None, custom_commands=None, *args, **kw
14581458
omp_lib_files += [f'libomptarget-amdgpu-{gfx}.bc' for gfx in self.amd_gfx]
14591459
else:
14601460
omp_lib_files += ['libomptarget-amdgpu.bc']
1461-
1462-
if version < '19':
1463-
# Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1464-
check_lib_files += omp_lib_files
1461+
check_bin_files += ['llvm-omp-kernel-replay']
1462+
if version < '20':
1463+
check_bin_files += ['llvm-omp-device-info']
14651464
else:
1466-
# Starting from LLVM 19, omp related libraries are installed the runtime library directory
1467-
check_librt_files += omp_lib_files
1468-
check_bin_files += ['llvm-omp-kernel-replay']
1469-
if version < '20':
1470-
check_bin_files += ['llvm-omp-device-info']
1471-
else:
1472-
check_bin_files += ['llvm-offload-device-info']
1465+
check_bin_files += ['llvm-offload-device-info']
1466+
if version < '19':
1467+
# Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1468+
check_lib_files += omp_lib_files
1469+
else:
1470+
# Starting from LLVM 19, omp related libraries are installed the runtime library directory
1471+
check_librt_files += omp_lib_files
14731472

14741473
if self.cfg['build_openmp_tools']:
14751474
check_files += [os.path.join('lib', 'clang', resdir_version, 'include', 'ompt.h')]

0 commit comments

Comments
 (0)