无法将GPU用于tensorflow程序:

时间:2017-08-08 12:05:03

标签: tensorflow gpu

我试图在我的电脑上安装可用的设备。我得到以下没有gpu:

>>> device_lib.list_local_devices() [name: "/cpu:0" device_type: "CPU" memory_limit: 268435456 locality { } incarnation: 14983405983464524929 ]

当我尝试做nvidia-smi时,屏幕显示如下:

'nvidia-smi 
Tue Aug  8 17:33:19 2017       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.26                 Driver Version: 375.26                    |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GeForce GTX 1080    Off  | 0000:01:00.0      On |                  N/A |
|  0%   40C    P8    15W / 230W |   1608MiB /  8112MiB |      4%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0       928    G   /usr/lib/xorg/Xorg                            1606MiB |
+-----------------------------------------------------------------------------+
'

我也试过

sudo ldconfig /usr/local/cuda/lib64

并得到了以下信息:

/sbin/ldconfig.real: /usr/local/cuda/lib64/libcudnn.so.5 is not a symbolic link

0 个答案:

没有答案