Determining which gencode (compute_, arch_) values I need for nvcc - within CMake
问题 I'm using CMake as a build system for my code, which involves CUDA. I was thinking of automating the task of deciding which compute_XX and arch_XX I need to to pass to my nvcc in order to compile for the GPU(s) on my current machine. Is there a way to do this: With the NVIDIA GPU deployment kit? Without the NVIDIA GPU deployment kit? Does CMake's FindCUDA help you in determining the values for these switches? 回答1: My strategy has been to compile and run a bash script that probes the card and