GithubHelp home page GithubHelp logo

install-cuda-cudnn's Introduction

Installation process for CUDA and CuDNN

Verify Capacity of GPU

lspci | grep -i nvidia

Check supported version of linux

uname -m && cat /etc/*release

verify gcc and make installed in system

gcc --version # if failed execute sudo apt install gcc

make --version # if failes execute sudo apt install make

check version of kernel and install headers

uname -r

sudo apt-get install linux-headers-$(uname -r)

blacklist nouveau drivers

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist-nouveau.conf

echo "options nouveau modeset=0" >> /etc/modprobe.d/blacklist-nouveau.conf

Regenerate kernel initrampfs

sudo update-initramfs -u

Remove preinstalled drivers

sudo apt-get purge nvidia-cuda*

sudo apt-get purge nvidia-*

Download Compatible driver .run file

https://developer.nvidia.com/cuda-downloads

Log in with init 3 and install drivers

init 3

cd Downloads

./your-nividia-driver.run # skip OpenGL installation and create cuda link while installation

After Installation Config Path

nano /home/$USER/.bashrc

append following content into file

export PATH=/usr/local/cuda-x.x/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda-x.x/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-x.x/lib64

then save file and execute

source /home/$USER/.bashrc

Verify Installation

nvcc --version

install-cuda-cudnn's People

Contributors

arjun-kava avatar

Watchers

 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.