SoniTranslate icon indicating copy to clipboard operation
SoniTranslate copied to clipboard

problem cudnn_ops_infer64_8.dll

Open Roy-Bertoli opened this issue 1 year ago • 17 comments

Thank you so much for this wonderful softer, unfortunately I have a problem whether I use wsl or powershel ubunto 2.24 in win11 gpu rtx 3060 12gb cpu r5 7600 32gb "cudnn_ops_infer64_8.dll is in your library path" or reinstalled and cleaned various cuda: cuda1.8, cuda2.5 cuda2.6, cleaned and reinstalled sonitraslate dozens of times, but it always gives me the same error, on the internet they say that cdnn di cuda 1.8 can create this problem, if you can help me I thank you.

Roy-Bertoli avatar Aug 14 '24 15:08 Roy-Bertoli

This in win 11 Powershell

To create a public link, set share=True in launch(). [INFO] >> Content in 'outputs' removed. [INFO] >> Cache flushed [INFO] >> Processing video... [INFO] >> Video codec: hevc [INFO] >> Process video... [INFO] >> Process audio... [INFO] >> Content in '.\clean_song_output' removed. [INFO] >> Vocal Track Isolation and Voiceless Track Separation... 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! (sonitr) PS C:\Users\roy00\SoniTranslate>

Roy-Bertoli avatar Aug 14 '24 15:08 Roy-Bertoli

https://stackoverflow.com/questions/66977227/could-not-load-dynamic-library-libcudnn-so-8-when-running-tensorflow-on-ubun

Roy-Bertoli avatar Aug 14 '24 15:08 Roy-Bertoli

I solved in wsl Ubuntu 22.04 using

sudo apt install nvidia-cudnn

Roy-Bertoli avatar Aug 14 '24 17:08 Roy-Bertoli

the problem remains in powershell win11

Roy-Bertoli avatar Aug 14 '24 17:08 Roy-Bertoli

First of all very Thanks to make this project and make it open source!!

-----------<<<<<<<<<<

Hey! can anyone help me This same issue happens with me Here is what the issue is

[INFO] >> Content in 'outputs' removed. [INFO] >> Cache flushed [INFO] >> Processing video... [INFO] >> Video codec: h264 [INFO] >> Process video... [INFO] >> Process audio... [INFO] >> Transcribing... Suppressing numeral and symbol tokens 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!

Furywanderer avatar Aug 18 '24 14:08 Furywanderer

hello in windows I found the file in old cuda 11.4 that I had installed a few years ago on another pc and there was this file cudnn_ops_infer64_8.dll, the problem is that downloading cuda 11.4 today, those files were not there, I solved it using those files and copied them into cuda 11.8 without overwriting the existing files in cuda 11.8 and it's working. I'm not an expert at all, but it seems to me that it could have something to do with how the various versions of cuda work together with the various versions of MSVC of windows, https://www.tensorflow.org/install/source_windows?hl=it#gpu , my advice in windows is to install wsl ubunto, that the problem is solved simply by installing with this command "sudo apt install nvidia-cudnn", this is what I know waiting for someone to help us.

Roy-Bertoli avatar Aug 19 '24 08:08 Roy-Bertoli

ha... if you decide to install wsl for sonitraslate you must remember to increase the "swap" memory to at least 20-30gb, by default it is 4gb, if you don't know how to do it, ask chatgpt, I did it like this, otherwise with longer films you will have memory problems.

Roy-Bertoli avatar Aug 19 '24 08:08 Roy-Bertoli

On windows: Download https://developer.nvidia.com/rdp/cudnn-archive#a-collapse811-111 -> Download cuDNN v8.9.3 (July 11th, 2023), for CUDA 11.x

Unzip the files in your Toolkit bin folder ( e.g C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin )

MartinForsterNL avatar Aug 23 '24 19:08 MartinForsterNL

@Roy-Bertoli Hey , Thanks ! after this Right now its working on GPU-CPU balanced mode. before it only worked in CPU mode

Furywanderer avatar Aug 24 '24 12:08 Furywanderer

Furywanderer, great, but I didn't understand if you solved it using windows or wsl?

Roy-Bertoli avatar Aug 25 '24 08:08 Roy-Bertoli

MartinForsterNL, grazie dell'aiuto.

Roy-Bertoli avatar Aug 25 '24 08:08 Roy-Bertoli

@Roy-Bertoli actully before it works well on cpu mode using windows and it said out of memory issue! and after wsl it works well in both mode i mean synchronized mode..

Furywanderer avatar Aug 26 '24 11:08 Furywanderer

I have the same problem Снимок экрана 2024-09-23 151027

stepantu avatar Sep 23 '24 19:09 stepantu

how to solve on windows

stepantu avatar Sep 23 '24 19:09 stepantu

Installing cuDNN for SoniTranslate on Windows 11

To get SoniTranslate working with cuDNN on your Windows 11 machine, follow these steps:

  1. Install cuDNN 9.4.0:

    • Visit the NVIDIA cuDNN download page: https://developer.nvidia.com/cudnn-downloads
    • Download the cuDNN 9.4.0 installer for Windows 11.
    • Run the installer.
  2. Set up Environment Variables:

    • Make sure all command prompt or PowerShell windows are closed.
    • Add the cuDNN bin folder path (C:\Program Files\NVIDIA\CUDNN\v9.4\bin) to your Windows System Environment Variables.
  3. Incorporate cuDNN 8.9.7:

    • Download the cuDNN 8.9.7 archive: https://developer.nvidia.com/rdp/cudnn-archive (Look for "cuDNN v8.9.7 (December 5th, 2023), for CUDA 12.x --> Local Installer for Windows (Zip)")
    • Extract the contents of the downloaded zip file into the cuDNN 9.4.0 bin folder (C:\Program Files\NVIDIA\CUDNN\v9.4\bin).
  4. Launch SoniTranslate:

    • Open PowerShell and start SoniTranslate.

Important Note: This method has been tested and confirmed to work.

Alternative with pip (conda environment):

If you're working within a conda environment, you might try this pip installation:

pip install nvidia-cublas-cu11 nvidia-cudnn-cu11

(Note: This method hasn't been tested.)

I hope this helps! Let me know if you have any other questions.

Hackinside avatar Sep 26 '24 02:09 Hackinside

@Hackinside Thank you so much for your detailed and step-by-step method. The first one worked for me too.

angelfire76 avatar May 06 '25 21:05 angelfire76

@Hackinside Thank you, this was the fix for me

superswan avatar May 26 '25 22:05 superswan