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_92' #6408

Closed
Ceruma opened this issue May 28, 2018 · 9 comments
Closed

nvcc fatal : Unsupported gpu architecture 'compute_92' #6408

Ceruma opened this issue May 28, 2018 · 9 comments

Comments

@Ceruma
Copy link

Ceruma commented May 28, 2018

CustomBuild:
Building NVCC (Device) object src/caffe/CMakeFiles/cuda_compile_1.dir/layers/Release/cuda_compile_1_generated_absval_
layer.cu.obj
nvcc fatal : Unsupported gpu architecture 'compute_92'
CMake Error at cuda_compile_1_generated_absval_layer.cu.obj.Release.cmake:219 (message):
Error generating
C:/Projects/caffe/build/src/caffe/CMakeFiles/cuda_compile_1.dir/layers/Release/cuda_compile_1_generated_absval_laye
r.cu.obj

Could any one help me solve the issue?

@RustyRaptor
Copy link

Getting this as well but with compute_20. I believe this has something to do with the nvcc or cuda version. I don't know where the architecture is defined.

@RustyRaptor
Copy link

ah found it go to the makefile.conf file and look for CUDA_ARCH. Just set it to whatever your GPU supports. You can find that on a wiki somewhere it usually corresponds to a compute version as in 2.1 will be compute_21 etc

@RustyRaptor
Copy link

RustyRaptor commented Jun 13, 2018

Aha here we go. Just remove all the lines that are on CUDA_ARCH except the one that matches your GPU. Use this to see which one.
http://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
It appears to have worked for me with sm_60 I have a GTX 1060 6GB so it's pascal arch

@Noiredd
Copy link
Member

Noiredd commented Aug 17, 2018

Yes this is related to your CUDA SDK version, @RustyRaptor is giving a good advice.

Closing, assuming the given answer helped. If not, please reopen and provide further details, especially how the suggested solution failed.

@Noiredd Noiredd closed this as completed Aug 17, 2018
@zchrissirhcz
Copy link

zchrissirhcz commented Aug 23, 2018

update: For people that meet this same problem, if you're building caffe with cmake and cuda on windows, you may refer to my Chinese blog for detail steps: Windows下用cmake编译Caffe

@yanhaiming56
Copy link

I also have the error "nvcc fatal : Unsupported gpu architecture 'compute_481'".How can resolve the error

@zchrissirhcz
Copy link

@yanhaiming56 You need to specify your cuda arch dependencies, and in my pasted blog content I've already give the solution. That is:

cmake/Cuda.cmake,line 7, removing 20 and 21 support, since newer cuda don't support them and treat as error. Also adding 52 to support GTX970 card. Thus the updated line is:

set(Caffe_known_gpu_archs "30 35 50 52 60 61")

cmake/Cuda.cmake,around line 40, specify the nvcc cuda arch version. I use 1080Ti which is 6.1 compute arch version, so changing:

      string(REGEX MATCH "([1-9].[0-9])$" __nvcc_out "${__nvcc_out}")
      string(REPLACE "2.1" "2.1(2.0)" __nvcc_out "${__nvcc_out}")

to:

    set(__nvcc_out "6.1")

@wangruicsu
Copy link

Aha here we go. Just remove all the lines that are on CUDA_ARCH except the one that matches your GPU. Use this to see which one.
http://arnon.dk/matching-sm-architectures-arch-and-gencode-for-various-nvidia-cards/
It appears to have worked for me with sm_60 I have a GTX 1060 6GB so it's pascal arch

it works!

@ys198918
Copy link

ys198918 commented Jul 2, 2019

I also have the error "nvcc fatal : Unsupported gpu architecture 'compute_481'".How can resolve the error

what gpu are you using?

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

7 participants