5

我最近更改了配置以更快地训练 CNN。我有一个 gtx 1080。对于我现有的大多数神经网络,我通过 python3 使用 theano 后端。

因为我读过 CUDA 7.5 没有完全使用 pascal 架构,所以我安装了 CUDA 8 和相应的 cudnn 6.X。

我的问题如下,pygpuarray 似乎无法找到“libnvrtc.so”:

Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/theano/gpuarray/__init__.py", line 179, in <module>
    use(config.device)
  File "/usr/local/lib/python3.5/dist-packages/theano/gpuarray/__init__.py", line 166, in use
    init_dev(device, preallocate=preallocate)
  File "/usr/local/lib/python3.5/dist-packages/theano/gpuarray/__init__.py", line 65, in init_dev
    sched=config.gpuarray.sched)
  File "pygpu/gpuarray.pyx", line 634, in pygpu.gpuarray.init (pygpu/gpuarray.c:9428)
  File "pygpu/gpuarray.pyx", line 584, in pygpu.gpuarray.pygpu_init (pygpu/gpuarray.c:9119)
  File "pygpu/gpuarray.pyx", line 1057, in pygpu.gpuarray.GpuContext.__cinit__ (pygpu/gpuarray.c:13421)
pygpu.gpuarray.GpuArrayException: b'Could not load "libnvrtc.so": libnvrtc.so: cannot open shared object file: No such file or directory'

我很确定 cuda 已安装,这是 nvcc --version 输出:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

我在以下位置找到了该文件:/usr/local/cuda-8.0/lib64

奇怪的是“ldconfig -p | grep libnvcc”命令什么也没返回……

我希望这篇文章不存在于其他任何地方,我已经进行了一些搜索以防止这种情况发生,但你知道,互联网是巨大的。

问我是否需要更多信息。由于我没有设法解决这个问题,我显然不知道解决这个问题需要哪些信息,所以我做了这个小简历等待你的问题(如果需要)。

4

0 回答 0