include_directories(${CUDA_INCLUDE_DIRS})\r
link_directories(${CUDA_LIBRARIES})\r
\r
- set(CUDA_NVCC_FLAGS_ARCH "1.2 1.3 2.0" CACHE STRING "Add or remove compute copability" FORCE)\r
+ set(CUDA_NVCC_FLAGS_ARCH " 1.0 1.1 1.2 1.3 2.0 ")\r
+\r
+ set(CUDA_NVCC_FLAGS_ARCHITECTURE ${CUDA_NVCC_FLAGS_ARCH} CACHE STRING "Add or remove compute copability" FORCE)\r
\r
set(CUDA_NVCC_FLAGS_NUM "")\r
\r
\r
set (loop_var "")\r
foreach( loop_var IN LISTS CUDA_NVCC_FLAGS_NUM)\r
- set (CUDA_NVCC_FLAGS\r
- "${CUDA_NVCC_FLAGS} -gencode=arch=compute_${loop_var},code=\"sm_${loop_var},compute_${loop_var}\"")\r
+ set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} -gencode arch=compute_${loop_var},code=sm_${loop_var})\r
endforeach()\r
\r
- set (CUDA_NVCC_FLAGS_ARCH ${CUDA_NVCC_FLAGS_ARCH_STR} CACHE STRING "Add or remove compute copability" FORCE)\r
-\r
message(STATUS " CUDA_NVCC_FLAGS: ${CUDA_NVCC_FLAGS} ")\r
\r
\r