Skip to content
Snippets Groups Projects
Commit 5b3f99b5 authored by Sebastian Achilles's avatar Sebastian Achilles
Browse files

set MKL_THREADING_LAYER in hook

parent ee17c9d5
Branches
No related tags found
No related merge requests found
......@@ -88,6 +88,11 @@ TWEAKABLE_DEPENDENCIES = {
'UCX': 'default',
}
MKL_THREADING_LAYER = {
'GCC': 'GNU',
'intel-compilers': 'INTEL',
}
SIDECOMPILERS = ['AOCC', 'Clang']
common_site_contact = 'Support <sc@fz-juelich.de>'
......@@ -614,3 +619,14 @@ def pre_ready_hook(self, *args, **kwargs):
path_to_ec,
)
exit(1)
def pre_module_hook(self, *args, **kwargs):
# Compilers need to set MKL_THREADING_LAYER
if self.name in MKL_THREADING_LAYER:
# Must be done this way, updating self.cfg['modextravars']
# directly doesn't work due to templating.
with self.cfg.disable_templating():
self.cfg['modextravars'].update({
'MKL_THREADING_LAYER': MKL_THREADING_LAYER[self.name]
})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment