Skip to content

Commit

Permalink
Build: check CC compiler type in HYPRE build
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcdermo committed Oct 28, 2024
1 parent 3136d43 commit d0d1444
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Build/Scripts/HYPRE/confmake_impi_intel_linux.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
./configure CC=mpiicc FC=mpiifort CFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" FFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" \
# Check for mpiicx or mpiicc
if command -v mpiicx &> /dev/null; then
CC=mpiicx
elif command -v mpiicc &> /dev/null; then
CC=mpiicc
else
echo "Error: Neither mpiicx nor mpiicc is available on this system."
exit 1
fi

./configure CC=$CC FC=mpiifort CFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" FFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" \
--prefix=$FIREMODELS/libs/hypre/$HYPRE_VERSION
make install

0 comments on commit d0d1444

Please sign in to comment.