CLImage2D example program - Exception while executing kernel
Posted by suleman on Apr 26, 2011; 3:54pm
URL: https://forum.jogamp.org/CLImage2D-example-program-Exception-while-executing-kernel-tp2866141.html
Hi,
I am working with a image processing code (using Image2d class). According to the ImageTest example in jocl i have coded the program but i am facing below exception while executing the kernel.
Any idea? whats wrong?
$ java -mx3500m CLSimpleGammaCorrection
Exception in thread "main" com.jogamp.opencl.CLException$CLOutOfResourcesException: can not enqueue read-image CLImage2d [id: 249794088 width: 64 height: 64] with inputRowPitch: 0 origin: [0, 0] range: [64, 64]
cond.: null events: null [error: CL_OUT_OF_RESOURCES]
at com.jogamp.opencl.CLException.newException(CLException.java:78)
at com.jogamp.opencl.CLCommandQueue.putReadImage(CLCommandQueue.java:647)
at com.jogamp.opencl.CLCommandQueue.putReadImage(CLCommandQueue.java:600)
at CLSimpleGammaCorrection.gammaCorrection(CLSimpleGammaCorrection.java:159)
at CLSimpleGammaCorrection.main(CLSimpleGammaCorrection.java:134)