Intel MPI module names do not depend on compiler (version).
This commit is contained in:
parent
5f6afe13b4
commit
9069a8dc76
1 changed files with 27 additions and 13 deletions
28
sit
28
sit
|
@ -97,23 +97,37 @@ if [ ! -z "$MPI" ] ; then
|
|||
MPI_MODULE="mpi/$MPI"
|
||||
if [ ! -z "$MPI_VERSION" ] ; then
|
||||
MPI_VERSION_NUM=${MPI_VERSION%%-*}
|
||||
case $MPI in
|
||||
impi)
|
||||
MPI_MODULE=${MPI_MODULE}${MPI_VERSION_NUM:+"/${MPI_VERSION_NUM}"}
|
||||
;;
|
||||
*)
|
||||
MPI_MODULE=${MPI_MODULE}${MPI_VERSION_NUM:+"/${MPI_VERSION_NUM}-$COMPILER-$COMPILER_VERSION"}
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
echo "Loading MPI module ${MPI_MODULE}"
|
||||
module load $MPI_MODULE
|
||||
|
||||
case $COMPILER in
|
||||
gnu)
|
||||
intel)
|
||||
if [[ $mpi == "impi" ]] ; then
|
||||
MPICC="mpiicc"
|
||||
MPICXX="mpiicpc"
|
||||
MPIFC="mpiifort"
|
||||
else
|
||||
MPICC="mpicc"
|
||||
MPICXX="mpicxx"
|
||||
MPIFC="mpif90"
|
||||
fi
|
||||
;;
|
||||
gnu|*)
|
||||
MPICC="mpicc"
|
||||
MPICXX="mpicxx"
|
||||
MPIFC="mpif90"
|
||||
;;
|
||||
intel)
|
||||
MPICC="mpiicc"
|
||||
MPICXX="mpiicpc"
|
||||
MPIFC="mpiifort"
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "MPI compiler env: MPICC=$MPICC, MPICXX=$MPICXX, MPIFC=$MPIFC"
|
||||
MPI_DIR=${MPI_DIR:=$(dirname $(dirname $(which $MPICC)))}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue