Skip to content

Commit 8a132ae

Browse files
authored
Merge pull request #13636 from rmcdermo/master
Build: check CC compiler type in HYPRE build
2 parents 3136d43 + d0d1444 commit 8a132ae

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1-
./configure CC=mpiicc FC=mpiifort CFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" FFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" \
1+
# Check for mpiicx or mpiicc
2+
if command -v mpiicx &> /dev/null; then
3+
CC=mpiicx
4+
elif command -v mpiicc &> /dev/null; then
5+
CC=mpiicc
6+
else
7+
echo "Error: Neither mpiicx nor mpiicc is available on this system."
8+
exit 1
9+
fi
10+
11+
./configure CC=$CC FC=mpiifort CFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" FFLAGS="-O3 -fno-unsafe-math-optimizations -fp-model=precise" \
212
--prefix=$FIREMODELS/libs/hypre/$HYPRE_VERSION
313
make install

0 commit comments

Comments
 (0)