I_MPI_F90="$FC" for Intel mpif90

This commit is contained in:
edoapra 2022-01-19 10:30:48 -08:00
parent 28b8678838
commit 757e66be6d
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0
3 changed files with 5 additions and 1 deletions

View file

@ -56,7 +56,8 @@ esac
"$IONEAPI_ROOT"/ipp "$IONEAPI_ROOT"/conda_channel "$IONEAPI_ROOT"/dnnl \
"$IONEAPI_ROOT"/installer "$IONEAPI_ROOT"/vtune_profiler "$IONEAPI_ROOT"/tbb || true
fi
source "$IONEAPI_ROOT"/setvars.sh || true
source "$IONEAPI_ROOT"/setvars.sh || true
export I_MPI_F90="$FC"
ls -lrta ~/apps/oneapi ||true
df -h
rm -f *dmg || true

View file

@ -53,6 +53,7 @@ else
unset BUILD_OPENBLAS
export BLAS_SIZE=8
export LAPACK_LIB="$BLASOPT"
export I_MPI_F90="$FC"
elif [[ "$FC" == "flang" ]] || [[ "$(basename -- $FC | cut -d \- -f 1)" == "nvfortran" ]] ; then
export BUILD_MPICH=1
if [[ "$FC" == "flang" ]]; then

View file

@ -66,6 +66,7 @@ if [[ "$FC" == "ifort" ]] || [[ "$FC" == "ifx" ]] ; then
;;
esac
source "$IONEAPI_ROOT"/compiler/latest/env/vars.sh
export I_MPI_F90="$FC"
"$FC" -V
if [ -f "$IONEAPI_ROOT"/mkl/latest/env/vars.sh ] ; then
source "$IONEAPI_ROOT"/mkl/latest/env/vars.sh
@ -74,6 +75,7 @@ if [[ "$FC" == "ifort" ]] || [[ "$FC" == "ifx" ]] ; then
fi
if [[ "$MPI_IMPL" == "intel" ]]; then
source /opt/intel/oneapi/mpi/latest/env/vars.sh
export I_MPI_F90="$FC"
mpif90 -v
mpif90 -show
if [ -f /opt/intel/oneapi/mkl/latest/env/vars.sh ] ; then