amber-developers: loadlib and mpi in configure script

From: Ross Walker <ross.rosswalker.co.uk>
Date: Wed, 4 Oct 2006 15:55:20 -0700

Hi All,

The configure script in the amber10 cvs tree has had several blocks swapped
around.

E.g.

case "$parallel" in

mpi)
    loadlib="-lmpi"
    fppflags="$fppflags -DMPI"
    ;;

Now comes after the machine section. E.g.

####################### IBM AIX ############################
xlf90_aix|AIX)

    libpath=/usr/lib
    if [ -e $libpath/libmassv.a ]; then
        loadlib="$loadlib -L$libpath -lmassv"
        fppflags="$fppflags -DMASSLIB"
    fi
    if [ -e $libpath/libblas.a ]; then
        loadlib="$loadlib -L$libpath -lblas"
        use_blas=VENDOR_SUPPLIED
    fi

What this means is that if one specifies:

./configure xlf90_aix

then you get the correct loadlib line:

LOADLIB= -L/usr/lib -lmassv -L/usr/lib -lblas

However when you turn on mpi

./configure -mpi xlf90_aix

The loadlib line ends up as:

LOADLIB= -lmpi

And consequently none of the vector math routines are found at link time.

a simple fix (/hack) I can see is to change the

loadlib="-lmpi"

line to read

loadlib="-lmpi $loadlib"

Although I am wondering if there are other problems caused by the recent
changes and whether there might be a more general fix.

Comments?

All the best
Ross

/\
\/
|\oss Walker

| HPC Consultant and Staff Scientist |
| San Diego Supercomputer Center |
| Tel: +1 858 822 0854 | EMail:- ross.rosswalker.co.uk |
| http://www.rosswalker.co.uk | PGP Key available on request |

Note: Electronic Mail is not secure, has no guarantee of delivery, may not
be read every day, and should not be used for urgent or sensitive issues.
Received on Sun Oct 08 2006 - 06:07:12 PDT
Custom Search