cuda_device_functions.h:32:31: fatal error: cuda/include/cuda.h: 没有那个文件或目录

问题在复现工程https://github.com/google/hdrnet时遇到。

现象:

解决办法:

修改hdrnet文件夹下的Makefile文件:在在nvcc里面添加路径:-I /usr/local

原文地址:https://www.cnblogs.com/walker-lin/p/11076344.html