Login  Register

Re: Multiple OpenCL contexts

Posted by Wade Walker on May 28, 2016; 2:14pm
URL: https://forum.jogamp.org/Multiple-OpenCL-contexts-tp4036753p4036755.html

I can't see anything in the code of CLContext that kills previous contexts when you create a new one (see https://github.com/WadeWalker/jocl/blob/master/src/com/jogamp/opencl/CLContext.java). If you call CLContext.create(), it just calls the CLContext constructor, which just initializes itself as far as I can see.

shaman, do you have a simple example of trying to create two contexts and failing? If you create a minimal test for only this problem, I can check it out.