Re: Multiple OpenCL contexts
Posted by Wade Walker on May 30, 2016; 6:00pm
URL: https://forum.jogamp.org/Multiple-OpenCL-contexts-tp4036753p4036761.html
I modified your test to create four windows, each creating one CLContext on my only HW device (an nvidia GTX 660). It worked without any problems -- four windows popped up, and I saw messages to the console indicating that the update methods were being called, with no exceptions or error messages.
Maybe this is some restriction of Intel OpenCL devices, that they can only handle one context per process? You also might try running this test on a different type of device, and make sure your driver is updated to the latest version. Another possibility is the GLCLContext -- maybe vanilla CLContexts don't have this problem on Intel?
For reference, I ran this with nvidia driver version 353.90 on Windows 10 64-bit, with Java 1.8.0_91.