报错:
fatal error: cuda_runtime.h: 没有那个文件或目录
解决办法:
在工程的CMakeLists.txt中添加如下语句:
find_package(CUDA REQUIRED)
include_directories("${CUDA_INCLUDE_DIRS}")
参考:https://stackoverflow.com/questions/13167598/error-cuda-runtime-h-no-such-file-or-directory/43389168