gpu: only add synchronization after copies from private to global that need it
commitf63eb8d425a6600c2877271f2a030887973f69dd
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 22 Apr 2014 12:43:11 +0000 (22 14:43 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Wed, 15 Apr 2015 20:50:21 +0000 (15 22:50 +0200)
treefc1bb02e8a06fdc47ca69a8271bb819645efb5b5
parente534a221c1df74d3366b0fbaf1e43fe06686cea1
gpu: only add synchronization after copies from private to global that need it

If the data written back from private memory to global memory
is not needed within the same kernel invocation and is also not overwritten,
or if it is only needed inside the same iteration of the bands where
synchronization is inserted, then there is no need to insert synchronization
after that copy.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
gpu.c