Added a synchronization to benchmark.cc that is now required when calling acIntegrateStep

This commit is contained in:
jpekkila
2019-07-09 19:03:45 +03:00
parent 8cc9281045
commit e14e19774d

View File

@@ -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