baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.06k stars 1.04k forks source link

Error when Building: nvcc fatal: Unsupported gpu architecture 'compute_30' #164

Closed alealv closed 3 years ago

alealv commented 3 years ago

When building I get the following error

/usr/local/cuda/bin/nvcc -M -D__CUDACC__ /home/aalvarez/Projects/flashlight/app/asr/third_party/warpctc/src/reduce.cu -o /home/aalvarez/Projects/flashlight/build/CMakeFiles/warpctc.dir/app/asr/third_party/warpctc/src/warpctc_generated_reduce.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 -Dwarpctc_EXPORTS -Xcompiler ,\"-fopenmp\",\"-fPIC\",\"-O3\",\"-DNDEBUG\" -std=c++11 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -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_70,code=compute_70 -gencode arch=compute_75,code=compute_75 -DNVCC -I/usr/local/cuda/include -I/home/aalvarez/Projects/flashlight/app/asr/third_party/warpctc/include
nvcc fatal   : Unsupported gpu architecture 'compute_30'
CMake Error at warpctc_generated_reduce.cu.o.Release.cmake:220 (message):
  Error generating
  /home/aalvarez/Projects/flashlight/build/CMakeFiles/warpctc.dir/app/asr/third_party/warpctc/src/./warpctc_generated_reduce.cu.o

Here are my CUDA and NVCC version

➜ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Tue_Sep_15_19:10:02_PDT_2020
Cuda compilation tools, release 11.1, V11.1.74
Build cuda_11.1.TC455_06.29069683_0

This is my GPU

➜ nvidia-smi -L
GPU 0: GeForce GTX 1650 Ti

OS

➜ uname -a
Linux LP-TBC 5.8.14-050814-generic #202010070730 SMP Wed Oct 7 07:35:25 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
alealv commented 3 years ago

I realized that flashlight was not using the latest CMakeLists.txt from this repo