public static void main(String[] args) {
        final AppSettings settings = new AppSettings(true);
        settings.setOpenCLSupport(true);
        settings.setVSync(true);
        settings.setOpenCLPlatformChooser(CustomPlatformChooser.class);
        settings.setRenderer(AppSettings.LWJGL_OPENGL2);
        for (int i=0; i<2; ++i) {
            new Thread() {
                @Override
                public void run() {
                    if (currentDeviceIndex == -1) {
                        return;
                    }
                    TestMultipleApplications app = new TestMultipleApplications();
                    app.setSettings(settings);
                    app.setShowSettings(false);
                    app.start();
                }
            }.start();
        }
    }
@param args the command line arguments
jme3-examples/src/main/java/jme3test/opencl/TestMultipleApplications.java