Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvcc fatal : Unsupported gpu architecture 'compute_80' #44

Closed
GuanhuaWang opened this issue Jun 29, 2020 · 5 comments
Closed

nvcc fatal : Unsupported gpu architecture 'compute_80' #44

GuanhuaWang opened this issue Jun 29, 2020 · 5 comments

Comments

@GuanhuaWang
Copy link

GuanhuaWang commented Jun 29, 2020

Hi I tried to run the sample code here in ~/cuda-samples/Samples/p2pBandwidthLatencyTest on AWS g3 and p3 instance, with CUDA v10.0.130

When I try make it reports following errors:

ubuntu@ip-172-31-21-246:~/cuda-samples/Samples/p2pBandwidthLatencyTest$ make
/usr/local/cuda/bin/nvcc -ccbin g++ -I../../Common  -m64    -gencode arch=compute_35,code=sm_35 -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=sm_50 -gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80 -gencode arch=compute_80,code=compute_80 -o p2pBandwidthLatencyTest.o -c p2pBandwidthLatencyTest.cu
nvcc fatal   : Unsupported gpu architecture 'compute_80'
Makefile:311: recipe for target 'p2pBandwidthLatencyTest.o' failed
make: *** [p2pBandwidthLatencyTest.o] Error 1
@mdoijade
Copy link
Collaborator

@GuanhuaWang you need to install cuda 11.0 toolkit to compile these samples. cuda 11.0 supports compute_80 (ampere arch GPU).

@udnaan
Copy link

udnaan commented Sep 25, 2020

The maintainers seem to tag each cuda requirement bump so depending on the cuda version you have, a simple thing to do is to do a git checkout v11.0 and if you are like me and keep multiple cuda versions, do a env CUDA_PATH=/usr/local/nvidia/cuda/11.0 make

Replace 11.0 with the cuda version you have.

@h1z1
Copy link

h1z1 commented Oct 2, 2020

Was about to report this again. Why is that required on all samples including those that are not specific to that arch? Nothing builds otherwise.

@jtillots
Copy link

You can remove the "80 86" from the SMS lines in the Makefiles. Then you can build it with Cuda10.

@mikizvi
Copy link

mikizvi commented Sep 23, 2023

Similar issue with newb building the cuda-samples after a completely clean by-the-book latest-stable install on Ubuntu 22.04:
nvcc fatal : Unsupported gpu architecture 'compute_89'

My fix was:
export SMS="50 52 60 61 70 75 80 86"
before running a "make -k" command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants