set MPICXX and MPIFC for gnu/intel compilers
This commit is contained in:
parent
f087f698ac
commit
8f74c65c11
1 changed files with 13 additions and 1 deletions
14
sit
14
sit
|
@ -101,7 +101,19 @@ if [ ! -z "$MPI" ] ; then
|
||||||
fi
|
fi
|
||||||
echo "Loading MPI module ${MPI_MODULE}"
|
echo "Loading MPI module ${MPI_MODULE}"
|
||||||
module load $MPI_MODULE
|
module load $MPI_MODULE
|
||||||
MPICC="mpicc"
|
case $COMPILER in
|
||||||
|
gnu)
|
||||||
|
MPICC="mpicc"
|
||||||
|
MPICXX="mpicxx"
|
||||||
|
MPIFC="mpif90"
|
||||||
|
;;
|
||||||
|
intel)
|
||||||
|
MPICC="mpiicc"
|
||||||
|
MPICXX="mpiicpc"
|
||||||
|
MPIFC="mpiifort"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
MPI_DIR=${MPI_DIR:=$(dirname $(dirname $(which $MPICC)))}
|
MPI_DIR=${MPI_DIR:=$(dirname $(dirname $(which $MPICC)))}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue