CSDN-CSDN社区-CUDA-CUDA编程

收藏 请教一个cuda编译的问题[问题点数:20,结帖人:ILoveJUV]

  • ILoveJUV
  • (ILoveJUV)
  • 等 级:
  • 结帖率:
楼主发表于:2009-06-20 15:40:55
编译一个cuda程序,到下面就停住报错了:
1>tmpxft_00001674_00000000-3_reconstruction.cudafe1.gpu
1>tmpxft_00001674_00000000-8_reconstruction.cudafe2.gpu

然后提示
1>D:\Program Files\Microsoft Visual Studio 8\VC\INCLUDE\xutility(3048): internal error: assertion failed: gen_expr: bad expr node kind (D:/Bld/rel/gpgpu/toolkit/r2.1/compiler/edg/EDG_3.9/src/cp_gen_be.c, line 9510)
1>1 catastrophic error detected in the compilation of "C:\DOCUME~1\zhengj\LOCALS~1\Temp/tmpxft_00001674_00000000-6_reconstruction.cpp1.ii".
1>Compilation aborted.
1>This application has requested the Runtime to terminate it in an unusual way.
1>Please contact the application's support team for more information.
1>C:\DOCUME~1\zhengj\LOCALS~1\Temp\tmpxft_00001674_00000000-3_reconstruction.cudafe1.cpp
1>另一个程序正在使用此文件,进程无法访问。

我用的是nod32杀毒软件,不是卡巴斯基。高手来看看 可能是什么问题?
回复次数:4
#1楼 得分:5回复于:2009-06-20 16:08:53
在编译参数中设置-keep试一下.
#2楼 得分:0回复于:2009-06-21 17:03:07
能稍微说的详细一些吗?不是对vs2005的编译选项还特别熟悉 怎么修改?谢谢!
#3楼 得分:10回复于:2009-06-21 17:17:09
现象来看是中间文件读取有问题,加-keep是使中间文件都生成在项目目录下,看看是否有问题.
方法是在项目->属性->cuda->command line中在下面的参数中加上-keep就行.

还有一种尝试是把你的临时工作目录改到类似c:\temp这种短名称目录中,再试试.
#4楼 得分:5回复于:2009-06-27 08:21:40
首先看看编译器或者开发环境什么的有没有染毒
关掉所有打开cpp的其他软件
关闭编译出来的正在运行的实例