File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments