我使用安装了theano 0.8.2的ubuntu 14.04。当我在gpu_tesy.py中运行导入theano时,出现〜5300行代码,并且:'导入theano时无法编译cuda_ndarray.cu','cuda_runtime.h:没有这样的文件或目录'
5367 // vim:filetype = cpp:expandtab:shiftwidth = 4:tabstop = 8:softtabstop = 4:textwidth = 79 :
===============================
在文件包括来自: 0:0: /usr/include/stdc-predef.h:59:1:致命错误:cuda_runtime.h:没有此文件或目录
#endif^ 编译终止。
[ 'NVCC', '-shared', '-O3', '-m64', '-Xcompiler', '-DCUDA_NDARRAY_CUH = c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API = NPY_1_7_API_VERSION,-fPIC,-fvisibility =隐藏',' -Xlinker','-rpath,/ home/theory/.theano/compiledir_Linux-3.13-generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray','-I/home /理论/ test_theono/local/lib/python2.7/site-packages/theano/sandbox/cuda','-I/home/theory/test_theono/local/lib/python2.7/site-packages/numpy/core/include ','-I/usr/include/python2.7','-I/home/theory/test_theono/local/lib/python2.7/site-packages/theano/gof','-o','/ home /theory/.theano/compiledir_Linux-3.13--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray/cuda_ndarray.so','mod.cu','-L/usr/('theano.sandbox.cuda):无法编译cuda_ndarray.cu:('''''''') nvcc return status',1,'for cmd','nvcc -shared -O3 -m64 -Xcompiler -DCUDA_NDARRAY_CUH = c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API = NPY_1_7_API_VERSION,-fPIC,-fvisibility = hidden -Xlinker -rpath,/ home/theory /。 theano/compiledir_Linux-3.13 - generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray -I/home/theory/test_theono/local/lib/python2.7/site-packages/theano/sandbox/cuda -I/home/theory/test_theono/local/lib/python2.7/site-packages/numpy/core/include -I/usr/include/python2.7 -I/home/theory/test_theono/local /lib/python2.7/site-packages/theano/gof -o /home/theory/.theano/compiledir_Linux-3.13--generic-x86_64-with-Ubuntu-14.04-trusty-x86_64-2.7.6-64/cuda_ndarray /cuda_ndarray.so mod.cu -L/usr/lib中-lcublas -lpython2.7 -lcudart')
其中NVCC:在/ usr /本地/反刍一个-7.0/bin中/ NVCC
CUDA_HOME =的/ usr /本地/ CUDA的7.0
LD_LIBRARY_PATH =的/ usr /本地/ CUDA/lib64下:在/ usr/local/lib目录/ lib中:/选择/英特尔/ MKL/lib目录/ Intel64位::在/ usr /本地/ CUDA-7.0/lib64的
DYLD_LIBRARY_PATH =:在/ usr /本地/ CUDA-7.0/lib目录
cuDNN和CUDA的几个版本都安装在同一台机器。我不知道我应该如何将他们带入正确的道路。感谢任何帮助!
我有这个相同的问题。你弄明白了吗? – user2861759