Skip to content

One question related to provided example #45

@itzmeanjan

Description

@itzmeanjan

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 ?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions