Extending Python with C: Cannot find MPI library

Jeroen Ruigrok van der Werven asmodai at in-nomine.org
Thu Jun 19 16:39:42 CEST 2008

-On [20080619 16:21], Spectrum (spectrumdt at gmail.com) wrote:
>          libmpi.so.0 => /usr/lib/openmpi/1.2.4-gcc/libmpi.so.0
>          libopen-rte.so.0 => /usr/lib/openmpi/1.2.4-gcc/libopen-
>rte.so.0 (0x003d4000)
>          libopen-pal.so.0 => /usr/lib/openmpi/1.2.4-gcc/libopen-
>pal.so.0 (0x00344000)

These libraries are what your binaries (.so and such) needs to link against
as well. I am not sure if you have to add a flag (-mpi) to your compiler or
if you need to add a -L/usr/lib/openmpi/1.2.4-gcc -lmpi -lopen-rte
-lopen-pal to the incantations.

Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
イェルーン ラウフロック ヴァン デル ウェルヴェン
http://www.in-nomine.org/ | http://www.rangaku.org/ | GPG: 2EAC625B
The distance to here is infinite...

More information about the Python-list mailing list