How to manage different versions of CUDA, CuDNN and Nvidia Drivers?
I have recently update GPU in my PC, running Ubuntu 14.04
I'm trying to run some benchmarks with Caffe, but they will strongly depend on version of CUDA, CuDNN and Nvidia Drivers.
Is there any option to manage different versions CUDA, CuDNN and Nvidia Drivers?
Will different versions interfere with each other?
Is it possible to switch between versions?
Installed Nvidia drivers:
apt-cache search nvidia | grep version
nvidia-173 - NVIDIA legacy binary driver - version 173.14.39
nvidia-304 - NVIDIA legacy binary driver - version 304.131
nvidia-304-updates - NVIDIA legacy binary driver - version 304.131
nvidia-340 - NVIDIA binary driver - version 340.96
nvidia-340-updates - NVIDIA binary driver - version 340.96
nvidia-352-updates - NVIDIA binary driver - version 352.63
nvidia-352 - NVIDIA binary driver - version 352.79
nvidia-355 - NVIDIA binary driver - version 355.11
nvidia-358 - NVIDIA binary driver - version 358.16
nvidia-361 - NVIDIA binary driver - version 361.45.18
nvidia-364 - NVIDIA binary driver - version 364.19
nvidia-367 - NVIDIA binary driver - version 367.44
nvidia-370 - NVIDIA binary driver - version 370.23
14.04 cuda gpu gpu-drivers
add a comment |
I have recently update GPU in my PC, running Ubuntu 14.04
I'm trying to run some benchmarks with Caffe, but they will strongly depend on version of CUDA, CuDNN and Nvidia Drivers.
Is there any option to manage different versions CUDA, CuDNN and Nvidia Drivers?
Will different versions interfere with each other?
Is it possible to switch between versions?
Installed Nvidia drivers:
apt-cache search nvidia | grep version
nvidia-173 - NVIDIA legacy binary driver - version 173.14.39
nvidia-304 - NVIDIA legacy binary driver - version 304.131
nvidia-304-updates - NVIDIA legacy binary driver - version 304.131
nvidia-340 - NVIDIA binary driver - version 340.96
nvidia-340-updates - NVIDIA binary driver - version 340.96
nvidia-352-updates - NVIDIA binary driver - version 352.63
nvidia-352 - NVIDIA binary driver - version 352.79
nvidia-355 - NVIDIA binary driver - version 355.11
nvidia-358 - NVIDIA binary driver - version 358.16
nvidia-361 - NVIDIA binary driver - version 361.45.18
nvidia-364 - NVIDIA binary driver - version 364.19
nvidia-367 - NVIDIA binary driver - version 367.44
nvidia-370 - NVIDIA binary driver - version 370.23
14.04 cuda gpu gpu-drivers
add a comment |
I have recently update GPU in my PC, running Ubuntu 14.04
I'm trying to run some benchmarks with Caffe, but they will strongly depend on version of CUDA, CuDNN and Nvidia Drivers.
Is there any option to manage different versions CUDA, CuDNN and Nvidia Drivers?
Will different versions interfere with each other?
Is it possible to switch between versions?
Installed Nvidia drivers:
apt-cache search nvidia | grep version
nvidia-173 - NVIDIA legacy binary driver - version 173.14.39
nvidia-304 - NVIDIA legacy binary driver - version 304.131
nvidia-304-updates - NVIDIA legacy binary driver - version 304.131
nvidia-340 - NVIDIA binary driver - version 340.96
nvidia-340-updates - NVIDIA binary driver - version 340.96
nvidia-352-updates - NVIDIA binary driver - version 352.63
nvidia-352 - NVIDIA binary driver - version 352.79
nvidia-355 - NVIDIA binary driver - version 355.11
nvidia-358 - NVIDIA binary driver - version 358.16
nvidia-361 - NVIDIA binary driver - version 361.45.18
nvidia-364 - NVIDIA binary driver - version 364.19
nvidia-367 - NVIDIA binary driver - version 367.44
nvidia-370 - NVIDIA binary driver - version 370.23
14.04 cuda gpu gpu-drivers
I have recently update GPU in my PC, running Ubuntu 14.04
I'm trying to run some benchmarks with Caffe, but they will strongly depend on version of CUDA, CuDNN and Nvidia Drivers.
Is there any option to manage different versions CUDA, CuDNN and Nvidia Drivers?
Will different versions interfere with each other?
Is it possible to switch between versions?
Installed Nvidia drivers:
apt-cache search nvidia | grep version
nvidia-173 - NVIDIA legacy binary driver - version 173.14.39
nvidia-304 - NVIDIA legacy binary driver - version 304.131
nvidia-304-updates - NVIDIA legacy binary driver - version 304.131
nvidia-340 - NVIDIA binary driver - version 340.96
nvidia-340-updates - NVIDIA binary driver - version 340.96
nvidia-352-updates - NVIDIA binary driver - version 352.63
nvidia-352 - NVIDIA binary driver - version 352.79
nvidia-355 - NVIDIA binary driver - version 355.11
nvidia-358 - NVIDIA binary driver - version 358.16
nvidia-361 - NVIDIA binary driver - version 361.45.18
nvidia-364 - NVIDIA binary driver - version 364.19
nvidia-367 - NVIDIA binary driver - version 367.44
nvidia-370 - NVIDIA binary driver - version 370.23
14.04 cuda gpu gpu-drivers
14.04 cuda gpu gpu-drivers
edited Aug 27 '16 at 13:29
mrgloom
asked Aug 27 '16 at 13:23
mrgloommrgloom
3482617
3482617
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I can only answer a part of your question.
I wrote a script to switch between multiple cuDNN versions. It currently supports v5.1, v6.0 and v7.0. You can find the script here.
Once you complete the installation and download the cuDNN versions you want to use, you can switch between v5.1, v6.0 and v7.0 with the click of a button.
This is what the script does:
#!/bin/bash
rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*
cp -P packages/cudnn/include/cudnn.h /usr/include
cp -P packages/cudnn/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*
rm -rf packages/cudnn
It performs the installation operations automatically for the version you need.
add a comment |
About coexistence and management of different CUDA versions, I think you can find your answer here:
https://devtalk.nvidia.com/default/topic/493290/cuda-programming-and-performance/multiple-cuda-versions-can-they-coexist-/post/3532363/#3532363
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%2f817467%2fhow-to-manage-different-versions-of-cuda-cudnn-and-nvidia-drivers%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I can only answer a part of your question.
I wrote a script to switch between multiple cuDNN versions. It currently supports v5.1, v6.0 and v7.0. You can find the script here.
Once you complete the installation and download the cuDNN versions you want to use, you can switch between v5.1, v6.0 and v7.0 with the click of a button.
This is what the script does:
#!/bin/bash
rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*
cp -P packages/cudnn/include/cudnn.h /usr/include
cp -P packages/cudnn/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*
rm -rf packages/cudnn
It performs the installation operations automatically for the version you need.
add a comment |
I can only answer a part of your question.
I wrote a script to switch between multiple cuDNN versions. It currently supports v5.1, v6.0 and v7.0. You can find the script here.
Once you complete the installation and download the cuDNN versions you want to use, you can switch between v5.1, v6.0 and v7.0 with the click of a button.
This is what the script does:
#!/bin/bash
rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*
cp -P packages/cudnn/include/cudnn.h /usr/include
cp -P packages/cudnn/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*
rm -rf packages/cudnn
It performs the installation operations automatically for the version you need.
add a comment |
I can only answer a part of your question.
I wrote a script to switch between multiple cuDNN versions. It currently supports v5.1, v6.0 and v7.0. You can find the script here.
Once you complete the installation and download the cuDNN versions you want to use, you can switch between v5.1, v6.0 and v7.0 with the click of a button.
This is what the script does:
#!/bin/bash
rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*
cp -P packages/cudnn/include/cudnn.h /usr/include
cp -P packages/cudnn/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*
rm -rf packages/cudnn
It performs the installation operations automatically for the version you need.
I can only answer a part of your question.
I wrote a script to switch between multiple cuDNN versions. It currently supports v5.1, v6.0 and v7.0. You can find the script here.
Once you complete the installation and download the cuDNN versions you want to use, you can switch between v5.1, v6.0 and v7.0 with the click of a button.
This is what the script does:
#!/bin/bash
rm -f /usr/include/cudnn.h
rm -f /usr/lib/x86_64-linux-gnu/*libcudnn*
rm -f /usr/local/cuda-*/lib64/*libcudnn*
cp -P packages/cudnn/include/cudnn.h /usr/include
cp -P packages/cudnn/lib64/libcudnn* /usr/lib/x86_64-linux-gnu/
chmod a+r /usr/lib/x86_64-linux-gnu/libcudnn*
rm -rf packages/cudnn
It performs the installation operations automatically for the version you need.
edited Sep 13 '17 at 13:05
answered Sep 13 '17 at 12:42
dnzzcndnzzcn
112
112
add a comment |
add a comment |
About coexistence and management of different CUDA versions, I think you can find your answer here:
https://devtalk.nvidia.com/default/topic/493290/cuda-programming-and-performance/multiple-cuda-versions-can-they-coexist-/post/3532363/#3532363
New contributor
add a comment |
About coexistence and management of different CUDA versions, I think you can find your answer here:
https://devtalk.nvidia.com/default/topic/493290/cuda-programming-and-performance/multiple-cuda-versions-can-they-coexist-/post/3532363/#3532363
New contributor
add a comment |
About coexistence and management of different CUDA versions, I think you can find your answer here:
https://devtalk.nvidia.com/default/topic/493290/cuda-programming-and-performance/multiple-cuda-versions-can-they-coexist-/post/3532363/#3532363
New contributor
About coexistence and management of different CUDA versions, I think you can find your answer here:
https://devtalk.nvidia.com/default/topic/493290/cuda-programming-and-performance/multiple-cuda-versions-can-they-coexist-/post/3532363/#3532363
New contributor
New contributor
answered 10 mins ago
Jerry YangJerry Yang
1
1
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%2f817467%2fhow-to-manage-different-versions-of-cuda-cudnn-and-nvidia-drivers%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