Does OpenCL allow concurrent writes to same memory address?
Posted
by Wonko
on Stack Overflow
See other posts from Stack Overflow
or by Wonko
Published on 2010-05-18T21:50:59Z
Indexed on
2010/05/21
10:40 UTC
Read the original article
Hit count: 172
Is two (or more) different threads allowed to write to the same memory location in global space in OpenCL? The write is always changing a uchar from 0 to 1 so the outcome should be predictable, but I'm getting erratic results in my program, so I'm wondering if the reason can be that some of the writes fail.
Could it help to declare the buffer write-only and copy it to a read-only buffer afterwards?
© Stack Overflow or respective owner