How do I install CUDA on an EC2 Ubuntu 18.04 instance?












0















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:




  1. sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb

  2. sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

  3. sudo apt-get update

  4. sudo apt-get install cuda










share|improve this question







New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • do you want to use tensorflow-gpu?

    – MrYouMath
    7 hours ago
















0















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:




  1. sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb

  2. sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

  3. sudo apt-get update

  4. sudo apt-get install cuda










share|improve this question







New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • do you want to use tensorflow-gpu?

    – MrYouMath
    7 hours ago














0












0








0








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:




  1. sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb

  2. sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

  3. sudo apt-get update

  4. sudo apt-get install cuda










share|improve this question







New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












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:




  1. sudo dpkg -i cuda-repo-ubuntu1804_10.0.130-1_amd64.deb

  2. sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub

  3. sudo apt-get update

  4. sudo apt-get install cuda







nvidia 18.04 cuda amazon-ec2






share|improve this question







New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 7 hours ago









tsujptsujp

1012




1012




New contributor




tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






tsujp is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • 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





do you want to use tensorflow-gpu?

– MrYouMath
7 hours ago










1 Answer
1






active

oldest

votes


















1














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.






share|improve this answer
























  • 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











  • 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











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.










draft saved

draft discarded


















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









1














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.






share|improve this answer
























  • 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











  • 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
















1














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.






share|improve this answer
























  • 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











  • 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














1












1








1







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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 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











  • 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



















  • 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











  • 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

















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










tsujp is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

GameSpot

日野市

Tu-95轟炸機