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_20' #1

Open
IsmailM opened this issue Mar 7, 2021 · 0 comments
Open

nvcc fatal : Unsupported gpu architecture 'compute_20' #1

IsmailM opened this issue Mar 7, 2021 · 0 comments

Comments

@IsmailM
Copy link

IsmailM commented Mar 7, 2021

See heathsc/gemBS-rs#1

I see the following error when building gem-cutter:

$ make install
make -f Makefile.gemBS install
make[1]: Entering directory '/home/ucbtmog/progz/gemBS-rs'
make -C c_tools
make[2]: Entering directory '/home/ucbtmog/progz/gemBS-rs/c_tools'
make --directory=gem3-mapper
make[3]: Entering directory '/home/ucbtmog/progz/gemBS-rs/c_tools/gem3-mapper'
make --directory=resources release
make[4]: Entering directory '/home/ucbtmog/progz/gemBS-rs/c_tools/gem3-mapper/resources'
make --directory=gem-cutter release
make[5]: Entering directory '/home/ucbtmog/progz/gemBS-rs/c_tools/gem3-mapper/resources/gem-cutter'
/usr/local/cuda/bin/nvcc -O3 -m64 -Xptxas="-dlcm=ca" -gencode arch=compute_20,code=\"sm_20,compute_20\" -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=\"sm_35,compute_35\" -gencode arch=compute_37,code=sm_37 -gencode arch=compute_50,code=\"sm_50,compute_50\" -gencode arch=compute_52,code=\"sm_52,compute_52\" -gencode arch=compute_60,code=\"sm_60,compute_60\" -gencode arch=compute_61,code=\"sm_61,compute_61\" -gencode arch=compute_62,code=\"sm_62,compute_62\" -c src/gpu_fmi_decode.cu -o build/gpu_fmi_decode.o
nvcc fatal   : Unsupported gpu architecture 'compute_20'
Makefile:90: recipe for target 'build/gpu_fmi_decode.o' failed
make[5]: *** [build/gpu_fmi_decode.o] Error 1
make[5]: Leaving directory '/home/ucbtmog/progz/gemBS-rs/c_tools/gem3-mapper/resources/gem-cutter'
Makefile:16: recipe for target 'release' failed
make[4]: *** [release] Error 2
make[4]: Leaving directory '/home/ucbtmog/progz/gemBS-rs/c_tools/gem3-mapper/resources'
Makefile:32: recipe for target 'release' failed
make[3]: *** [release] Error 2
make[3]: Leaving directory '/home/ucbtmog/progz/gemBS-rs/c_tools/gem3-mapper'
Makefile:56: recipe for target 'gem3' failed
make[2]: *** [gem3] Error 2
make[2]: Leaving directory '/home/ucbtmog/progz/gemBS-rs/c_tools'
Makefile.gemBS:60: recipe for target 'c_tools' failed
make[1]: *** [c_tools] Error 2
make[1]: Leaving directory '/home/ucbtmog/progz/gemBS-rs'
Makefile:7: recipe for target 'install' failed
make: *** [install] Error 2

My NVCC version is:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Thu_Jan_28_19:32:09_PST_2021
Cuda compilation tools, release 11.2, V11.2.142
Build cuda_11.2.r11.2/compiler.29558016_0

The server has two GPU GeForce RTX 3090...

I managed to get around the issue by updating Makefile, specifically setting the two following variables to empty:

From

CUDA_SASS_FLAG_20=-gencode arch=compute_20,code=\"sm_20,compute_20\" -gencode arch=compute_20,code=sm_21
CUDA_SASS_FLAG_30=$(CUDA_SASS_FLAG_20) -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=\"sm_35,compute_35\"

To:

CUDA_SASS_FLAG_20=
#-gencode arch=compute_20,code=\"sm_20,compute_20\" -gencode arch=compute_20,code=sm_21
CUDA_SASS_FLAG_30=
#$(CUDA_SASS_FLAG_20) -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=\"sm_35,compute_35\"

It would be great if the Makefile could automatically set the correct $CUDA_SASS_FLAGS based on the NVCC version...

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

1 participant