@Override
    public void simpleUpdate(float tpf) {
        //call kernel to test if it is still working
        if (!failed) {
            try {
                kernel.Run1NoEvent(clQueue, new Kernel.WorkSize(1), buffer, 1.0f);
            } catch (OpenCLException ex) {
                LOG.log(Level.SEVERE, "Kernel call not working anymore", ex);
                failed = true;
                statusText.setText("Failed");
            }
        }
    }
@param args the command line arguments
jme3-examples/src/main/java/jme3test/opencl/TestMultipleApplications.java