[SciPy-user] Python on Intel Xeon Dual Core Machine

Nathan Bell wnbell@gmail....
Fri Feb 8 03:45:29 CST 2008

On Feb 8, 2008 2:13 AM, David Cournapeau <david@ar.media.kyoto-u.ac.jp> wrote:
> But I checked again: dlopening a library with open mp does work: here is
> an archive with a trivial program using a lib dlopened, works on ubuntu
> with gcc 4.2:
> http://www.ar.media.kyoto-u.ac.jp/members/david/archives/dynamic_openmp.tar.bz2

Are you saying that you can compile this .so with Ubuntu's g++-4.2 and
use it on the same system?  Or are you compiling it elsewhere and
running on Ubuntu?  I get the same error as before:

$ make
gcc-4.2 -W -Wall   -c -o taylor.o taylor.c
gcc-4.2 -c -fPIC -fopenmp -W -Wall -o compute.o compute.c
gcc-4.2 -shared compute.o -o libcompute.so -Wl,-soname,libcompute.so -lgomp
gcc-4.2 -o taylor taylor.o compute.o -lgomp -L. -Wl,-rpath,. -ldl

$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libcompute
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: libgomp.so.1: shared object cannot be dlopen()ed

Nathan Bell wnbell@gmail.com

More information about the SciPy-user mailing list