From e14e19774d14f9650e9e0ea96213edc0462684c8 Mon Sep 17 00:00:00 2001 From: jpekkila Date: Tue, 9 Jul 2019 19:03:45 +0300 Subject: [PATCH] Added a synchronization to benchmark.cc that is now required when calling acIntegrateStep --- src/standalone/benchmark.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/standalone/benchmark.cc b/src/standalone/benchmark.cc index 10ee0b4..907df4d 100644 --- a/src/standalone/benchmark.cc +++ b/src/standalone/benchmark.cc @@ -131,6 +131,7 @@ run_benchmark(void) const AcReal dt = FLT_EPSILON; // TODO NOTE: time to timestep not measured #if GEN_BENCHMARK_RK3 == 1 acIntegrateStep(2, dt); + acSynchronizeStream(STREAM_ALL); #else // GEN_BENCHMARK_FULL acIntegrate(dt); #endif