Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
98 Views

How to interoperate with OpenGL using OpenCL interop interface

Hi,

I am porting some cuda code and it uses cuda functions:

  • cuGraphicsMapResources
  • cuGraphicsResourceGetMappedPointer
  • cuGraphicsGLRegisterBuffer
  • cuGraphicsUnregisterResource and
  • cuGraphicsUnmapResources

As per my understanding of the code, these functions are allowing cuda code to interact with OpenGL buffers. I understand that there is no direct interoperability between OneAPI and OpenGL and it has to be done through OpenCL interop.

Can you please suggest which functions can I use instead of cuda functions mentioned above?

Regards,
Gagan

 

0 Kudos
2 Replies
Highlighted
Moderator
86 Views

Hi,

 

That's correct, there's no direct interoperability between oneAPI and OpenGL currently. You may refer to the tutorial on OpenCL and OpenGL interoperability in the link below:

 

https://software.intel.com/content/www/us/en/develop/articles/opencl-and-opengl-interoperability-tut...

 

DPCT subject matter experts will get in touch with you shortly regarding equivalent DPCPP functions.

 

Thanks,

Rahul

 

0 Kudos