@@ -522,7 +522,7 @@ def _configure_final_build(self):
522
522
if self .cfg ['build_openmp_offload' ]:
523
523
# Force dlopen of the GPU libraries at runtime, not using existing libraries
524
524
if LooseVersion (self .version ) >= '19' :
525
- self .runtimes_cmake_args ['LIBOMPTARGET_PLUGINS_TO_BUILD' ] = '%s' % '|' . join (self .offload_targets )
525
+ self ._cmakeopts ['LIBOMPTARGET_PLUGINS_TO_BUILD' ] = self . list_to_cmake_arg (self .offload_targets )
526
526
dlopen_plugins = set (self .offload_targets ) & set (AVAILABLE_OFFLOAD_DLOPEN_PLUGIN_OPTIONS )
527
527
if dlopen_plugins :
528
528
self ._cmakeopts ['LIBOMPTARGET_DLOPEN_PLUGINS' ] = self .list_to_cmake_arg (dlopen_plugins )
@@ -1453,18 +1453,17 @@ def sanity_check_step(self, custom_paths=None, custom_commands=None, *args, **kw
1453
1453
omp_lib_files += [f'libomptarget-amdgpu-{ gfx } .bc' for gfx in self .amd_gfx ]
1454
1454
else :
1455
1455
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' ]
1460
1459
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
1468
1467
1469
1468
if self .cfg ['build_openmp_tools' ]:
1470
1469
check_files += [os .path .join ('lib' , 'clang' , resdir_version , 'include' , 'ompt.h' )]
0 commit comments