【问题标题】:Tensor flow - Mac GPU installationTensorflow - Mac GPU 安装
【发布时间】:2016-09-29 07:28:51
【问题描述】:

运行 python3 脚本后,我得到以下语句,但不知道这 3 个错误来自何处。我正在使用 cudnn v5.0 但显然我在安装管道的某个地方出错了。任何帮助都会很棒。

I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcublas.dylib locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcudnn.dylib locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcufft.dylib locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcuda.1.dylib locally
I tensorflow/stream_executor/dso_loader.cc:108] successfully opened CUDA library libcurand.dylib locally
number of elements at final reshape = %d. 61440
I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:892] OS X does not support NUMA - returning NUMA node zero
I tensorflow/core/common_runtime/gpu/gpu_init.cc:102] Found device 0 with properties:
name: GeForce GT 750M
major: 3 minor: 0 memoryClockRate (GHz) 0.9255
pciBusID 0000:01:00.0
Total memory: 2.00GiB
Free memory: 1.28GiB
I tensorflow/core/common_runtime/gpu/gpu_init.cc:126] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_init.cc:136] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:838] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GT 750M, pci bus id: 0000:01:00.0)
E tensorflow/stream_executor/cuda/cuda_dnn.cc:354] could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
E tensorflow/stream_executor/cuda/cuda_dnn.cc:361] error retrieving driver version: Invalid argument: expected %d.%d or %d.%d.%d form for driver version; got ""
E tensorflow/stream_executor/cuda/cuda_dnn.cc:321] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
F tensorflow/core/kernels/conv_ops.cc:457] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms)
Abort trap: 6

【问题讨论】:

  • 您可以尝试禁用 SIP(​​系统完整性保护)
  • 这有帮助吗?
  • 我没试过,你确定禁用 SIP 是个好主意吗?只是因为阅读了一些内容。
  • 安装 TensorFlow GPU 时,必须禁用 SIP(​​即,当我的 SIP 恢复为默认值时,TF GPU 停止工作。我再次关闭它,它又开始工作了)

标签: tensorflow


【解决方案1】:

您可能安装了错误的 cuDNN!

我遇到了同样的问题,并且能够通过用一个兼容的替换我的 cuDNN 来修复我的问题:

【讨论】:

  • 我想我现在已经安装了多个 cudnn 版本。卸载其他版本的最佳方法是什么?我只是 rm 头文件和 lib 文件吗?
  • 是的!只需 rm 您在安装步骤中添加的文件,您就可以开始使用了。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-03-14
  • 1970-01-01
  • 1970-01-01
  • 2020-12-20
  • 2018-07-12
  • 2021-06-05
相关资源
最近更新 更多