could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR

https://blog.csdn.net/xianqin_ma/article/details/79525519

The specific problem is shown below: (My TensorFlow version is 1.2)
E tensorflow/stream_executor/cuda/cuda_dnn.cc:359] could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
E tensorflow/stream_executor/cuda/cuda_dnn.cc:326] could not destroy cudnn handle: CUDNN_STATUS_BAD_PARAM
2018-03-12 10:55:56.078991: F tensorflow/core/kernels/conv_ops.cc:671] Check failed: stream->parent()->GetConvolveAlgorithms(&algorithms)  Aborted (core dumped)

Process finished with exit code 134 (interrupted by signal 6: SIGABRT)


Tried many solutions for this problem, the final solution is:

Execute: sudo rm -R -f ~/.nv/ (be sure not to miss "/" at the end, otherwise it will prompt ".nv" as a directory)

I have tried other methods, but it doesn't work.

I also successfully executed this:

gpu_options = tf.GPUOptions(per_process_gpu_memory_fraction=0.8)

sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))

For this issue, I provide a reference link: https://github.com/tensorflow/tensorflow/issues/6698


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325858175&siteId=291194637