OpenGL buffer from OpenCL buffer?

Does anybody know a way to create an OpenGL buffer (GLuint) from an existing OpenCL mem buffer? I know you can go the other way using clCreateFromGLBuffer() but I’d like to keep my memory management in OpenCL if possible and have the OpenGL buffer be temporary. Hope that makes sense. Thanks!

Does anybody know a way to create an OpenGL buffer (GLuint) from an existing OpenCL mem buffer?

It is not possible yet. You will have to do it the other way around: create a cl_mem object out of an OpenGL buffer object.