Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
config
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Simon May
config
Commits
6abfb0bd
Commit
6abfb0bd
authored
2 years ago
by
Simon May
Browse files
Options
Downloads
Patches
Plain Diff
Fix module-exists.sh, update Intel modules
parent
2e1e162d
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/intel.sh
+4
-9
4 additions, 9 deletions
modules/intel.sh
modules/module-exists.sh
+1
-2
1 addition, 2 deletions
modules/module-exists.sh
with
5 additions
and
11 deletions
modules/intel.sh
+
4
−
9
View file @
6abfb0bd
...
...
@@ -3,15 +3,10 @@
.
~/modules/module-exists.sh
module purge
if
module_exists intel/21.2.0
;
then
# Raven
module load intel/21.2.0
module load impi/2021.2
else
# Freya, Cobra
module load intel/19.1.3
module load impi/2019.9
fi
module load intel/21.7.1
module load impi/2021.7
.
~/modules/common.sh
# if running interactively: set MPI variables; else stop
...
...
This diff is collapsed.
Click to expand it.
modules/module-exists.sh
+
1
−
2
View file @
6abfb0bd
#!/bin/sh
module_exists
()
{
avail
=
$(
module avail
"
$1
"
2>&1
)
[
-n
"
$avail
"
]
module avail
"
$1
"
2>&1 |
grep
-q
"
$1
"
}
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