Installing CUDA 7.5 for Tesla M40 on Ubuntu 14.04.5 LTS

Install Driver

  1. Download Tesla driver ( )
  2. Move to runlevel 3
    $ telinit 3

  3. Stop lightdm service
    $ service lightdm stop

  4. Change file mode of the driver package
    $ chmod +x

5. Install driver without opengl driver
$ ./ --no-opengl-files

  1. Once completed, check whether the module is loaded
    $ lsmod | grep nvidia
    if not loaded try to manually load
    $ modprobe nvidia

  2. Query GPU info
    $ nvidia-smi

  3. Start lightdm back
    $ service lightdm start

  4. reboot

Install CUDA

  1. Download CUDA 7.5 local repo from ( ). Choose deb(local) installer type.

  2. Install CUDA local repo
    $ sudo dpkg -i cuda-repo-ubuntu*.deb
    $ sudo apt-get update

  3. Install cuda toolkit only
    $ sudo apt-get install cuda-toolkit-7-5

  4. Set PATH and LD_LIBRARY_PATH in /etc/profile.d and you may also need to configure ldconfig in /etc/

  5. Try to compile deviceQuery

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.