Skip to content
Snippets Groups Projects
Commit 6abfb0bd authored by Simon May's avatar Simon May
Browse files

Fix module-exists.sh, update Intel modules

parent 2e1e162d
No related branches found
No related tags found
No related merge requests found
...@@ -3,15 +3,10 @@ ...@@ -3,15 +3,10 @@
. ~/modules/module-exists.sh . ~/modules/module-exists.sh
module purge module purge
if module_exists intel/21.2.0; then
# Raven module load intel/21.7.1
module load intel/21.2.0 module load impi/2021.7
module load impi/2021.2
else
# Freya, Cobra
module load intel/19.1.3
module load impi/2019.9
fi
. ~/modules/common.sh . ~/modules/common.sh
# if running interactively: set MPI variables; else stop # if running interactively: set MPI variables; else stop
......
#!/bin/sh #!/bin/sh
module_exists() { module_exists() {
avail=$(module avail "$1" 2>&1) module avail "$1" 2>&1 | grep -q "$1"
[ -n "$avail" ]
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment