最近老是给新换的计算机,用vs2005+cuda3.1跑cuda程序(无论哪个程序都是如此)总是出现如下错误:
1>------ 已启动生成: 项目: clock, 配置: Debug Win32 ------
1>Compiling with CUDA Build Rule…
1>“C:\CUDA\bin\nvcc.exe” -m32 -ccbin “C:\Program Files\Microsoft Visual Studio 8\VC\bin” -D_DEBUG -D_WIN32 -I"C:\CUDA\include" -I"./" -I"…/…/common/inc" -I"…/…/…/shared/inc" -Xcompiler “/EHsc /W3 /nologo /Od /Zi /MTd " -maxrregcount=32 -gencode=arch=compute_10,code="sm_10,compute_10" -gencode=arch=compute_20,code="sm_20,compute_20" --compile -o “Debug\clock.cu.obj” “c:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\clock\clock.cu”
1>clock.cu
1>Catastrophic error: cannot open source file “C:/DOCUME~1/脪禄虏脻/LOCALS~1/Temp/tmpxft_00000770_00000000-8_clock.compute_20.cpp1.ii”
1>1 catastrophic error detected in the compilation of “C:/DOCUME~1/脪禄虏脻/LOCALS~1/Temp/tmpxft_00000770_00000000-8_clock.compute_20.cpp1.ii”.
1>Compilation terminated.
1>Project : error PRJ0019: 工具从"Compiling with CUDA Build Rule…”
1>生成日志保存在“file://c:\Documents and Settings\All Users\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\clock\Debug\BuildLog.htm”
1>clock - 1 个错误,0 个警告
========== 生成: 0 已成功, 1 已失败, 0 最新, 0 已跳过 ==========
不知道该如何下手,恳请各位牛人指教
可能是原因你的编译rule没有设置正确,你的源文件放的位置怎么会有中文的,你用英文的路径再试试
是不是开杀毒软件了?