libgomp issue with Python + openMP
When running the development snapshot from the Python API I get the following error:
File "/home/lwilkens/gmsh-git-Linux64-sdk/lib/gmsh.py", line 40, in lib = CDLL(libpath)
File "/home/lwilkens/anaconda3/envs/p36/lib/python3.6/ctypes/init.py", line 348, in init self._handle = _dlopen(self._name, mode)
OSError: /home/lwilkens/gmsh-git-Linux64-sdk/lib/libgmsh.so: undefined symbol: GOMP_loop_ull_nonmonotonic_dynamic_start, version GOMP_4.5
I want to use openMP, so I also tried running with a compiled version from source with -DENABLE_OPENMP=1
argument, but got a similar libgomp error aswell.
Seems like there's an issue finding the libgomp libraries. I tried adding the folder containing the libgomp libraries of the python environment to PATH
, PYTHONPATH
and LD_LIBRARY_PATH
. Same for the following folders also containing libgomp libraries: /usr/lib/gcc/x86_64-linux-gnu/7/
, /usr/lib/gcc/x86_64-linux-gnu/9/
and /usr/lib/x86_64-linux-gnu/
.
Any thoughts on how to resolve this?