How do I install CUDA on an EC2 Ubuntu 18.04 instance?
I've read quite a few guides around the web, gists, and other posts on this exchange and I cannot find anything that works. Every time I get to nvidia-smi
it returns that it cannot communicate.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
Installing CUDA:
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
nvidia 18.04 cuda amazon-ec2
New contributor
add a comment |
I've read quite a few guides around the web, gists, and other posts on this exchange and I cannot find anything that works. Every time I get to nvidia-smi
it returns that it cannot communicate.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
Installing CUDA:
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
nvidia 18.04 cuda amazon-ec2
New contributor
do you want to use tensorflow-gpu?
– MrYouMath
7 hours ago
add a comment |
I've read quite a few guides around the web, gists, and other posts on this exchange and I cannot find anything that works. Every time I get to nvidia-smi
it returns that it cannot communicate.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
Installing CUDA:
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
nvidia 18.04 cuda amazon-ec2
New contributor
I've read quite a few guides around the web, gists, and other posts on this exchange and I cannot find anything that works. Every time I get to nvidia-smi
it returns that it cannot communicate.
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running
Installing CUDA:
sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo apt-get update
sudo apt-get install cuda
nvidia 18.04 cuda amazon-ec2
nvidia 18.04 cuda amazon-ec2
New contributor
New contributor
New contributor
asked 7 hours ago
tsujptsujp
1012
1012
New contributor
New contributor
do you want to use tensorflow-gpu?
– MrYouMath
7 hours ago
add a comment |
do you want to use tensorflow-gpu?
– MrYouMath
7 hours ago
do you want to use tensorflow-gpu?
– MrYouMath
7 hours ago
do you want to use tensorflow-gpu?
– MrYouMath
7 hours ago
add a comment |
1 Answer
1
active
oldest
votes
You should follow the official AWS documentation for EC2 to use NVidia there. You must also have a GPU-enabled instance. The regular instances do not have NVidia access, as I understand.
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error atnvidia-smi
.
– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up inlspci
output?
– dobey
3 hours ago
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
});
}
});
tsujp is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1109662%2fhow-do-i-install-cuda-on-an-ec2-ubuntu-18-04-instance%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
You should follow the official AWS documentation for EC2 to use NVidia there. You must also have a GPU-enabled instance. The regular instances do not have NVidia access, as I understand.
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error atnvidia-smi
.
– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up inlspci
output?
– dobey
3 hours ago
add a comment |
You should follow the official AWS documentation for EC2 to use NVidia there. You must also have a GPU-enabled instance. The regular instances do not have NVidia access, as I understand.
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error atnvidia-smi
.
– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up inlspci
output?
– dobey
3 hours ago
add a comment |
You should follow the official AWS documentation for EC2 to use NVidia there. You must also have a GPU-enabled instance. The regular instances do not have NVidia access, as I understand.
You should follow the official AWS documentation for EC2 to use NVidia there. You must also have a GPU-enabled instance. The regular instances do not have NVidia access, as I understand.
answered 7 hours ago
dobeydobey
32.6k33586
32.6k33586
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error atnvidia-smi
.
– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up inlspci
output?
– dobey
3 hours ago
add a comment |
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error atnvidia-smi
.
– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up inlspci
output?
– dobey
3 hours ago
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error at
nvidia-smi
.– tsujp
7 hours ago
How do I check if it's GPU enabled, I'm provisioning the EC2 P3 instances. Specifically the P3.8 and I have followed their guide both downloading it manually and downloading the public drivers and I still get the same error at
nvidia-smi
.– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
I also get this error whenever I try and install the appropriate drivers for V100s on the instances which makes no sense to me because these are the exact drivers for these exact GPUs: ` WARNING: You do not appear to have an NVIDIA GPU supported by the 410.79 NVIDIA Linux graphics driver installed in this system. For further details, please see the appendix SUPPORTED NVIDIA GRAPHICS CHIPS in the README available on the Linux driver download page at www.nvidia.com. `
– tsujp
7 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up in
lspci
output?– dobey
3 hours ago
aws.amazon.com/ec2/instance-types suggests P3 instances are GPU enabled, so if you are following the documentation from Amazon, and using that instance type, and it's not working, maybe it would be best to contact AWS support for further help. It sounds like perhaps your instance is supposed to have GPUs and doesn't. Do they show up in
lspci
output?– dobey
3 hours ago
add a comment |
tsujp is a new contributor. Be nice, and check out our Code of Conduct.
tsujp is a new contributor. Be nice, and check out our Code of Conduct.
tsujp is a new contributor. Be nice, and check out our Code of Conduct.
tsujp is a new contributor. Be nice, and check out our Code of Conduct.
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%2f1109662%2fhow-do-i-install-cuda-on-an-ec2-ubuntu-18-04-instance%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
do you want to use tensorflow-gpu?
– MrYouMath
7 hours ago