Login  Register

Multiple OpenCL contexts

Posted by shaman on May 28, 2016; 7:22am
URL: https://forum.jogamp.org/Multiple-OpenCL-contexts-tp4036753.html

Hi,

I have a problem regarding the following pull request to jME3 (https://github.com/jMonkeyEngine/jmonkeyengine/pull/494).
I want to create multiple OpenCL contexts at the same time.
I have experienced, however, that when a second context is created, the previous one is automatically released. This invalidates all associated programs, buffers and so on, leading to an INVALID_CONTEXT, INVALID_MEM_OBJECT, ... being thrown.

What causes this problem? Is it intended (I do not hope so)? How can I work around it?