Changeset 5a0f8e


Ignore:
Timestamp:
Jun 2, 2008, 10:28:05 AM (17 years ago)
Author:
Frederik Heber <heber@…>
Children:
0cc323
Parents:
9842d8
Message:

LIBS instead of MPILIBS is the place where something like "-lmpich" has to be specified.

Location:
pcp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pcp/README

    r9842d8 r5a0f8e  
    2121
    2222In general, note that the following command line variables will influence configure:
    23 CC, CXX, CFLAGS, LDFLAGS, LD_LIBRARY_PATH, MPICC, MPILIBS
     23CC, CXX, CFLAGS, LDFLAGS, LD_LIBRARY_PATH, MPICC, MPILIBS, LIBS
    2424Try specifying these tailored to your needs if checks of configure fail.
    2525
     
    2929In order to compile a parallel version an mpi package such as mpich is needed. If present there are two possibilities:
    30301. Configure finds 'mpicc' which is basically just a link to gcc with includes, library paths and needed libs. Everything easy and fine.
    31 2. It does not, then you have to specify the paths by yourself by prepending the configure command as follows
    32                 MPICC="gcc -I/path/to/mpi/installation/include" MPILIBS="-L/path/to/mpi/installation/lib -Wl,-rpath=/path/to/mpi/installation/lib" ./configure andsoon
    33          Note that MPILIBS will be suffixed to LDFLAGS and configure looks for an libmpich in the given dirs.
     312. It does not, then you have to specify the paths by yourself by prepending the configure command with something such as the following
     32                MPICC="gcc -I/path/to/mpi/installation/include" LDFLAGS="-L/path/to/mpi/installation/lib -Wl,-rpath=/path/to/mpi/installation/lib" LIBS="-lmpich" ./configure andsoon
     33Note that MPILIBS is the LDFLAGS for MPICC, whereas LIBS are additional libs appended at the very end (and the order of the libs is important, those at the end are those incorporated first and libmpich must be one of the first).
    3434
    3535WINDOWS
  • pcp/configure.ac

    r9842d8 r5a0f8e  
    5555                if ! test x"$MPILIBS" = x; then
    5656                        LDFLAGS="$LDFLAGS $MPILIBS"
    57                         AC_CHECK_LIB(mpich, MPI_Allreduce, ,AC_MSG_ERROR([compatible mpich library not found]))
     57                        #AC_CHECK_LIB(mpich, MPI_Allreduce, ,AC_MSG_ERROR([compatible mpich library not found]))
    5858                fi
    5959        fi
Note: See TracChangeset for help on using the changeset viewer.