From 6f94c274c44066ce00d19dc58a479aab2ca553dc Mon Sep 17 00:00:00 2001 From: Albert Cheng Date: Sat, 14 Jun 2003 18:35:10 -0500 Subject: [svn-r7041] Purpose: Improvement Description: RUNPARALLEL is setup with default value when --enable-parallel but only if CC is not set. Solution: set RUNPARALLEL to default value of using poe when --enable-parallel or when an MPI compiler (e.g. mpcc_r) is used. Platforms tested: Copper for both 32 and 64 bit, serial and parallel. (32bit parallel had a hang problem in configure which is a different but known problem.) Note that one still need to setenv AR "ar -X64" for 64bit configure. Misc. update: --- config/powerpc-ibm-aix5.x | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/config/powerpc-ibm-aix5.x b/config/powerpc-ibm-aix5.x index f8a0894..41e2c6a 100644 --- a/config/powerpc-ibm-aix5.x +++ b/config/powerpc-ibm-aix5.x @@ -10,13 +10,18 @@ if test "X-" = "X-$CC"; then if test "X-$enable_parallel" = "X-yes"; then CC='mpcc_r -qlanglvl=ansi -D_LARGE_FILES' CC_BASENAME=mpcc_r - RUNPARALLEL=${RUNPARALLEL="MP_PROCS=3 MP_TASKS_PER_NODE=3 poe"} else CC='xlc -qlanglvl=ansi -D_LARGE_FILES' CC_BASENAME=xlc 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-mpcc_r; then + RUNPARALLEL=${RUNPARALLEL="MP_PROCS=\$\${NPROCS:=3} MP_TASKS_PER_NODE=\$\${NPROCS:=3} poe"} +fi + + #---------------------------------------------------------------------------- # Compiler flags. The CPPFLAGS values should not include package debug # flags like `-DH5G_DEBUG' since these are added with the -- cgit v0.12