Skip to content

Commit b39dce4

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

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
@@ -518,7 +518,7 @@ def _configure_final_build(self):
518518
if self.cfg['build_openmp_offload']:
519519
# Force dlopen of the GPU libraries at runtime, not using existing libraries
520520
if LooseVersion(self.version) >= '19':
521-
self.runtimes_cmake_args['LIBOMPTARGET_PLUGINS_TO_BUILD'] = '%s' % '|'.join(self.offload_targets)
521+
self._cmakeopts['LIBOMPTARGET_PLUGINS_TO_BUILD'] = self.list_to_cmake_arg(self.offload_targets)
522522
dlopen_plugins = set(self.offload_targets) & set(AVAILABLE_OFFLOAD_DLOPEN_PLUGIN_OPTIONS)
523523
if dlopen_plugins:
524524
self._cmakeopts['LIBOMPTARGET_DLOPEN_PLUGINS'] = self.list_to_cmake_arg(dlopen_plugins)
@@ -1463,18 +1463,17 @@ def sanity_check_step(self, custom_paths=None, custom_commands=None, *args, **kw
14631463
omp_lib_files += [f'libomptarget-amdgpu-{gfx}.bc' for gfx in self.amd_gfx]
14641464
else:
14651465
omp_lib_files += ['libomptarget-amdgpu.bc']
1466-
1467-
if version < '19':
1468-
# Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1469-
check_lib_files += omp_lib_files
1466+
check_bin_files += ['llvm-omp-kernel-replay']
1467+
if version < '20':
1468+
check_bin_files += ['llvm-omp-device-info']
14701469
else:
1471-
# Starting from LLVM 19, omp related libraries are installed the runtime library directory
1472-
check_librt_files += omp_lib_files
1473-
check_bin_files += ['llvm-omp-kernel-replay']
1474-
if version < '20':
1475-
check_bin_files += ['llvm-omp-device-info']
1476-
else:
1477-
check_bin_files += ['llvm-offload-device-info']
1470+
check_bin_files += ['llvm-offload-device-info']
1471+
if version < '19':
1472+
# Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1473+
check_lib_files += omp_lib_files
1474+
else:
1475+
# Starting from LLVM 19, omp related libraries are installed the runtime library directory
1476+
check_librt_files += omp_lib_files
14781477

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

0 commit comments

Comments
 (0)