move mpif90 check

This commit is contained in:
edoapra 2023-01-09 15:31:44 -08:00
parent 51b5685c58
commit d424b23449
No known key found for this signature in database
GPG key ID: 48E12DA1EDE9E1B0

View file

@ -148,7 +148,7 @@ if [[ "$os" == "Linux" ]]; then
if [[ "$MPI_IMPL" != "intel" ]]; then
sudo apt-get -y install "$mpi_libdev" "$mpi_bin"
fi
# check for mpif90 command and exit if not present
if [[ "$FC" == "gfortran-11" ]] || [[ "$CC" == "gcc-11" ]]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -y install gcc-11 gfortran-11 g++-11
@ -237,4 +237,8 @@ if [[ "$os" == "Linux" ]]; then
which nvfortran
fi
fi
# check for mpif90 command and exit if not present
if [[ ! $(command -v mpif90) ]]; then echo "mpif90 not present"; exit 1; fi
echo "mpif90 -show output is " `mpif90 -show` || true
echo "which mpif90 output is " `which mpif90` || true
fi