Ask Your Question
0

After installing Torch 2, an error occurred that prevented the loading of the libcudnn_cnn_infer.so.8 library. The specific error message indicated that the libnvrtc.so shared object file could not be opened as it did not exist or was not found.

asked 2023-06-30 12:40:02 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-06-30 12:56:01 +0000

lalupa gravatar image

To resolve this issue, you can follow these steps:

  1. Check if the libnvrtc.so file is present in your system by running the following command:

    sudo find / -name 'libnvrtc.so'
    

    This will search for the file in your entire system. If the file is found, note down its path.

  2. If the file is not found, you may need to install the NVIDIA CUDA Toolkit, which includes the libnvrtc.so file. Follow the installation instructions for your Linux distribution and make sure to include the CUDA toolkit.

  3. Once you have located the libnvrtc.so file, make sure it is included in your LDLIBRARYPATH environment variable by running the following command:

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/libnvrtc.so
    

    Replace "/path/to/libnvrtc.so" with the path where the file is located.

  4. Finally, try running your Torch application again. It should be able to locate the libnvrtc.so file and load the libcudnncnninfer.so.8 library without any issues.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-30 12:40:02 +0000

Seen: 12 times

Last updated: Jun 30 '23