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);

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?

Kind regards,
Alexander Lang


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to