tensorflow: could not set cudnn filter descriptor: CUDNN_STATUS_BAD_PARAM

The version of cuda and cudnn meets the requirement, but still cannot use cudnn properly.

What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?

Environment info

Operating System: Linux version 3.16.0-30-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #40~14.04.1-Ubuntu

Installed version of CUDA and cuDNN: (please attach the output of ls -l /path/to/cuda/lib/libcud*): -rw-r–r-- 1 root root 558720 Sep 15 07:02 /usr/local/cuda/lib64/libcudadevrt.a lrwxrwxrwx 1 root root 16 Sep 15 07:05 /usr/local/cuda/lib64/libcudart.so -> libcudart.so.8.0 lrwxrwxrwx 1 root root 19 Sep 15 07:05 /usr/local/cuda/lib64/libcudart.so.8.0 -> libcudart.so.8.0.44 -rw-r–r-- 1 root root 415432 Sep 15 07:02 /usr/local/cuda/lib64/libcudart.so.8.0.44 -rw-r–r-- 1 root root 775162 Sep 15 07:02 /usr/local/cuda/lib64/libcudart_static.a lrwxrwxrwx 1 root root 13 Nov 22 10:55 /usr/local/cuda/lib64/libcudnn.so -> libcudnn.so.5 lrwxrwxrwx 1 root root 17 Nov 22 10:55 /usr/local/cuda/lib64/libcudnn.so.5 -> libcudnn.so.5.1.5 -rw-r–r-- 1 root root 78065952 Nov 22 10:09 /usr/local/cuda/lib64/libcudnn.so.5.0.5 -rw-r–r-- 1 root root 79337624 Nov 22 10:17 /usr/local/cuda/lib64/libcudnn.so.5.1.5 -rw-r–r-- 1 root root 69756172 Nov 22 10:17 /usr/local/cuda/lib64/libcudnn_static.a

If installed from binary pip package, provide:

  1. A link to the pip package you installed: export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0-cp27-none-linux_x86_64.whl

  2. The output from python -c "import tensorflow; print(tensorflow.__version__)". 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 0.11.0

If possible, provide a minimal reproducible example (We usually don’t have time to read hundreds of lines of your code)

when trying to call a function that is only supported by cudnn, for example conv2d

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 18 (8 by maintainers)

Most upvoted comments

@ppwwyyxx @yzhwang I had just downloaded a fresh CUDA from NVIDIA, which defaults to version 9.1, not realizing that TF didn’t support that yet. I resolved this problem by downgrading to CUDA 9.0. You can close this issue again.
@kirk86, try using CUDA 9.0 instead. Also, I’m using CUDNN 7.0.5 and it’s working.

Might be worth noting: I’ve built TF from source before, but couldn’t manage to do so using CUDA 9.1. I don’t recall the errors, just that downgrading to 9.0 finally enabled me to “get back to work.”