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
bb3ad08d
Commit
bb3ad08d
authored
3 years ago
by
Damian Alvarez
Browse files
Options
Downloads
Patches
Plain Diff
To make sure that mpicc (and family) actually uses intel compilers
parent
0174fb7d
No related branches found
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
+9
-6
9 additions, 6 deletions
Custom_Hooks/eb_hooks.py
with
9 additions
and
6 deletions
Custom_Hooks/eb_hooks.py
+
9
−
6
View file @
bb3ad08d
...
@@ -214,13 +214,13 @@ def parse_hook(ec, *args, **kwargs):
...
@@ -214,13 +214,13 @@ def parse_hook(ec, *args, **kwargs):
installation_vetoer
(
ec
)
installation_vetoer
(
ec
)
# Process compiler options
# Process compiler options
ec
=
inject_compiler_
feature
s
(
ec
)
ec
=
inject_compiler_
tweak
s
(
ec
)
# Process MPI options
# Process MPI options
ec
=
inject_mpi_
feature
s
(
ec
)
ec
=
inject_mpi_
tweak
s
(
ec
)
# Process UCX options
# Process UCX options
ec
=
inject_ucx_
feature
s
(
ec
)
ec
=
inject_ucx_
tweak
s
(
ec
)
# Change module name if applicable
# Change module name if applicable
ec
=
inject_modaltsoftname
(
ec
)
ec
=
inject_modaltsoftname
(
ec
)
...
@@ -379,7 +379,7 @@ def inject_modaltsoftname(ec):
...
@@ -379,7 +379,7 @@ def inject_modaltsoftname(ec):
return
ec
return
ec
def
inject_ucx_
feature
s
(
ec
):
def
inject_ucx_
tweak
s
(
ec
):
# UCX require to load UCX-settings
# UCX require to load UCX-settings
ec_dict
=
ec
.
asdict
()
ec_dict
=
ec
.
asdict
()
if
ec
.
name
in
'
UCX
'
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
if
ec
.
name
in
'
UCX
'
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
...
@@ -400,8 +400,11 @@ end
...
@@ -400,8 +400,11 @@ end
return
ec
return
ec
def
inject_mpi_
feature
s
(
ec
):
def
inject_mpi_
tweak
s
(
ec
):
ec_dict
=
ec
.
asdict
()
ec_dict
=
ec
.
asdict
()
if
ec
.
name
==
'
impi
'
:
ec
[
'
set_mpi_wrappers_all
'
]
=
'
True
'
ec
.
log
.
info
(
"
[parse hook] Injecting set_mpi_wrappers_all = True
"
)
# MPIs are a family (in the Lmod sense) and require to load mpi-settings
# MPIs are a family (in the Lmod sense) and require to load mpi-settings
if
ec
.
name
in
SUPPORTED_MPIS
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
if
ec
.
name
in
SUPPORTED_MPIS
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
key
=
"
modluafooter
"
key
=
"
modluafooter
"
...
@@ -422,7 +425,7 @@ family("mpi")
...
@@ -422,7 +425,7 @@ family("mpi")
return
ec
return
ec
def
inject_compiler_
feature
s
(
ec
):
def
inject_compiler_
tweak
s
(
ec
):
ec_dict
=
ec
.
asdict
()
ec_dict
=
ec
.
asdict
()
# Compilers are are a family (in the Lmod sense)
# Compilers are are a family (in the Lmod sense)
if
ec
.
name
in
SUPPORTED_COMPILERS
:
if
ec
.
name
in
SUPPORTED_COMPILERS
:
...
...
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