Hello:
I am trying to use theano with GPU on Ubuntu. I am getting some weird
errors that I can't solve.using theano 0.8.2, python 2.7. cndnn v5, CUDA 8.0
The code will print a long code and print the next two error:
1.
/usr/bin/ld: cannot find -lcudnn
collect2: error: ld returned 1 exit status
I have export LD_LIBRARY_PATH in ~/.bashrc file. and there are the .so file
in the path.
2.
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 "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/opt.py", line
1772, in process_node
replacements = lopt.transform(node)
File
"/opt/anaconda2/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
"/opt/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda/__init__.py",
line 412, in dnn_version
profile=False)
File
"/opt/anaconda2/lib/python2.7/site-packages/theano/compile/function.py",
line 320, in function
output_keys=output_keys)
File
"/opt/anaconda2/lib/python2.7/site-packages/theano/compile/pfunc.py", line
479, in pfunc
output_keys=output_keys)
File
"/opt/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py",
line 1777, in orig_function
defaults)
File
"/opt/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py",
line 1641, in create
input_storage=input_storage_lists, storage_map=storage_map)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/link.py",
line 690, in make_thunk
storage_map=storage_map)[:3]
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/vm.py", line
1003, in make_all
no_recycling))
File
"/opt/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda/__init__.py",
line 256, in make_thunk
compute_map, no_recycling)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/op.py", line
970, in make_thunk
no_recycling)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/op.py", line
879, in make_c_thunk
output_storage=node_output_storage)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
1200, in make_thunk
keep_lock=keep_lock)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
1143, in __compile__
keep_lock=keep_lock)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
1595, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/cmodule.py",
line 1142, in module_from_key
module = lnk.compile_cmodule(location)
File "/opt/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
1506, in compile_cmodule
preargs=preargs)
File
"/opt/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda/nvcc_compiler.py",
line 399, in compile_str
'for cmd', ' '.join(cmd))
Exception: ('The following error happened while compiling the node',
<theano.sandbox.cuda.DnnVersion object at 0x7f32858b2390>(), '\n', 'nvcc
return status', 1, 'for cmd', 'nvcc -shared -O3 -Xlinker
-rpath,/usr/local/cuda-8.0/lib64 -arch=sm_61 -m64 -Xcompiler
-fno-math-errno,-Wno-unused-label,-Wno-unused-variable,-Wno-write-strings,-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden
-Xlinker
-rpath,/home/yjf/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.13-64/cuda_ndarray
-I/usr/local/cuda-8.0/include
-I/opt/anaconda2/lib/python2.7/site-packages/numpy/core/include
-I/opt/anaconda2/include/python2.7
-I/opt/anaconda2/lib/python2.7/site-packages/theano/gof
-I/opt/anaconda2/lib/python2.7/site-packages/theano/sandbox/cuda -o
/home/yjf/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.13-64/tmpQtQkqO/265abc51f7c376c224983485238ff1a5.so
mod.cu -L/opt/anaconda2/lib -lcudnn -lpython2.7 -lcudart',
'[<theano.sandbox.cuda.DnnVersion object at 0x7f32858b2390>()]')
I see someone said that theano cache is corrupt,delete it.But I cannot run
theano-cache clear successfully , the two errors above continue appear.
Thanks in advance. Looking forward to your reply.
--
---
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.