question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nvcc fatal : Unsupported gpu architecture 'compute_75'

See original GitHub issue

when I run :python setup.py build develop It shows:

/usr/local/cuda/bin/nvcc -DWITH_CUDA -I/home/yantianwang/detectron2/detectron2/layers/csrc -I/home/yantianwang/anaconda2/envs/pytorch/lib/python3.6/site-packages/torch/include -I/home/yantianwang/anaconda2/envs/pytorch/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/yantianwang/anaconda2/envs/pytorch/lib/python3.6/site-packages/torch/include/TH -I/home/yantianwang/anaconda2/envs/pytorch/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda/include -I/home/yantianwang/anaconda2/envs/pytorch/include/python3.6m -c /home/yantianwang/detectron2/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.cu -o build/temp.linux-x86_64-3.6/home/yantianwang/detectron2/detectron2/layers/csrc/ROIAlign/ROIAlign_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++11 nvcc fatal : Unsupported gpu architecture 'compute_75' error: command '/usr/local/cuda/bin/nvcc' failed with exit status 1

Environment

GPU:GTX 2080TI CUDA 9.2 cudnn 7.6.3 pytorch 1.13.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

18reactions
sophia-hxwcommented, Oct 24, 2019

I have the same problem and U can look the solution in the blog

    https://blog.csdn.net/sophia_xw/article/details/102561410

May be it’s because U have more than one CUDA in your machine. You can use ‘mvcc -V’ or ‘cat /usr/local/cuda/version.txt’ or ‘ls /usr/bin -la’ or ‘stat Cuda’ to see the version of your CUDA.

The solution is, build path and ld_library in ~/.bashrc

sudo gedit ~/.bashrc export PATH=/usr/local/cuda-10.1/bin${PATH:+:${PATH}} export LD_LIBRARY_PATH=/usr/local/cuda-10.1/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} source ~/.bashrc

0reactions
gmt710commented, Dec 2, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to install Torch with new Turing GPU (RTX) - nvcc fatal
"nvcc fatal : Unsupported gpu architecture 'compute_75'". I tried to manually add "7.0"/"7.5" in "select_compute_arch.cmake", but nothing changed.
Read more >
Nvcc fatal: unsupported gpu architecture
Hello, my compiling GPU is Tesla T4, which is sm_75, CUDA verison 11.0, driver version 450.102.04 I try to compile an application on...
Read more >
nvcc fatal : Unsupported gpu architecture 'compute_86'
NVCC of this version is too old to support compute_86 . A possible reason for which this happens is that you have installed...
Read more >
nvcc fatal : unsupported gpu architecture 'compute_75
nvcc fatal : unsupported gpu architecture 'compute_75. # CUDA architecture setting: going with all of them. # For CUDA < 6.0, comment the...
Read more >
GPU error during installation of Gromacs 2020.3
nvcc fatal : Unsupported gpu architecture 'compute_30' ... sm_70, sm_75 SASS, and compute_75 PTX # First add flags that trigger SASS (binary) code ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found