OpenCL 1.2 read/write image data -


i'm creating image2d object on host using flag cl_mem_read_write. image output of 1 kernel , want used input different kernel. i'm using cl_image_format = {cl_intensity, cl_float};

is possible in opencl 1.2? i've read says can't this, yet when try second kernel returns zeros, no error.

i've tried using clenqueuecopyimage copy output of first kernel different image2d (also created using cl_mem_read_write) , using input second kernel, not work.

i've verified output of first kernel correct.

thanks insight.

yes, output image 1 kernel can used input subsequent kernel.

as long image cl_mem_read_write can either read __read_only or __write_only in kernel in opencl 1.x.

opencl 2.0 further allows images __read_write special rules must followed (such barriers) correct results.

for more information on read/write image, please see https://software.intel.com/en-us/articles/using-opencl-20-read-write-images

don't try cheat (opencl - pass image2d_t twice both read , write kernel?)


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -