ompi-switch.sh (modules-5.1.1.tar.bz2) | : | ompi-switch.sh (modules-5.2.0.tar.bz2) | ||
---|---|---|---|---|
#!/bin/bash | #!/bin/bash | |||
source $MOD_GIT_ROOTDIR/doc/example/compiler-etc-dependencies/example-sessions/c ommon_code.sh | source "$MOD_GIT_ROOTDIR"/doc/example/compiler-etc-dependencies/example-sessions /common_code.sh | |||
do_cmd module purge | do_cmd module purge | |||
do_cmd module load pgi/19.4 | do_cmd module load pgi/19.4 | |||
do_cmd module load openmpi | do_cmd module load openmpi | |||
do_cmd module list | do_cmd module list | |||
do_cmd mpirun | do_cmd mpirun | |||
do_cmd module switch $AUTOFLAG pgi intel/2019 | do_cmd module switch "$AUTOFLAG" pgi intel/2019 | |||
do_cmd module list | do_cmd module list | |||
do_cmd mpirun | do_cmd mpirun | |||
case $TMP_STRATEGY in | case $TMP_STRATEGY in | |||
flavours) | flavours) | |||
#Try switching to intel/2018, which does not support openmpi/4.0 | #Try switching to intel/2018, which does not support openmpi/4.0 | |||
case $TMP_MODVERSION in | case $TMP_MODVERSION in | |||
3.*) | 3.*) | |||
#Only do it on 3.x, as switch fails on 4.x | #Only do it on 3.x, as switch fails on 4.x | |||
do_cmd module switch $AUTOFLAG intel intel/2018 | do_cmd module switch "$AUTOFLAG" intel intel/2018 | |||
do_cmd module list | do_cmd module list | |||
do_cmd mpirun | do_cmd mpirun | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
homebrewed|modulepath) | homebrewed|modulepath) | |||
#Try switching to intel/2018, which does not support openmpi/4.0 | #Try switching to intel/2018, which does not support openmpi/4.0 | |||
case $TMP_MODVERSION in | case $TMP_MODVERSION in | |||
4.*) | 4.*) | |||
#Only do it on 4.x, as switch fails on 3.x | #Only do it on 4.x, as switch fails on 3.x | |||
do_cmd module switch $AUTOFLAG intel intel/2018 | do_cmd module switch "$AUTOFLAG" intel intel/2018 | |||
do_cmd module list | do_cmd module list | |||
do_cmd mpirun | do_cmd mpirun | |||
;; | ;; | |||
esac | esac | |||
;; | ;; | |||
modulerc) | modulerc) | |||
#We failed to reload openmpi on switch to intel/2018, no need to | #We failed to reload openmpi on switch to intel/2018, no need to | |||
#continue | #continue | |||
;; | ;; | |||
esac | esac | |||
End of changes. 4 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added |