Hi, a little headway ;)
On Mon, 2012-12-10 at 14:07 +0800, Gerrit Voß wrote: > Hi, > > On Thu, 2012-12-06 at 19:43 +0100, Alexander Lang wrote: > > Hi, > > i am trying to get OpenSG 2.0 running with CUDA 5.0 and Windows 7. > > > > Compilation of the OSGContribCompute project worked fine (after i > > uncommented the line > > SET(${PROJECT_NAME}_DEP_TEST_INCDIR OSG_GLUT_INC_DIR) > > in the CMakeLists.Lib.OSGContribCompute.txt, otherwise the GLUT functions > > would not be found). > > > > The testSimpleCudaComputeOSG can be started but as soon as the CUDA > > execution branch is triggered, the application crashes at the call to > > 'cudaGLRegisterBufferObject' within the function > > 'updateGeoOSGCudaCallback' (Unhandled Access violation exception). > > > > The CUDA programming guide specifies that before any CUDA interop call, > > 'cudaGLSetGLDevice' has to be called. So i added > > > > cudaGLSetGLDevice(0); that one is also deprecated. > > after GLUT was initialized. I also replaced the function with > > 'cudaGraphicsGLRegisterBuffer' since 'cudaGLRegisterBufferObject' is > > deprecated, but to no effect. > > > > I set up a simple stand-alone CUDA application in Visual Studio 2010 that > > calls this function without problems. > > > > Any idea? Does anyone use CUDA and OpenSG? the problem right now seems to be that cuda can't register a resource once it had been mapped with OpenGL. If one starts with the cuda version or jumps over the mapped buffer variants (it does that for Windows right now) the cuda part works fine and no exception is thrown. Interestingly using Linux the OpenGL mapping the buffer does not make a difference. I'll look into it further. kind regards gerrit ------------------------------------------------------------------------------ LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users