Compilation issues with latest intel-MPI
The latest intel-MPI (mpiifort version>v18) is not able to support -openmp it should be -qopenmp. To resolve this issue need to change in jobcomp file line 294-305. with the following lines:
echo "Checking COMPILEOMP..."
Extracting the Intel Compiler version
INTEL_VERSION=$(ifort --version 2>&1 | grep -oP "(\d+)" | head -n1)
Check if OpenMP is supported
if [ "(
CPP1 testkeys.F | grep -i -q openmp)" ]; then
COMPILEOMP=TRUE
if [[ $OS == Linux || $OS == Darwin ]]; then
if [[ $FC == gfortran ]]; then
FFLAGS1="$FFLAGS1 -fopenmp"
elif [[ $FC == ifort || $FC == ifc ]]; then
# Compare the version with 18
if [[ "$INTEL_VERSION" -gt 18 ]]; then
FFLAGS1="$FFLAGS1 -qopenmp"
else
FFLAGS1="$FFLAGS1 -openmp"
fi
fi
Edited by Subhadeep Maishal