Could not load library cudnn_cnn_infer64_8.dll. Error code 193

We strongly believe that this issue is setup-related (Zlib).
Error in your logs clearly says, unable to access zlibwapi.dll.
This is a setup issue from your end.

We noticed that your System is 32-bit and but you downloaded 2 types of Zlib files. Please delete both of them. Please download only one correct one.

For your convenience, I am attaching zlib files here.

We recommend you to

  • Download the one 64-bit zlib from the link within cuDNN documentation and CONFIRM that it is 64-bit and named correctly (zlibwapi.dll ). I would note that the link we provide is the same link provided by the official zlib page (https://zlib.net/ - under “Related External Links: zlib for Windows 9x/NT/2000/XP/2003 (DLL version, plus related utilities”). So even if it is not hosted through https, it’s the recommended download link.

  • Also, please copy zlibwapi.dll to “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA<cuda_version>\bin” - make sure only one CUDA version is installed.

  • Make sure zlib can be found by the loader

  • If the Above fails please try 32-bit as well by deleting the previous file.

For 64-bit → zlib123dllx64.zip (142.1 KB) - Please use dll_x64\zlibwapi.dll in the zip file

For 32-bit → zlib123dll.zip (182.2 KB) - Please use dll32\zlibwapi.dll in the zip file

3 Likes