Could not load library cudnn_ops_infer64_8.dll. Error code 126 Please make sure cudnn_ops_infer64_8.dll is in your library path

We Are Going To Discuss About Could not load library cudnn_ops_infer64_8.dll. Error code 126 Please make sure cudnn_ops_infer64_8.dll is in your library path. So lets Start this Python Article.

Could not load library cudnn_ops_infer64_8.dll. Error code 126 Please make sure cudnn_ops_infer64_8.dll is in your library path

  1. How to solve Could not load library cudnn_ops_infer64_8.dll. Error code 126 Please make sure cudnn_ops_infer64_8.dll is in your library path

    You should have downloaded CUDA zip file. Go to that file, extract it and in the bin folder you will see
    cudnn_adv_infer64_8.dll cudnn_adv_train64_8.dll cudnn_cnn_infer64_8.dll cudnn_cnn_train64_8.dll cudnn_ops_infer64_8.dll cudnn_ops_train64_8.dll
    Copy these files into your nvidia gpu computing toolkit\cuda\bin folder.

  2. Could not load library cudnn_ops_infer64_8.dll. Error code 126 Please make sure cudnn_ops_infer64_8.dll is in your library path

    You should have downloaded CUDA zip file. Go to that file, extract it and in the bin folder you will see
    cudnn_adv_infer64_8.dll cudnn_adv_train64_8.dll cudnn_cnn_infer64_8.dll cudnn_cnn_train64_8.dll cudnn_ops_infer64_8.dll cudnn_ops_train64_8.dll
    Copy these files into your nvidia gpu computing toolkit\cuda\bin folder.

Solution 1

You should have downloaded CUDA zip file. Go to that file, extract it and in the bin folder you will see

cudnn_adv_infer64_8.dll
cudnn_adv_train64_8.dll
cudnn_cnn_infer64_8.dll
cudnn_cnn_train64_8.dll
cudnn_ops_infer64_8.dll
cudnn_ops_train64_8.dll

Copy these files into your nvidia gpu computing toolkit\cuda\bin folder.

Original Author MADM4X Of This Content

Solution 2

In my case, it is because I did not install zlib, and after I install it, it works!!

enter image description here

Original Author Natumsol Of This Content

Solution 3

Leaving an answer to respond to Diego Rueda‘s comment on MADM4X’s post.

I ran into the same issue: copied the cuDNN files into my CUDA toolkit install and received the Error Code 126.

You need to specifically download/copy cuDNN Version 8.1.x. If you use the latest version (8.3.x) you’ll receive the error Code described in the original post.

TensorFlow doesn’t seem to be as sensitive to the Toolkit’s version (I’m running 11.4), but I haven’t explored all of the features to make sure they work.

For more context, you can find the specific CUDA/cuDNN versions listed on TensorFlow’s website.

Original Author LVB Of This Content

Solution 4

Jupyter notebook was locking the file in my case, closing Jupyter notebook server solved it for me.

Original Author Nir Of This Content

Conclusion

So This is all About This Tutorial. Hope This Tutorial Helped You. Thank You.

Also Read,

ittutorial team

I am an Information Technology Engineer. I have Completed my MCA And I have 4 Year Plus Experience, I am a web developer with knowledge of multiple back-end platforms Like PHP, Node.js, Python and frontend JavaScript frameworks Like Angular, React, and Vue.

Leave a Comment