Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions easybuild/easyblocks/l/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,20 @@ def _configure_final_build(self):
self._cmakeopts['LIBOMP_INSTALL_ALIASES'] = 'OFF'
if not self.cfg['build_openmp_tools']:
self._cmakeopts['OPENMP_ENABLE_OMPT_TOOLS'] = 'OFF'
# Force dlopen of the GPU libraries at runtime, not using existing libraries
if LooseVersion(self.version) >= LooseVersion('19'):
dlopen_plugin_list = []
if self.amdgpu_target_cond:
dlopen_plugin_list += ['amdgpu']
if self.nvptx_target_cond:
dlopen_plugin_list += ['cuda']
if dlopen_plugin_list:
self.runtimes_cmake_args['LIBOMPTARGET_DLOPEN_PLUGINS'] = '%s' % '|'.join(dlopen_plugin_list)
else:
if self.amdgpu_target_cond:
self._cmakeopts['LIBOMPTARGET_FORCE_DLOPEN_LIBHSA'] = 'ON'
if self.nvptx_target_cond:
self._cmakeopts['LIBOMPTARGET_FORCE_DLOPEN_LIBCUDA'] = 'ON'

# Make sure tests are not running with more than 'parallel' tasks
parallel = self.cfg.parallel
Expand Down