How can I verify correct CUDA is installed on my Ubuntu 16.04?
I want to install CUDA 8.0, but I got CUDA 7.5 when using the Nvidia provided *.deb
file instead of the *.run
installer.
I followed the instructions to install on the Nvidia website:
https://developer.nvidia.com/cuda-80-ga2-download-archive
I installed:
./cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
Instructions listed on website:
`sudo dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb`
`sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`
I performed the "Verify CUDA Installation" step from this answer: https://askubuntu.com/a/799185
Results of running nvcc --version
:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
Results from when I run the installer step a second time:
$ sudo apt install cuda
[sudo] password for USER:
Reading package lists... Done
Building dependency tree
Reading state information... Done
cuda is already the newest version (8.0.61-1).
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-image-4.13.0-36-generic
linux-image-extra-4.13.0-36-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Definitely Something is incorrect because when I use the *.run
version of the installer from the same page, it gives me the following nvcc
output:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
Both machines have the same Nvidia Drivers installed:
$ nvidia-smi
Wed Jun 27 08:20:03 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
But the GPU's are different which should not matter because the machine giving issues has a newer graphics card in it. Nvidia GeForce GTX 1050 Ti versus 960M
To avoid conflicts and trouble with finding compatible drivers with Ubuntu 16.04, I just used the additional drivers tab on software-properties-gtk
16.04 drivers nvidia deb cuda
add a comment |
I want to install CUDA 8.0, but I got CUDA 7.5 when using the Nvidia provided *.deb
file instead of the *.run
installer.
I followed the instructions to install on the Nvidia website:
https://developer.nvidia.com/cuda-80-ga2-download-archive
I installed:
./cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
Instructions listed on website:
`sudo dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb`
`sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`
I performed the "Verify CUDA Installation" step from this answer: https://askubuntu.com/a/799185
Results of running nvcc --version
:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
Results from when I run the installer step a second time:
$ sudo apt install cuda
[sudo] password for USER:
Reading package lists... Done
Building dependency tree
Reading state information... Done
cuda is already the newest version (8.0.61-1).
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-image-4.13.0-36-generic
linux-image-extra-4.13.0-36-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Definitely Something is incorrect because when I use the *.run
version of the installer from the same page, it gives me the following nvcc
output:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
Both machines have the same Nvidia Drivers installed:
$ nvidia-smi
Wed Jun 27 08:20:03 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
But the GPU's are different which should not matter because the machine giving issues has a newer graphics card in it. Nvidia GeForce GTX 1050 Ti versus 960M
To avoid conflicts and trouble with finding compatible drivers with Ubuntu 16.04, I just used the additional drivers tab on software-properties-gtk
16.04 drivers nvidia deb cuda
I have setup CUDA 9.2 in 16.04LTS. See: askubuntu.com/a/1025949/231142
– Terrance
Jun 27 '18 at 13:09
Most likely you installed the 8.0 into a local directory, and are picking up an old 7.5 install. Also, what is your PATH set to? If that were not updated for the 8.0 location, that would cause the problem too.
– ubfan1
Jun 27 '18 at 15:31
add a comment |
I want to install CUDA 8.0, but I got CUDA 7.5 when using the Nvidia provided *.deb
file instead of the *.run
installer.
I followed the instructions to install on the Nvidia website:
https://developer.nvidia.com/cuda-80-ga2-download-archive
I installed:
./cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
Instructions listed on website:
`sudo dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb`
`sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`
I performed the "Verify CUDA Installation" step from this answer: https://askubuntu.com/a/799185
Results of running nvcc --version
:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
Results from when I run the installer step a second time:
$ sudo apt install cuda
[sudo] password for USER:
Reading package lists... Done
Building dependency tree
Reading state information... Done
cuda is already the newest version (8.0.61-1).
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-image-4.13.0-36-generic
linux-image-extra-4.13.0-36-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Definitely Something is incorrect because when I use the *.run
version of the installer from the same page, it gives me the following nvcc
output:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
Both machines have the same Nvidia Drivers installed:
$ nvidia-smi
Wed Jun 27 08:20:03 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
But the GPU's are different which should not matter because the machine giving issues has a newer graphics card in it. Nvidia GeForce GTX 1050 Ti versus 960M
To avoid conflicts and trouble with finding compatible drivers with Ubuntu 16.04, I just used the additional drivers tab on software-properties-gtk
16.04 drivers nvidia deb cuda
I want to install CUDA 8.0, but I got CUDA 7.5 when using the Nvidia provided *.deb
file instead of the *.run
installer.
I followed the instructions to install on the Nvidia website:
https://developer.nvidia.com/cuda-80-ga2-download-archive
I installed:
./cuda-repo-ubuntu1604-8-0-local-ga2_8.0.61-1_amd64-deb
Instructions listed on website:
`sudo dpkg -i cuda-repo-ubuntu1604-9-2-local_9.2.88-1_amd64.deb`
`sudo apt-key add /var/cuda-repo-<version>/7fa2af80.pub`
`sudo apt-get update`
`sudo apt-get install cuda`
I performed the "Verify CUDA Installation" step from this answer: https://askubuntu.com/a/799185
Results of running nvcc --version
:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
Results from when I run the installer step a second time:
$ sudo apt install cuda
[sudo] password for USER:
Reading package lists... Done
Building dependency tree
Reading state information... Done
cuda is already the newest version (8.0.61-1).
The following packages were automatically installed and are no longer required:
linux-headers-4.13.0-36 linux-headers-4.13.0-36-generic linux-image-4.13.0-36-generic
linux-image-extra-4.13.0-36-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 61 not upgraded.
Definitely Something is incorrect because when I use the *.run
version of the installer from the same page, it gives me the following nvcc
output:
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61
Both machines have the same Nvidia Drivers installed:
$ nvidia-smi
Wed Jun 27 08:20:03 2018
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 384.130 Driver Version: 384.130 |
|-------------------------------+----------------------+----------------------+
But the GPU's are different which should not matter because the machine giving issues has a newer graphics card in it. Nvidia GeForce GTX 1050 Ti versus 960M
To avoid conflicts and trouble with finding compatible drivers with Ubuntu 16.04, I just used the additional drivers tab on software-properties-gtk
16.04 drivers nvidia deb cuda
16.04 drivers nvidia deb cuda
asked Jun 27 '18 at 13:01
Paresh471Paresh471
13116
13116
I have setup CUDA 9.2 in 16.04LTS. See: askubuntu.com/a/1025949/231142
– Terrance
Jun 27 '18 at 13:09
Most likely you installed the 8.0 into a local directory, and are picking up an old 7.5 install. Also, what is your PATH set to? If that were not updated for the 8.0 location, that would cause the problem too.
– ubfan1
Jun 27 '18 at 15:31
add a comment |
I have setup CUDA 9.2 in 16.04LTS. See: askubuntu.com/a/1025949/231142
– Terrance
Jun 27 '18 at 13:09
Most likely you installed the 8.0 into a local directory, and are picking up an old 7.5 install. Also, what is your PATH set to? If that were not updated for the 8.0 location, that would cause the problem too.
– ubfan1
Jun 27 '18 at 15:31
I have setup CUDA 9.2 in 16.04LTS. See: askubuntu.com/a/1025949/231142
– Terrance
Jun 27 '18 at 13:09
I have setup CUDA 9.2 in 16.04LTS. See: askubuntu.com/a/1025949/231142
– Terrance
Jun 27 '18 at 13:09
Most likely you installed the 8.0 into a local directory, and are picking up an old 7.5 install. Also, what is your PATH set to? If that were not updated for the 8.0 location, that would cause the problem too.
– ubfan1
Jun 27 '18 at 15:31
Most likely you installed the 8.0 into a local directory, and are picking up an old 7.5 install. Also, what is your PATH set to? If that were not updated for the 8.0 location, that would cause the problem too.
– ubfan1
Jun 27 '18 at 15:31
add a comment |
1 Answer
1
active
oldest
votes
sudo apt install nvidia-cuda-toolkit
Without login into GUI and after installation of cuda, reboot system.
New contributor
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1050150%2fhow-can-i-verify-correct-cuda-is-installed-on-my-ubuntu-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
sudo apt install nvidia-cuda-toolkit
Without login into GUI and after installation of cuda, reboot system.
New contributor
add a comment |
sudo apt install nvidia-cuda-toolkit
Without login into GUI and after installation of cuda, reboot system.
New contributor
add a comment |
sudo apt install nvidia-cuda-toolkit
Without login into GUI and after installation of cuda, reboot system.
New contributor
sudo apt install nvidia-cuda-toolkit
Without login into GUI and after installation of cuda, reboot system.
New contributor
New contributor
answered 7 mins ago
cutiehulk2329cutiehulk2329
11
11
New contributor
New contributor
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1050150%2fhow-can-i-verify-correct-cuda-is-installed-on-my-ubuntu-16-04%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I have setup CUDA 9.2 in 16.04LTS. See: askubuntu.com/a/1025949/231142
– Terrance
Jun 27 '18 at 13:09
Most likely you installed the 8.0 into a local directory, and are picking up an old 7.5 install. Also, what is your PATH set to? If that were not updated for the 8.0 location, that would cause the problem too.
– ubfan1
Jun 27 '18 at 15:31