cuda host_config 错误:#endif 没有 #if

cuda host_config 错误:#endif 没有 #if

安装后CUDA-8.0在 ec2-gxl2 实例上,我尝试通过运行 NVIDIA_CUDA-8.0_Samples 来验证安装,并获得主机配置相关错误:

$ cd ~/NVIDIA_CUDA-8.0_Samples/1_Utilities/deviceQuery
$ make

我得到:

In file included from /usr/local/cuda-8.0/bin/..//include/cuda_runtime.h:78:0,
                 from deviceQuery.cpp:19:
/usr/local/cuda-8.0/bin/..//include/host_config.h:260:2: error: #endif without #if
 #endif /* !__HOST_CONFIG_H__ */
  ^
Makefile:250: recipe for target 'deviceQuery.o' failed
make: *** [deviceQuery.o] Error 1

这里有人遇到过这个问题吗?谢谢!

相关内容