could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED
今天我在运行keras版本的cnn rnn classifier的时候,报了如下的错误:
totalMemory: 10.91GiB freeMemory: 10.20GiB2018-05-08 21:27:29.962822: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1435] Adding visible gpu devices: 02018-05-08 21:27:30.176092: I tensorflow/core/common_runtime/gpu/gpu_device.cc:923] Device interconnect StreamExecutor with strength 1 edge matrix:2018-05-08 21:27:30.176127: I tensorflow/core/common_runtime/gpu/gpu_device.cc:929] 0 2018-05-08 21:27:30.176135: I tensorflow/core/common_runtime/gpu/gpu_device.cc:942] 0: N 2018-05-08 21:27:30.176364: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1053] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9868 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:03:00.0, compute capability: 6.1)2018-05-08 21:27:32.141585: E tensorflow/stream_executor/cuda/cuda_dnn.cc:455] could not create cudnn handle: CUDNN_STATUS_NOT_INITIALIZED2018-05-08 21:27:32.141664: E tensorflow/stream_executor/cuda/cuda_dnn.cc:463] possibly insufficient driver version: 384.130.02018-05-08 21:27:32.141682: F tensorflow/core/kernels/conv_ops.cc:713] Check failed: stream->parent()->GetConvolveAlgorithms( conv_parameters.ShouldIncludeWinogradNonfusedAlgo
百思不得其解,查了很多资料都行不通,我的环境是cuda 9.0,ubuntu 16.04,然后我看到cudnn错误的地方好像跟cudnn有关,我的cuda是9.0,于是-了一个cudnn 7.0,
tar zxvf cudnn-9.0-linux-x64-v7.tgzsudo cp cuda/include/cudnn.h /usr/local/cuda/includesudo cp cuda/lib64/* /usr/local/cuda/lib64
然后发现程序能够正常的运行了,我分析这可能是我在更新cuda后,忘记把cudnn也更新到7.0引起的,我这里记录下来,希望帮助到大家。
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~