aboutsummaryrefslogtreecommitdiff
path: root/examples/gc_absdiff.cpp
diff options
context:
space:
mode:
authorJoel Liang <joel.liang@arm.com>2017-12-27 13:16:00 +0800
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:42:33 +0000
commiteb8f71eecbc44e64cd7814f53b27b42c43dd660b (patch)
tree9a101eac3cd0e265c38511f94da24fda4f42e013 /examples/gc_absdiff.cpp
parentb59eb0b031e1dc73fa0a67ee08b468a135cec835 (diff)
downloadComputeLibrary-eb8f71eecbc44e64cd7814f53b27b42c43dd660b.tar.gz
APPBROWSER-230, APPBROWSER-300: Rename GCScheduler enqueue to dispatch, sync to memory_barrier
Also fix the synchronisation issues between different kernels. Change-Id: Ib59d83ae8d5cc8b0bdf13e6f4958edccdab91ca4 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114594 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'examples/gc_absdiff.cpp')
-rw-r--r--examples/gc_absdiff.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/gc_absdiff.cpp b/examples/gc_absdiff.cpp
index cd3e42989c..18043e3fca 100644
--- a/examples/gc_absdiff.cpp
+++ b/examples/gc_absdiff.cpp
@@ -90,14 +90,13 @@ void main_gc_absdiff(int argc, const char **argv)
// Execute the functions:
absdiff.run();
- // Make sure all the jobs are done executing:
- GCScheduler::get().sync();
-
// Save the result to file:
if(ppm1.is_open())
{
const std::string output_filename = std::string(argv[1]) + "_out.ppm";
- save_to_ppm(dst, output_filename); // save_to_ppm maps and unmaps the image to store as PPM
+ // save_to_ppm maps and unmaps the image to store as PPM
+ // The GCTensor::map call inside the save_to_ppm will block until all pending operations on that image have completed
+ save_to_ppm(dst, output_filename);
}
}