mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Error when running mxnet with openmp disabled

Open gengyifeng opened this issue 10 years ago • 1 comments

With USE_OPENMP and USE_OPENCV disabled, I got errors when running "python train_mnist.py.

Traceback (most recent call last): File "train_mnist.py", line 1, in import find_mxnet File "/home/yifeng/mxnet/example/image-classification/find_mxnet.py", line 2, in import mxnet as mx File "/home/yifeng/mxnet/python/mxnet/init.py", line 7, in from .base import MXNetError File "/home/yifeng/mxnet/python/mxnet/base.py", line 43, in _LIB = _load_lib() File "/home/yifeng/mxnet/python/mxnet/base.py", line 35, in _load_lib lib = ctypes.cdll.LoadLibrary(lib_path[0]) File "/usr/lib64/python2.7/ctypes/init.py", line 438, in LoadLibrary return self._dlltype(name) File "/usr/lib64/python2.7/ctypes/init.py", line 360, in init self._handle = _dlopen(self._name, mode) OSError: /home/yifeng/mxnet/python/mxnet/../../lib/libmxnet.so: undefined symbol: omp_get_thread_num

Any ideas?

gengyifeng avatar Apr 01 '16 09:04 gengyifeng

It can be fixed by removing flags in dmlc-core/make/dmlc.mk line 14 and 15

gengyifeng avatar Apr 01 '16 13:04 gengyifeng