Too many lines get displayed when I get the error so I can’t tell which line produces the error.
A lot of lines from the original code get written ( from line 250 to line 609) then there is that:
===============================
nvcc fatal : Value ‘sm_52’ is not defined for option ‘gpu-architecture’
[‘nvcc’, ‘-shared’, ‘-O3’, ‘-use_fast_math’, ‘-arch=sm_52’, ‘-m64’, ‘-Xcompiler’, ‘-fno-math-errno,-Wno-unused-label,-Wno-unused-variable,-Wno-write-strings,-DCUDA_NDARRAY_CUH=11b90075e2397c684f9dc0f7276eab8f,-D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC’, ‘-Xlinker’, ‘-rpath,/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray’, ‘-I/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray’, ‘-I/usr/include’, ‘-I/usr/lib/python2.7/dist-packages/numpy/core/include’, ‘-I/usr/include/python2.7’, ‘-I/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda’, ‘-o’, ‘/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/tmpMleVcP/c8d7bd33dfef61705c2854dd1f0cb7ce.so’, ‘mod.cu’, ‘-L/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray’, ‘-L/usr/lib’, ‘-lpython2.7’, ‘-lcudart’, ‘-lcublas’, ‘-lcuda_ndarray’]
Traceback (most recent call last):
File “./rl_glue_ale_agent.py”, line 47, in
import cnn_q_learner
File “/home/ubuntu/Documents/deep_q_rl-master/deep_q_rl/cnn_q_learner.py”, line 11, in
import layers
File “/home/ubuntu/Documents/deep_q_rl-master/deep_q_rl/layers.py”, line 34, in
import theano.tensor as T
File “/usr/local/lib/python2.7/dist-packages/theano/init.py”, line 98, in
theano.sandbox.cuda.tests.test_driver.test_nvidia_driver1()
File “/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/tests/test_driver.py”, line 32, in test_nvidia_driver1
profile=False)
File “/usr/local/lib/python2.7/dist-packages/theano/compile/function.py”, line 266, in function
profile=profile)
File “/usr/local/lib/python2.7/dist-packages/theano/compile/pfunc.py”, line 511, in pfunc
on_unused_input=on_unused_input)
File “/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py”, line 1466, in orig_function
defaults)
File “/usr/local/lib/python2.7/dist-packages/theano/compile/function_module.py”, line 1324, in create
input_storage=input_storage_lists)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/link.py”, line 519, in make_thunk
output_storage=output_storage)[:3]
File “/usr/local/lib/python2.7/dist-packages/theano/gof/vm.py”, line 897, in make_all
no_recycling))
File “/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/init.py”, line 259, in make_thunk
compute_map, no_recycling)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/op.py”, line 739, in make_thunk
output_storage=node_output_storage)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py”, line 1073, in make_thunk
keep_lock=keep_lock)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py”, line 1015, in compile
keep_lock=keep_lock)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py”, line 1442, in cthunk_factory
key=key, lnk=self, keep_lock=keep_lock)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/cmodule.py”, line 1076, in module_from_key
module = lnk.compile_cmodule(location)
File “/usr/local/lib/python2.7/dist-packages/theano/gof/cc.py”, line 1354, in compile_cmodule
preargs=preargs)
File “/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda/nvcc_compiler.py”, line 423, in compile_str
‘for cmd’, ’ '.join(cmd))
Exception: (‘The following error happened while compiling the node’, GpuCAReduce{add}{1}(<CudaNdarrayType(float32, vector)>), ‘\n’, ‘nvcc return status’, 255, ‘for cmd’, ‘nvcc -shared -O3 -use_fast_math -arch=sm_52 -m64 -Xcompiler -fno-math-errno,-Wno-unused-label,-Wno-unused-variable,-Wno-write-strings,-DCUDA_NDARRAY_CUH=11b90075e2397c684f9dc0f7276eab8f,-D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC -Xlinker -rpath,/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray -I/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray -I/usr/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -I/usr/local/lib/python2.7/dist-packages/theano/sandbox/cuda -o /home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/tmpMleVcP/c8d7bd33dfef61705c2854dd1f0cb7ce.so mod.cu -L/home/ubuntu/.theano/compiledir_Linux-3.16–generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray -L/usr/lib -lpython2.7 -lcudart -lcublas -lcuda_ndarray’, ‘[GpuCAReduce{add}{1}(<CudaNdarrayType(float32, vector)>)]’)
For echo $PATH:
ubuntu@ml:~$ echo $PATH
/usr/local/cuda-7.0/bin:/home/ubuntu/anaconda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
And for nvcc:
ubuntu@ml:~$ sudo find / -name nvcc
/usr/lib/nvidia-cuda-toolkit/bin/nvcc
/usr/local/cuda-7.0/bin/nvcc
/usr/bin/nvcc
Thanks