Changeset 5a0f8e
- Timestamp:
- Jun 2, 2008, 10:28:05 AM (17 years ago)
- Children:
- 0cc323
- Parents:
- 9842d8
- Location:
- pcp
- Files:
-
- 2 edited
-
README (modified) (2 diffs)
-
configure.ac (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pcp/README
r9842d8 r5a0f8e 21 21 22 22 In general, note that the following command line variables will influence configure: 23 CC, CXX, CFLAGS, LDFLAGS, LD_LIBRARY_PATH, MPICC, MPILIBS 23 CC, CXX, CFLAGS, LDFLAGS, LD_LIBRARY_PATH, MPICC, MPILIBS, LIBS 24 24 Try specifying these tailored to your needs if checks of configure fail. 25 25 … … 29 29 In order to compile a parallel version an mpi package such as mpich is needed. If present there are two possibilities: 30 30 1. 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 follows32 MPICC="gcc -I/path/to/mpi/installation/include" MPILIBS="-L/path/to/mpi/installation/lib -Wl,-rpath=/path/to/mpi/installation/lib" ./configure andsoon33 Note that MPILIBS will be suffixed to LDFLAGS and configure looks for an libmpich in the given dirs.31 2. 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 33 Note 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). 34 34 35 35 WINDOWS -
pcp/configure.ac
r9842d8 r5a0f8e 55 55 if ! test x"$MPILIBS" = x; then 56 56 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])) 58 58 fi 59 59 fi
Note:
See TracChangeset
for help on using the changeset viewer.
