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_75' #40

Open
TerminatorSd opened this issue Dec 27, 2018 · 1 comment
Open

nvcc fatal : Unsupported gpu architecture 'compute_75' #40

TerminatorSd opened this issue Dec 27, 2018 · 1 comment

Comments

@TerminatorSd
Copy link

I have encountered the following problem when i tried to execute luarocks install cudnn

CMake Error at /usr/local/Cellar/cmake/3.13.2/share/cmake/Modules/FindCUDA.cmake:696 (message):
Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
CMakeLists.txt:7 (FIND_PACKAGE)

The problem was solved by installing cuda from https://developer.nvidia.com
But when i run this command for second time, a new problem has arisen.

nvcc fatal : Unsupported gpu architecture 'compute_75'
nvcc fatal : Unsupported gpu architecture 'compute_75'
CMake Error at THC_generated_THCReduceApplyUtils.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o

CMake Error at THC_generated_THCBlas.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o

nvcc fatal : Unsupported gpu architecture 'compute_75'
CMake Error at THC_generated_THCSleep.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
nvcc fatal : Unsupported gpu architecture 'compute_75'
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1
CMake Error at THC_generated_THCTensorCopy.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensorCopy.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1
nvcc fatal : Unsupported gpu architecture 'compute_75'
CMake Error at THC_generated_THCStorageCopy.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorageCopy.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o] Error 1
nvcc fatal : Unsupported gpu architecture 'compute_75'
nvcc fatal : Unsupported gpu architecture 'compute_75'
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o] Error 1
CMake Error at THC_generated_THCStorage.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCStorage.cu.o

CMake Error at THC_generated_THCHalf.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o

nvcc fatal : Unsupported gpu architecture 'compute_75'
CMake Error at THC_generated_THCTensor.cu.o.Release.cmake:219 (message):
Error generating
/tmp/luarocks_cutorch-scm-1-2575/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCTensor.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o] Error 1
make[2]: *** [lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o] Error 1
make[1]: *** [lib/THC/CMakeFiles/THC.dir/all] Error 2
make: *** [all] Error 2

Error: Failed installing dependency: https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec - Build error: Failed building.

How can i solve this problem?

@Kaushik-Raghavan
Copy link

Kaushik-Raghavan commented Aug 21, 2019

I followed this solution and solved the issue by setting the following environment variable export TORCH_CUDA_ARCH_LIST="6.1" before installing cudnn

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

2 participants