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
12
sit
12
sit
|
@ -101,7 +101,19 @@ if [ ! -z "$MPI" ] ; then
|
|||
fi
|
||||
echo "Loading MPI module ${MPI_MODULE}"
|
||||
module load $MPI_MODULE
|
||||
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)))}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue