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