Skip to content

Commit ea956a6

Browse files
committed
Explicitely set OMPT options for LLVM
1 parent 4f9dddc commit ea956a6

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

easybuild/easyblocks/l/llvm.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,13 @@ def _configure_final_build(self):
575575
self._cmakeopts['LIBOMPTARGET_FORCE_DLOPEN_LIBCUDA'] = 'ON'
576576
self._cmakeopts['OPENMP_ENABLE_LIBOMPTARGET'] = 'ON'
577577
self._cmakeopts['LIBOMP_INSTALL_ALIASES'] = 'ON' if self.cfg['build_openmp_library_aliases'] else 'OFF'
578-
if not self.cfg['build_openmp_tools']:
579-
self._cmakeopts['OPENMP_ENABLE_OMPT_TOOLS'] = 'OFF'
578+
# OpenMP Tools interface
579+
ompt_value = 'ON' if self.cfg['build_openmp_tools'] else 'OFF'
580+
self._cmakeopts['LIBOMP_OMPT_SUPPORT'] = ompt_value
581+
if self.cfg['build_openmp_offload']:
582+
self._cmakeopts['LIBOMPTARGET_OMPT_SUPPORT'] = ompt_value
583+
# OMPT based tools
584+
self._cmakeopts['OPENMP_ENABLE_OMPT_TOOLS'] = ompt_value
580585

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

0 commit comments

Comments
 (0)