On May 24, 2010, at 12:06 PM, Dawid Laszuk wrote:
> > What's the output from "ldd hello_c"? (this tells us which libraries it's linking to at run-time -- from your configure output, it should list /usr/local/lib/libmpi.so in there somewhere)
> kretyn_at_kretyn-laptop ~/Pobrane/openmpi-1.4.2/examples $ ldd hello_c
> linux-vdso.so.1 => (0x00007ffffbdbe000)
> libmpi.so.0 => /usr/lib/libmpi.so.0 (0x00007f5c7ba1e000)
> libopen-rte.so.0 => /usr/lib/libopen-rte.so.0 (0x00007f5c7b7d6000)
> libopen-pal.so.0 => /usr/lib/libopen-pal.so.0 (0x00007f5c7b563000)
This seems to be the problem -- it's pointing to the "wrong" libmpi (and friends).
Ensure that you're using /usr/local/bin/mpicc to compile your apps. Then you might also want to prefix the LD_LIBRARY_PATH environment variable with /usr/local/lib to ensure that you pick up your local Open MPI installation libraries (instead of the ones in /usr/lib).
/usr/local/bin/mpicc hello_c.c -o hello_c -g
/usr/local/bin/mpirun -np 4 hello_c
For corporate legal information go to: