Skip to content

Commit 9d75652

Browse files
committed
Fix use of CUDA CCs in LLVM easyblock and cleanup
1 parent cf82901 commit 9d75652

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

easybuild/easyblocks/l/llvm.py

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,18 +1453,17 @@ def sanity_check_step(self, custom_paths=None, custom_commands=None, _extension=
14531453
omp_lib_files += [f'libomptarget-amdgpu-{gfx}.bc' for gfx in self.amd_gfx]
14541454
else:
14551455
omp_lib_files += ['libomptarget-amdgpu.bc']
1456-
1457-
if version < '19':
1458-
# Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1459-
check_lib_files += omp_lib_files
1456+
check_bin_files += ['llvm-omp-kernel-replay']
1457+
if version < '20':
1458+
check_bin_files += ['llvm-omp-device-info']
14601459
else:
1461-
# Starting from LLVM 19, omp related libraries are installed the runtime library directory
1462-
check_librt_files += omp_lib_files
1463-
check_bin_files += ['llvm-omp-kernel-replay']
1464-
if version < '20':
1465-
check_bin_files += ['llvm-omp-device-info']
1466-
else:
1467-
check_bin_files += ['llvm-offload-device-info']
1460+
check_bin_files += ['llvm-offload-device-info']
1461+
if version < '19':
1462+
# Before LLVM 19, omp related libraries are installed under 'ROOT/lib''
1463+
check_lib_files += omp_lib_files
1464+
else:
1465+
# Starting from LLVM 19, omp related libraries are installed the runtime library directory
1466+
check_librt_files += omp_lib_files
14681467

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

0 commit comments

Comments
 (0)