2017-10-12 80 views
1

tensorflow錯誤,當我使用tensorflow,我有錯誤滿足:與CUDA

[W 09:27:49.213 NotebookApp] 404 GET /api/kernels/4e889506-2258-481c-b18e-d6a8e920b606/channels?session_id=0665F3F07C004BBAA7CDF6601B6E2BA1 (127.0.0.1): Kernel does not exist: 4e889506-2258-481c-b18e-d6a8e920b606 
    [W 09:27:49.266 NotebookApp] 404 GET /api/kernels/4e889506-2258-481c-b18e-d6a8e920b606/channels?session_id=0665F3F07C004BBAA7CDF6601B6E2BA1 (127.0.0.1) 340.85ms referer=None 
    [W 09:27:50.337 NotebookApp] /home/dxq/g++ doesn't exist 
    [W 09:27:50.514 NotebookApp] /home/dxq/gcc doesn't exist 
    [I 09:28:03.159 NotebookApp] Kernel started: aa5e56b4-df58-4e74-8dc1-96a4cee847aa 
    [I 09:28:04.032 NotebookApp] Adapting to protocol v5.1 for kernel aa5e56b4-df58-4e74-8dc1-96a4cee847aa 
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally 
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so locally 
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally 
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally 
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally 
E tensorflow/core/common_runtime/direct_session.cc:132] Internal: failed initializing StreamExecutor for CUDA device ordinal 0: Internal: failed call to cuCtxCreate: CUDA_ERROR_OUT_OF_MEMORY; total memory reported: 18446744071514750976 

這有什麼錯嗎?

以下是完整的規格:

ubuntu 16.04 
cuda:8.0 
python 2.7 
+0

我猜你正在運行兩個不同的tensorflow gpu程序? – Sraw

回答

1

運行在終端以下命令:

nvidia-smi 

你會得到這樣的輸出。 enter image description here

您將獲得佔用GPU內存的進程摘要。在筆記本電腦中,即使當前沒有單元正在運行,但之前正在運行且本地服務器仍在運行,內存將被佔用。您將不得不停止佔用更多內存的任何進程爲當前進程分配一些帶寬以運行。

0

檢查cuDNN版本。它應該是5.1