CUDA_SELECT_NVCC_ARCH_FLAGS emits spaces?
I tested on both CMake 3.16.3 and 3.15.3 with a toy CMakeLists.txt:
cmake_minimum_required(VERSION 3.8)
find_package(CUDA)
cuda_select_nvcc_arch_flags(ARCH_FLAGS Auto)
message("result is : " ${ARCH_FLAGS})`
The result is always something like:
-gencodearch=compute_61,code=sm_61-gencodearch=compute_70,code=sm_70-gencodearch=compute_75,code=sm_75
There is no spaces between -gencode and arch and nothing to seperate different archs. Am I missing something here? I'm quite new to CMake and any help would be appreciated.
Edited by Edward H