Hello,
I was going through example provided here and noticed buffer x, y are created with flag CL_MEM_WRITE_ONLY while z created with flag CL_MEM_READ_ONLY, although in kernel z is the one buffer which is being modified. I also checked how arguments to kernel are set here. Finally I noticed one copy back to host which just reads from buffer z.
I was hoping to see it as below
x, y -> CL_MEM_READ_ONLY
z -> CL_MEM_WRITE_ONLY
following OpenCL specification's first three rows of Table 12.
Am I missing something @kenba ?
Hello,
I was going through example provided here and noticed buffer
x,yare created with flagCL_MEM_WRITE_ONLYwhilezcreated with flagCL_MEM_READ_ONLY, although in kernelzis the one buffer which is being modified. I also checked how arguments to kernel are set here. Finally I noticed one copy back to host which just reads from bufferz.I was hoping to see it as below
following OpenCL specification's first three rows of Table 12.
Am I missing something @kenba ?