NervanaSystems / neon

Intel® Nervana™ reference deep learning framework committed to best performance on all hardware
http://neon.nervanasys.com/docs/latest
Apache License 2.0
3.87k stars 811 forks source link

libmklml_intel.so not found #445

Closed yiqiaoc11 closed 6 years ago

yiqiaoc11 commented 6 years ago

This one has similar symptom as #438. Running bAbI @ Anaconda 3.5 with latest version.

Traceback (most recent call last): File "examples/babi/train.py", line 81, in be = gen_backend(extract_valid_args(args, gen_backend)) File "/home/watson/anaconda3/lib/python3.6/site-packages/neon/backends/init.py", line 113, in gen_backend deterministic=deterministic) File "/home/watson/anaconda3/lib/python3.6/site-packages/neon/backends/backend.py", line 468, in a llocate_backend return Backend.backends[name](kargs) File "/home/watson/anaconda3/lib/python3.6/site-packages/neon/backends/nervanamkl.py", line 213, i n init self.mklEngine = ctypes.cdll.LoadLibrary(mkl_engine_path) File "/home/watson/anaconda3/lib/python3.6/ctypes/init.py", line 426, in LoadLibrary return self._dlltype(name) File "/home/watson/anaconda3/lib/python3.6/ctypes/init.py", line 348, in init self._handle = _dlopen(self._name, mode) OSError: libmklml_gnu.so: cannot open shared object file: No such file or directory

yiqiaoc11 commented 6 years ago

ctypes.cdll.LoadLibrary(mkl_engine_path), mkl_engine_path is correct, but can't be loaded.

wei-v-wang commented 6 years ago

Can you paste your "echo $LD_LIBRARY_PATH" and see if that path contains libmklml_gnu.so?

yiqiaoc11 commented 6 years ago

:/usr/local/lib I just got this one resolved by reinstalling it with conda rather than pip. We can close this one. BTW, the installation tutorial indicates we need to create source activation for neon. Not sure if we can ignore it as we might need include some pytorch packages which could conflict with activated neon.

Pratyusha1796 commented 6 years ago

@yiqiaoc11 @wei-v-wang can you guys help me out with this same error i am facing 2018-03-10 12:13:24,836 - neon.backends - WARNING - deterministic_update and deterministic args are deprecated in favor of specifying random seed Traceback (most recent call last): File "inference.py", line 57, in be = gen_backend(extract_valid_args(args, gen_backend)) File "/home/pratyusha/Envs/ronin/local/lib/python2.7/site-packages/neon/backends/init.py", line 113, in gen_backend deterministic=deterministic) File "/home/pratyusha/Envs/ronin/local/lib/python2.7/site-packages/neon/backends/backend.py", line 468, in allocate_backend return Backend.backends[name](kargs) File "/home/pratyusha/Envs/ronin/local/lib/python2.7/site-packages/neon/backends/nervanamkl.py", line 213, in init self.mklEngine = ctypes.cdll.LoadLibrary(mkl_engine_path) File "/usr/lib/python2.7/ctypes/init.py", line 443, in LoadLibrary return self._dlltype(name) File "/usr/lib/python2.7/ctypes/init.py", line 365, in init self._handle = _dlopen(self._name, mode) OSError: libmklml_gnu.so: cannot open shared object file: No such file or directory

this my path echo $LD_LIBRARY_PATH /usr/local/lib

wei-v-wang commented 6 years ago

As a workaround, can you download neon and do "make clean; make" , i.e. not using pip for now.