diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-06-27 17:08:26 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2000-06-27 17:08:26 +0000 |
commit | fe0816fa8a3e1c54a7a10ea621a936ad5a029a9c (patch) | |
tree | 5eef4ef6c1c1be1afbc3cbbf9bfd4ea9d8da3c53 /lib/make/extras/MPI | |
parent | 1dda6bf9ffa523ab062342f53ceff09c482d3aa0 (diff) |
Fixed configuration for MPICH_DEVICE=globus to support 1.1.x.
Now it uses $GLOBUS_LIB_DIR/../etc/Makefile.mpich to obtain the libpaths
and libs for Globus. This method should work for all versions of Globus.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@1706 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/extras/MPI')
-rw-r--r-- | lib/make/extras/MPI/MPICH | 37 |
1 files changed, 23 insertions, 14 deletions
diff --git a/lib/make/extras/MPI/MPICH b/lib/make/extras/MPI/MPICH index 87f72282..a08b23e0 100644 --- a/lib/make/extras/MPI/MPICH +++ b/lib/make/extras/MPI/MPICH @@ -6,7 +6,7 @@ # @desc # # @enddesc -# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/extras/MPI/MPICH,v 1.9 2000-06-15 13:57:22 tradke Exp $ +# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/extras/MPI/MPICH,v 1.10 2000-06-27 17:08:26 tradke Exp $ # @@*/ @@ -78,26 +78,32 @@ fi # Select the device and any special options for it. case "$MPICH_DEVICE" in + globus) +############################# Globus device ################################## +# We use the Makefile.mpich to obtain the library paths and libs for Globus. +# These are already prefixed by -L and -l resp. so we have to get rid of these. +# The Cactus makefile will add them later again. if test -z "$GLOBUS_LIB_DIR" ; then - echo "GLOBUS selected, but GLOBUS_LIB_DIR not set !" + echo "GLOBUS selected, but GLOBUS_LIB_DIR not set !" exit 2 fi - MPICH_DEVICE_LIB_DIR="$GLOBUS_LIB_DIR" - MPICH_DEVICE_LIBS="globus_duroc_bootstrap globus_duroc_control \ - globus_duroc_runtime globus_duct_control \ - globus_duct_runtime globus_gass_cache globus_gass_client \ - globus_gass_file globus_gass_server \ - globus_gass_server_ez globus_gram_client \ - globus_gram_myjob globus_gss globus_gss_assist \ - globus_hbm_client globus_hbm_datacollector globus_mp \ - globus_nexus globus_rsl globus_utp globus_dc \ - globus_common lber ldap ldif netperf" - if test -n "`echo $GLOBUS_LIB_DIR | grep -i pthreads`" ; then - MPICH_DEVICE_LIBS="$MPICH_DEVICE_LIBS pthread" + if ! test -r "$GLOBUS_LIB_DIR/../etc/Makefile.mpich" ; then + echo "No Makefile.mpich found in \$GLOBUS_LIB_DIR/../etc/ !" + echo "Did you set GLOBUS_LIB_DIR correctly ?" + exit 2 fi + + GLOBUS_LIB_DIRS=`${MAKE-make} -s -f $GLOBUS_LIB_DIR/../etc/Makefile.mpich userlibpath` + MPICH_DEVICE_LIB_DIR=`echo " $GLOBUS_LIB_DIRS" | sed -e 's/ -L/ /g'` + + GLOBUS_LIBS=`${MAKE-make} -s -f $GLOBUS_LIB_DIR/../etc/Makefile.mpich userlib` + MPICH_DEVICE_LIBS=`echo " $GLOBUS_LIBS" | sed -e 's/ -l/ /g'` ;; + ch_gm) +############################# Myrinet device ################################## +# if test -z "$MYRINET_DIR" ; then echo "Myrinet device selected but no MYRINET_DIR set... Checking some places" CCTK_Search MYRINET_DIR "/usr /usr/local /usr/local/myrinet /usr/local/packages/myrinet /usr/local/apps/myrinet" lib/libgm.a @@ -109,7 +115,10 @@ case "$MPICH_DEVICE" in MPICH_DEVICE_LIB_DIR="$MYRINET_DIR/lib" MPICH_DEVICE_LIBS="gm" ;; + *) +############################# other devices ################################## +# MPICH_DEVICE_LIB_DIR="" MPICH_DEVICE_LIBS="" ;; |