@@ -518,7 +518,7 @@ def _configure_final_build(self):
518
518
if self .cfg ['build_openmp_offload' ]:
519
519
# Force dlopen of the GPU libraries at runtime, not using existing libraries
520
520
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 )
522
522
dlopen_plugins = set (self .offload_targets ) & set (AVAILABLE_OFFLOAD_DLOPEN_PLUGIN_OPTIONS )
523
523
if dlopen_plugins :
524
524
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
1463
1463
omp_lib_files += [f'libomptarget-amdgpu-{ gfx } .bc' for gfx in self .amd_gfx ]
1464
1464
else :
1465
1465
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' ]
1470
1469
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
1478
1477
1479
1478
if self .cfg ['build_openmp_tools' ]:
1480
1479
check_files += [os .path .join ('lib' , 'clang' , resdir_version , 'include' , 'ompt.h' )]
0 commit comments