PDA

View Full Version : can we update the table paralleley



prince
12-10-2012, 10:26 PM
can we update the table parallely by different cores ,where table is in global memory
pls help
thanks

clint3112
12-11-2012, 06:30 AM
Are you talking about parallel access to different barts of a buffer?
That is only defined if you acces different buffer rects. Accessing the same parts of the table can lead to undefined behavior i think.

prince
12-11-2012, 07:35 AM
rects.?

clint3112
12-12-2012, 12:31 AM
clEnqueueReadBufferRect

Or you can use subbuffers


Concurrent reading from, writing to and copying between both a buffer object and its sub-buffer
object(s) is undefined. Concurrent reading from, writing to and copying between overlapping
sub-buffer objects created with the same buffer object is undefined. Only reading from both a
buffer object and its sub-buffer objects or reading from multiple overlapping sub-buffer objects
is defined