kaldi-asr/kaldi

nvcc fatal : Unsupported gpu architecture 'compute_20'

dllen opened this issue ยท 10 comments

dllen commented

when install throws this error
nvcc fatal : Unsupported gpu architecture 'compute_20' make[2]: *** [cu-kernels.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ar -cru kaldi-tree.a event-map.o context-dep.o clusterable-classes.o cluster-utils.o build-tree-utils.o build-tree.o build-tree-questions.o tree-renderer.o

galv commented
dllen commented

Sorry, would you provide more information how can I fix it in detail? Thanks so much.

galv commented

If the problem persists after removing the -gencode arch=compute_20,code=sm_20 line, try to erase the following file: /caffe/build/CMakeCache.txt and run cmake .. again. It worked for me.

U can remove the line -gencode arch=compute_20,code=sm_20 and -gencode arch=compute_20,code=sm_21 in Makefile.config.

I just pushed a change to remove compute_20 from the nvcc flags.

Deleting "-gencode arch=compute_20,code=sm_20 " doesn't work if you're using cmake to compile, as Makefile.config is not used (it's only used if you compile using make). The solution is to edit caffe/Cuda.cmake. On line 9 simply delete 20 21(20) from the list of GPU architectures.