summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-08-29 11:19:11 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-08-29 11:19:11 (GMT)
commit35a3022373a424e99db29a84063d0511ffcefac9 (patch)
treef1ff0a856d96a9a7873749a5fc8e5c5b8912b80a /config
parent66d2d26f5d97eed437683c5c5e3fa15e7d368664 (diff)
downloadhdf5-35a3022373a424e99db29a84063d0511ffcefac9.zip
hdf5-35a3022373a424e99db29a84063d0511ffcefac9.tar.gz
hdf5-35a3022373a424e99db29a84063d0511ffcefac9.tar.bz2
[svn-r12636] Purpose:
Improve default settings. Use mpicc, mpif90, mpirun as the default $CC, $FC, and $RUNPARALLEL if enable-parallel. Tested: in TG-NCSA both serial and parallel.
Diffstat (limited to 'config')
-rw-r--r--config/ia64-linux-gnu25
1 files changed, 20 insertions, 5 deletions
diff --git a/config/ia64-linux-gnu b/config/ia64-linux-gnu
index 931201c..80e5317 100644
--- a/config/ia64-linux-gnu
+++ b/config/ia64-linux-gnu
@@ -18,9 +18,20 @@
# the various compile modes.
# Use Intel C compiler by default (if it's available).
-if test "X$CC" = "X" && which icc > /dev/null; then
- CC=icc
- CC_BASENAME=icc
+# Use mpicc for parallel by default.
+if test "X$CC" = "X"; then
+ if test "X-$enable_parallel" = "X-yes"; then
+ CC=mpicc
+ CC_BASENAME=mpicc
+ elif which icc > /dev/null; then
+ CC=icc
+ CC_BASENAME=icc
+ fi
+fi
+
+# Define RUNPARALLEL if parallel mode is enabled or a parallel compiler used.
+if test "X-$enable_parallel" = "X-yes" -o X-$CC_BASENAME = X-mpicc; then
+ RUNPARALLEL=${RUNPARALLEL="mpirun -np \$\${NPROCS:=3}"}
fi
#----------------------------------------------------------------------------
@@ -51,8 +62,12 @@ esac
# The default Fortran 90 compiler
# Use Intel Fortran compiler by default.
-if test "X-$FC" = "X-"; then
- FC="ifort"
+if test X-$enable_fortran = X-yes -a "X-$FC" = "X-"; then
+ if test "X-$enable_parallel" = "X-yes"; then
+ FC=mpif90
+ else
+ FC="ifort"
+ fi
fi
case $FC in