This problem may occur when running bash build_all.sh, and it will give some error information like:
nvcc fatal : Unsupported gpu architecture 'compute_75'
or
src/caffe/CMakeFiles/caffe.dir/build.make:34597: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_scale_layer.cu.o' failed make[2]: *** [src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_scale_layer.cu.o] Error 1
in the logs.
I have tried a lot of methods and finally solve this problem.
I'm Not sure what causes this problem, both CUDA versions and GPU architectures are possible factors.
The only thing I know is Caffe supports up to 'compute_60' or 'compute_61' architectures of GPU for a successful build, and nowadays GPU architecture version is much higher than it could use.
But in fact, it still could finish the build process under a higher GPU version by editing the Cmake.CUDA file.
This problem may occur when running
bash build_all.sh
, and it will give some error information like:nvcc fatal : Unsupported gpu architecture 'compute_75'
orsrc/caffe/CMakeFiles/caffe.dir/build.make:34597: recipe for target 'src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_scale_layer.cu.o' failed make[2]: *** [src/caffe/CMakeFiles/cuda_compile.dir/layers/cuda_compile_generated_scale_layer.cu.o] Error 1
in the logs.I have tried a lot of methods and finally solve this problem.
I'm Not sure what causes this problem, both CUDA versions and GPU architectures are possible factors.
The only thing I know is Caffe supports up to 'compute_60' or 'compute_61' architectures of GPU for a successful build, and nowadays GPU architecture version is much higher than it could use.
But in fact, it still could finish the build process under a higher GPU version by editing the Cmake.CUDA file.
Please refer to: https://blog.csdn.net/WILLIAMMMS/article/details/107346758 and https://blog.csdn.net/xunan003/article/details/90696412 for more detail
I hope this will be helpful to those who encounter the same problem.