aboutsummaryrefslogtreecommitdiff
path: root/tests/benchmark/fixtures/FloorFixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmark/fixtures/FloorFixture.h')
-rw-r--r--tests/benchmark/fixtures/FloorFixture.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/benchmark/fixtures/FloorFixture.h b/tests/benchmark/fixtures/FloorFixture.h
index 8de87b886b..b6bb89642d 100644
--- a/tests/benchmark/fixtures/FloorFixture.h
+++ b/tests/benchmark/fixtures/FloorFixture.h
@@ -62,6 +62,12 @@ public:
floor_func.run();
}
+ void sync()
+ {
+ sync_if_necessary<TensorType>();
+ sync_tensor_if_necessary<TensorType>(dst);
+ }
+
void teardown()
{
src.allocator()->free();