File tree Expand file tree Collapse file tree 1 file changed +22
-2
lines changed
Expand file tree Collapse file tree 1 file changed +22
-2
lines changed Original file line number Diff line number Diff line change 11export SUNDIALS_INSTALL_PREFIX=$FIREMODELS /libs/sundials/$SUNDIALS_VERSION
22
3+ # Check for Intel C compiler (icx or icc)
4+ if command -v icx & > /dev/null; then
5+ CC=icx
6+ elif command -v icc & > /dev/null; then
7+ CC=icc
8+ else
9+ echo " Error: Neither icx nor icc is available on this system."
10+ exit 1
11+ fi
12+
13+ # Check for Intel C++ compiler (icpx or icpc)
14+ if command -v icpx & > /dev/null; then
15+ CXX=icpx
16+ elif command -v icpc & > /dev/null; then
17+ CXX=icpc
18+ else
19+ echo " Error: Neither icpx nor icpc is available on this system."
20+ exit 1
21+ fi
22+
323cmake ../ \
424-DCMAKE_INSTALL_PREFIX=$SUNDIALS_INSTALL_PREFIX \
525-DEXAMPLES_INSTALL_PATH=$SUNDIALS_INSTALL_PREFIX /examples \
6- -DCMAKE_C_COMPILER=icx \
7- -DCMAKE_CXX_COMPILER=icpx \
26+ -DCMAKE_C_COMPILER=$CC \
27+ -DCMAKE_CXX_COMPILER=$CXX \
828-DCMAKE_Fortran_COMPILER=ifort \
929-DBUILD_FORTRAN_MODULE_INTERFACE=ON \
1030-DEXAMPLES_ENABLE_CXX=OFF \
You can’t perform that action at this time.
0 commit comments