1>------ 已启动生成: 项目: CUDAWinApp2, 配置: Debug Win32 ------
1>Compiling…
1>nvcc warning : option ‘host-compilation’ has been deprecated and is ignored
1>sample.cu
1>c:/Documents and Settings/Administrator/桌面/新建文件夹/CUDAWinApp2/CUDAWinApp2//sample.cu(9) : fatal error C1083: 无法打开包括文件:“cutil.h”: No such file or directory
1>Project : error PRJ0019: 某个工具从以下位置返回了错误代码: “Compiling…”
1>项目 : warning PRJ0018 : 未找到下列环境变量:
1>$(NVSDKCUDA_ROOT)
1>生成日志保存在“ file://c:\Documents and Settings\Administrator\桌面\新建文件夹\CUDAWinApp2\CUDAWinApp2\Debug\BuildLog.htm”
1>CUDAWinApp2 - 2 个错误,0 个警告
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
似乎CUDA不支持文件路径包含中文字符。
你换换路径试试。