> But when importing the module I get this as a Traceback:
> ImportError: ./pi_test.so: undefined symbol: GOMP_parallel_end
> So, apparently OpenMP did not make it correctly into the wrapped code.
depending on the version of gcc you are using, there might be a problem with using OpenMP in a shared library. I forgot where I found that problem and how I solved it for OpenCV, but I guess it was about supplying "-fopenmp" to the linker AS WELL and I think it worked for gcc 4.3 but not 4.2 .... Hm.
You could also try directly linking your shared library to libopenmp.
Institut für Nachrichtentechnik, RWTH Aachen University