|
|
@ -6,10 +6,19 @@ list(APPEND CUDA_NVCC_FLAGS_RELEASE -O3) |
|
|
|
list(APPEND CUDA_NVCC_FLAGS_DEBUG -G) |
|
|
|
|
|
|
|
if(COMPUTE AND (COMPUTE GREATER 0)) |
|
|
|
list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_${COMPUTE},code=sm_${COMPUTE}) |
|
|
|
else(COMPUTE AND (COMPUTE GREATER 0)) |
|
|
|
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-gencode arch=compute_20,code=sm_20;-gencode arch=compute_30,code=sm_30;-gencode arch=compute_35,code=sm_35;-gencode arch=compute_50,code=sm_50;-gencode arch=compute_52,code=sm_52;-gencode arch=compute_61,code=sm_61) |
|
|
|
endif(COMPUTE AND (COMPUTE GREATER 0)) |
|
|
|
list(APPEND CUDA_NVCC_FLAGS "-gencode arch=compute_${COMPUTE},code=sm_${COMPUTE}") |
|
|
|
else() |
|
|
|
set( |
|
|
|
CUDA_NVCC_FLAGS |
|
|
|
${CUDA_NVCC_FLAGS} |
|
|
|
"-gencode arch=compute_30,code=sm_30" |
|
|
|
"-gencode arch=compute_35,code=sm_35" |
|
|
|
"-gencode arch=compute_50,code=sm_50" |
|
|
|
"-gencode arch=compute_52,code=sm_52" |
|
|
|
"-gencode arch=compute_60,code=sm_60" |
|
|
|
"-gencode arch=compute_61,code=sm_61" |
|
|
|
) |
|
|
|
endif() |
|
|
|
|
|
|
|
file(GLOB sources "*.cpp" "*.cu") |
|
|
|
file(GLOB headers "*.h" "*.cuh") |
|
|
|