I am trying to enable GPU acceleration on my Mac OSX:
I have install CUDA toolkit
I have downloaded cuDNN and place the include and libs in the
/usr/local/cuda/lib and include folders
I have update my .bash_profile as follows:
export CUDA_ROOT=/usr/local/cuda
export LD_LIBRARY_PATH=$CUDA_ROOT/lib:$LD_LIBRARY_PATH
export PATH=$CUDA_ROOT/bin:$PATH
when I try and run the gpu test from the website I get the following error
ERROR (theano.gof.opt): Optimization failure due to: local_log_softmax_dnn
ERROR (theano.gof.opt): node:
GpuElemwise{exp,no_inplace}(<CudaNdarrayType(float32, vector)>)
ERROR (theano.gof.opt): TRACEBACK:
ERROR (theano.gof.opt): Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/theano/gof/opt.py", line
1772, in process_node
replacements = lopt.transform(node)
File "/usr/local/lib/python2.7/site-packages/theano/sandbox/cuda/dnn.py",
line 2529, in local_log_softmax_dnn
if not dnn_available() or version() < (3000, 3000):
File
"/usr/local/lib/python2.7/site-packages/theano/sandbox/cuda/__init__.py",
line 412, in dnn_version
profile=False)
File "/usr/local/lib/python2.7/site-packages/theano/compile/function.py",
line 320, in function
output_keys=output_keys)
File "/usr/local/lib/python2.7/site-packages/theano/compile/pfunc.py",
line 479, in pfunc
output_keys=output_keys)
File
"/usr/local/lib/python2.7/site-packages/theano/compile/function_module.py",
line 1777, in orig_function
defaults)
File
"/usr/local/lib/python2.7/site-packages/theano/compile/function_module.py",
line 1641, in create
input_storage=input_storage_lists, storage_map=storage_map)
File "/usr/local/lib/python2.7/site-packages/theano/gof/link.py", line
690, in make_thunk
storage_map=storage_map)[:3]
File "/usr/local/lib/python2.7/site-packages/theano/gof/vm.py", line
1003, in make_all
no_recycling))
File
"/usr/local/lib/python2.7/site-packages/theano/sandbox/cuda/__init__.py",
line 256, in make_thunk
compute_map, no_recycling)
File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line 970,
in make_thunk
no_recycling)
File "/usr/local/lib/python2.7/site-packages/theano/gof/op.py", line 879,
in make_c_thunk
output_storage=node_output_storage)
File "/usr/local/lib/python2.7/site-packages/theano/gof/cc.py", line
1200, in make_thunk
keep_lock=keep_lock)
File "/usr/local/lib/python2.7/site-packages/theano/gof/cc.py", line
1143, in __compile__
keep_lock=keep_lock)
File "/usr/local/lib/python2.7/site-packages/theano/gof/cc.py", line
1595, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "/usr/local/lib/python2.7/site-packages/theano/gof/cmodule.py", line
1142, in module_from_key
module = lnk.compile_cmodule(location)
File "/usr/local/lib/python2.7/site-packages/theano/gof/cc.py", line
1506, in compile_cmodule
preargs=preargs)
File
"/usr/local/lib/python2.7/site-packages/theano/sandbox/cuda/nvcc_compiler.py",
line 410, in compile_str
return dlimport(lib_filename)
File "/usr/local/lib/python2.7/site-packages/theano/gof/cmodule.py", line
299, in dlimport
rval = __import__(module_name, {}, {}, [module_name])
ImportError: ('The following error happened while compiling the node',
<theano.sandbox.cuda.DnnVersion object at 0x1095f9ad0>(), '\n',
'dlopen(/Users/lucianwilloughby/.theano/compiledir_Darwin-16.4.0-x86_64-i386-64bit-i386-2.7.11-64/tmpinknpZ/265abc51f7c376c224983485238ff1a5.so,
2): Library not loaded: @rpath/libcudnn.5.dylib\n Referenced from:
/Users/lucianwilloughby/.theano/compiledir_Darwin-16.4.0-x86_64-i386-64bit-i386-2.7.11-64/tmpinknpZ/265abc51f7c376c224983485238ff1a5.so\n
Reason: image not found', '[<theano.sandbox.cuda.DnnVersion object at
0x1095f9ad0>()]')
libcudnn.5.dylib is in /usr/local/cuda/lib
please help
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.