Coder Social home page Coder Social logo

driver_cuda_cudnn's Introduction

driver_cuda_cudnn

instruction for the installation of the Nvidia driver + cuda + cudnn

nvidia driver 375, cuda 8.0, cudnn v5.1 [1]

  • nvidia-375 driver:
    • sudo add-apt-repository ppa:graphics-drivers/ppa
    • sudo apt-get update
    • sudo apt-get install nvidia-375
  • cuda download web: https://developer.nvidia.com/cuda-toolkit-archive
    • .deb:
      • sudo dpkg -i cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64.deb # or *-deb file
      • sudo apt-key add /var/cuda-repo-<version/Table>/7fa2af80.pub
      • sudo apt-get update
      • sudo apt-get install cuda
    • or other format, such as .run
  • cudnn download web: https://developer.nvidia.com/cudnn You need an account before download.
    • tar xvf cudnn*.tgz
    • cd cuda
    • sudo cp */*.h /usr/local/cuda/include/
    • sudo cp */libcudnn* /usr/local/cuda/lib64/
    • sudo chmod a+r /usr/local/cuda/lib64/libcudnn*

cuDNN without sudo (in your home folder) [2]

  • set the environment variables LD_LIBRARY_PATH, LIBRARY_PATH and CPATH to the directory extracted from the download.
  • If needed, separate multiple directories with : as in the PATH environment variable.
    • export CUDNN_ROOT=/home/YourUserName/libs/cudnn
    • export LD_LIBRARY_PATH=$CUDNN_ROOT/lib64:$LD_LIBRARY_PATH
    • export CPATH=$CUDNN_ROOT/include:$CPATH
    • export LIBRARY_PATH=$CUDNN_ROOT/lib64:$LD_LIBRARY_PATH

uninstall:

  • cudnn
    • if the cudnn was copied to CUDA_ROOT:
      • rm /usr/local/cuda/include/cudnn.h
      • rm /usr/local/cuda/lib64/libcudnn*
  • cuda
    • /usr/local/cuda/bin/uninstallxxx
    • or sudo apt remove --purge cuda if cuda was install using .deb file.
  • nvidia driver:
    • sudo apt remove --purge nvidia*

errors:

  • raise RuntimeError('Could not find cudnn library (looked for v5[.1])')
    • solution: export LIBRARY_PATH=/usr/local/cuda/lib64:$LIBRARY_PATH

driver_cuda_cudnn's People

Contributors

mjiust avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.