queue.buffer2Array(this.tempDataOutBuffer, this.tempDataArray);
queue.buffer2Array(this.gradientOutBuffer, this.gradients);
} catch (final CLException e) {
if (e.getMessage().equals("CL_OUT_OF_RESOURCES")) {
throw new OutOfOpenCLResources(e);
} else {
throw new OpenCLError(e);
}
} catch (final Exception e) {
throw new OpenCLError(e);