Mapping/copy/unmapping - some sync needed?

Discussion created by Raistmer on Mar 5, 2010
Latest reply on Mar 5, 2010 by genaganna
I do host buffer (pinned memory) unmapping, copy values from GPU memory to buffer, then map buffer again and use it in host code. This happens in loop.
Question is - should I use wait on events, clFinish() between commands or some other form of synching or these commands (clEnqueueUnmapMemObject,clEnqueueCopyBuffer,clEnqueueMapBuffer) or they will be executed in order and will wait each other completion just because they placed in appropriate order in queue (as one kernel call will wait before earlier kernel finishes) ?