Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
easybuild-repository-public-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DEEP-SEA
easybuild-repository-public-release
Commits
5b3f99b5
Commit
5b3f99b5
authored
2 years ago
by
Sebastian Achilles
Browse files
Options
Downloads
Patches
Plain Diff
set MKL_THREADING_LAYER in hook
parent
ee17c9d5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Custom_Hooks/eb_hooks.py
+16
-0
16 additions, 0 deletions
Custom_Hooks/eb_hooks.py
with
16 additions
and
0 deletions
Custom_Hooks/eb_hooks.py
+
16
−
0
View file @
5b3f99b5
...
...
@@ -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
]
})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment