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);
>
> 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?
I'm just coming back to this. I just managed to get the cuda part
compiling against cuda 5.0, but I haven't had time to look at it
further. Give me a little time, I'll update you once I get it running
again.
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users