Dynamic parallelism using CUDA and CMAKE Requirements: compute_35 or higher cards. I am using Pascal (compute_61) CMAKE MAGIC set(CUDA_SEPARABLE_COMPILATION TRUE) list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_61,code=sm_51;) target_link_libraries(yourCudaLib ${CUDA_cudadevrt_LIBRARY}