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

MKL exception #454

Open Kensuke-Hinata opened 6 years ago

Kensuke-Hinata commented 6 years ago

I encountered the following exception on MacOS:

Traceback (most recent call last):
  File "examples/cifar10_conv.py", line 40, in <module>
    args = parser.parse_args()
  File "/Users/me/Code/Deep-Learning/neon/neon/util/argparser.py", line 366, in parse_args
    compat_mode=args.compat_mode)
  File "/Users/me/Code/Deep-Learning/neon/neon/backends/__init__.py", line 113, in gen_backend
    deterministic=deterministic)
  File "/Users/me/Code/Deep-Learning/neon/neon/backends/backend.py", line 468, in allocate_backend
    return Backend.backends[name](**kargs)
  File "/Users/me/Code/Deep-Learning/neon/neon/backends/nervanamkl.py", line 201, in __init__
    ctypes.cdll.LoadLibrary(mkl_ml_path)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
    return self._dlltype(name)
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 366, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/me/Code/Deep-Learning/neon/neon/backends/../backends/mklEngine/libmklml.dylib, 6): Library not loaded: @rpath/libiomp5.dylib
  Referenced from: /Users/me/Code/Deep-Learning/neon/neon/backends/mklEngine/libmklml.dylib
  Reason: image not found

just ask for some help, thanks a lot!