Drivers [SOLVED]: Installing CUDA for Neural Networks driver

Drivers [SOLVED]: Installing CUDA for Neural Networks driver

Home Forums Drivers Drivers [SOLVED]: Installing CUDA for Neural Networks driver

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #34796

    Anonymous

    QuestionQuestion

    I’m totally new to ubuntu, and I have a problem in installing cuDNN. I’m following this guide, and currently in step 3:
    https://www.learnopencv.com/installing-deep-learning-frameworks-on-ubuntu-with-cuda-support/

    I downloaded the cuDNN v6.0 Library for Linux file (was saved to Downloads). Ran this command line:

    tar xvf cudnn-8.0-linux-x64-v6.0.tgz
    

    So good so far. Now I have a cuda library – /home/nimrod/Downloads/cuda/. I’m having a problem with this line:

    sudo cp -P cuda/lib64/* /usr/local/cuda/lib64/
    

    Edit: I get “cp: target ‘/usr/local/cuda/lib64/’ is not a directory”

    No idea what should I type. I tried:

    sudo cp -P cuda/lib64/* /nimrod/Downloads/cuda/lib64/
    

    and

    sudo cp -P cuda/lib64/* home/nimrod/Downloads/cuda/lib64/
    

    and a few other combinations. What should I do?

    Edit: @dessert’s suggestion of using mkdir solved the problem with the second line (odd, because I had that library). Now I have a problem with the third line, I get the following:
    cp: cannot create regular file ‘/usr/local/cuda/include/’: Not a directory

    How do I solve that?

    #34797

    Anonymous

    Accepted AnswerAnswer

    You don’t need to change a thing in this command, just run all three commands from within the same directory, e.g. /home/nimrod/Downloads in your case. Let’s cd to there to be sure:

    cd /home/nimrod/Downloads
    sudo cp -P cuda/lib64/* /usr/local/cuda/lib64/
    sudo cp cuda/include/* /usr/local/cuda/include/
    

    Alternatively you can give the commands the full paths:

    sudo cp -P /home/nimrod/Downloads/cuda/lib64/* /usr/local/cuda/lib64/
    sudo cp /home/nimrod/Downloads/cuda/include/* /usr/local/cuda/include/
    

    Source: https://askubuntu.com/questions/982404/installing-cuda-for-neural-networks-driver
    Author: dessert
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.