If I have a buffer that I then map to an array followed by an unmap which I then use in a kernel...if I want to change the values in the buffer do I have to remap it and copy them all back in? Do I use clEnqueueWriteBuffer?
ie. Is mapping intended to be a one shot type thing? Since you have to unmap it before you can actually use it; it seems kinda pointless?