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
a91ae195
Commit
a91ae195
authored
3 years ago
by
Damian Alvarez
Browse files
Options
Downloads
Patches
Plain Diff
To make the UCX module a bit smarter, and try to keep CUDA settings if they were selected before
parent
85966bbf
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
-2
9 additions, 2 deletions
Custom_Hooks/eb_hooks.py
with
9 additions
and
2 deletions
Custom_Hooks/eb_hooks.py
+
9
−
2
View file @
a91ae195
...
@@ -404,8 +404,15 @@ def inject_ucx_tweaks(ec):
...
@@ -404,8 +404,15 @@ def inject_ucx_tweaks(ec):
if
ec
.
name
in
'
UCX
'
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
if
ec
.
name
in
'
UCX
'
and
install_path
().
lower
().
startswith
(
'
/p/software
'
):
key
=
"
modluafooter
"
key
=
"
modluafooter
"
value
=
'''
value
=
'''
if not ( isloaded(
"
UCX-settings
"
) ) then
-- This weird construct is to prevent lmod from loading the default settings when reloading/swapping UCX
load(
"
UCX-settings
"
)
-- Unfortunately we can
'
t do better (like preserving the UCX transport for CUDA, since the loaded
-- UCX-settings module is lost during the reload
if mode()==
"
load
"
then
if isloaded(
"
mpi-settings/CUDA
"
) then
try_load(
"
UCX-settings/RC-CUDA
"
)
else
try_load(
"
UCX-settings
"
)
end
end
end
'''
'''
if
key
in
ec_dict
:
if
key
in
ec_dict
:
...
...
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