diff options
author | Robb Matzke <matzke@llnl.gov> | 2000-12-29 18:35:10 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 2000-12-29 18:35:10 (GMT) |
commit | eb8a2948b30a3eda249033df50923ce5a106b619 (patch) | |
tree | 9dfa6107b7a0a745622cb73e7e2c372015769638 /configure.in | |
parent | b686e3a74f9d4f3fa80590a3057d836f41542360 (diff) | |
download | hdf5-eb8a2948b30a3eda249033df50923ce5a106b619.zip hdf5-eb8a2948b30a3eda249033df50923ce5a106b619.tar.gz hdf5-eb8a2948b30a3eda249033df50923ce5a106b619.tar.bz2 |
[svn-r3211] ./hdf5/configure.in
2000-12-29 11:54:38 Robb Matzke <matzke@llnl.gov>
*: Added recognition of LAM's hcc, which is almost identical to
MPICH's mpicc.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 37 |
1 files changed, 36 insertions, 1 deletions
diff --git a/configure.in b/configure.in index f725cc3..f3f3f15 100644 --- a/configure.in +++ b/configure.in @@ -1203,7 +1203,7 @@ case "$CC_BASENAME" in else for path in `echo $PATH |tr : ' '`; do if test -x $path/$cmd; then - break; + break fi done fi @@ -1220,6 +1220,41 @@ case "$CC_BASENAME" in fi ;; + hcc) + dnl The LAM compiler. Use mpirun_lam or mpirun from the same directory + dnl if it exists. + PARALLEL=hcc + AC_MSG_CHECKING(for mpirun_lam or mpirun) + + dnl Find the path where hcc is located + cmd=`echo $CC |cut -f1 -d' '` + if (echo $cmd |grep / >/dev/null); then + path="`echo $cmd |sed 's/\(.*\)\/.*$/\1/'`" + else + for path in `echo $PATH |tr : ' '`; do + if test -x $path/$cmd; then + break + fi + done + fi + + dnl Is there an mpirun_lam or mpirun at that path? + if test -x $path/mpirun_lam -o -x $path/mpirun; then + if test -x $path/mpirun_lam; then + cmd=mpirun_lam + else + cmd=mpirun + fi + AC_MSG_RESULT($path/$cmd); + RUNSERIAL="${RUNSERIAL:-none}" + if test -z "$RUNPARALLEL"; then + RUNPARALLEL="$path/$cmd -np \$\${NPROCS:=2}" + fi + else + AC_MSG_RESULT(none) + fi + ;; + mpcc|mpcc_r) dnl The IBM compiler PARALLEL="$CC_BASENAME" |