CUDA compilation issue with CMake

后端 未结 3 509
灰色年华
灰色年华 2021-02-05 11:22

I am having issues with compiling my CUDA code with CMake. I am using CUDA 7 and the version information from nvcc is as follows:

nvcc: NVIDIA (R) Cuda compiler          


        
3条回答
  •  梦毁少年i
    2021-02-05 11:52

    list(APPEND CUDA_NVCC_FLAGS "-std=c++11") is enough,SET(CUDA_PROPAGATE_HOST_FLAGS OFF) may be not necessary, and it cause me could not set breakpoint in .cu file

提交回复
热议问题