我的系統是Ubuntu的14.04上EC2:CUDA,CuDNN安裝,但Tensorflow不能使用GPU
nvidia-smi
Sun Oct 2 13:35:28 2016
+------------------------------------------------------+
| NVIDIA-SMI 352.63 Driver Version: 352.63 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GRID K520 Off | 0000:00:03.0 Off | N/A |
| N/A 37C P0 35W/125W | 11MiB/4095MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| No running processes found |
+-----------------------------------------------------------------------------+
[email protected]:~$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
我安裝CUDA 7.5和5.1 CuDNN。
我在/ usr/local/local/lib64中包含正確的文件幷包含文件夾。
Tensorflow行給出什麼:
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
>>> sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
Device mapping: no known devices.
I tensorflow/core/common_runtime/direct_session.cc:252] Device mapping:
>>>
請幫忙(感謝很多:))。
@talonmies現有的解決方案是n沒有工作,我一次又一次檢查了路徑變量。 – John77
您似乎有一個正在運行的CUDA安裝。因此,這個問題是一個張量配置問題,與CUDA編程無關。這就是我回收標籤的原因。 – talonmies
@talonmies是的,多數民衆贊成我認爲,必須有一些問題在鏈接或路徑......就像那樣。你能提出一些我可以嘗試的建議嗎?謝謝。 – John77