|
编译osgPPU的时候,有一个kernel.cu文件,
老是在kernel.cu的
extern "C" bool OSGPPU_MODULE_ENTRY(UnitInOutModule * parent)
{
g_ProcessingModule = new ProcessingModule(parent);
parent->setModule(g_ProcessingModule.get());
return true;
}
extern “C”那一行报错,请问下这个是cmake里面的设置问题造成的还是什么别的问题?
错误信息:1>D:/osg/osgPPU-0.4.0/osgPPU-0.4.0/src/example/cuda/kernel.cu(269): internal error: assertion failed at: "D:/Bld/rel/gpgpu/toolkit/r3.1/compiler/edg/EDG_4.0/src/lower_il.c", line 7363
1>1 catastrophic error detected in the compilation of "C:/Users/ADMINI~1/AppData/Local/Temp/tmpxft_0000047c_00000000-6_kernel.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>Project : error PRJ0019: 工具从"Building (Device) NVCC -cubin File: D:/osg/osgPPU-0.4.0/osgPPU-0.4.0/src/cuda/kernel.cu_cudakernel_generated.cpp.NVCC-cubin.txt
1>'"' 不是内部或外部命令,也不是可运行的程序。
会弹出一个cudafe。exe的执行错误。
cmake中CUDA部分的配置
cmake的CUDA的配置部分。 |
|