@@ -526,7 +526,7 @@ def _configure_final_build(self):
526
526
if self .cfg ['build_openmp_offload' ]:
527
527
# Force dlopen of the GPU libraries at runtime, not using existing libraries
528
528
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 )
530
530
dlopen_plugins = set (self .offload_targets ) & set (AVAILABLE_OFFLOAD_DLOPEN_PLUGIN_OPTIONS )
531
531
if dlopen_plugins :
532
532
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
1458
1458
omp_lib_files += [f'libomptarget-amdgpu-{ gfx } .bc' for gfx in self .amd_gfx ]
1459
1459
else :
1460
1460
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' ]
1465
1464
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
1473
1472
1474
1473
if self .cfg ['build_openmp_tools' ]:
1475
1474
check_files += [os .path .join ('lib' , 'clang' , resdir_version , 'include' , 'ompt.h' )]
0 commit comments