[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mpich 1.2.5-2 in testing vs. mpich 1.2.4-5



Hi,

I have a configure script that checks for the location of mpi by 
compiling with -lmpi.

For example, if my test_program looks like this:

int main()
{

}

compiling with gcc-3.2 test_program.c -lmpi, I get a bunch of undefined 
references:

as@puppy:jas$ gcc-3.2 mpi_test.cc -lmpi
/usr/lib/gcc-lib/i386-linux/3.2.3/../../../libmpi.so: undefined 
reference to `PMPI_Comm_rank'
/usr/lib/gcc-lib/i386-linux/3.2.3/../../../libmpi.so: undefined 
reference to `PMPI_Waitall'
/usr/lib/gcc-lib/i386-linux/3.2.3/../../../libmpi.so: undefined 
reference to `PMPI_Initialized'
<snip>

I can resolve these, by using:
gcc-3.2 mpi_test.cc -L/usr/lib/mpich/lib/shared -lmpi -lpmpich

Now using mpich 1.2.4-5, did not require that I link in -lpmpich when 
using -lmpi, that is,

gcc-3.2 mpi_test.cc -lmpi   worked just fine.


Is there anyway of doing a check for the mpi library without having to 
specify the -lpmpich? Is this a change in mpich itself going from 1.2.4 
to 1.2.5, or is it Debian specific?  I looked through the documents in 
/usr/share/doc/mpich and didn't see anything related to my problems.

Thanks,

John Schmidt




Reply to: