From 40fc293eb1fb3c445dd04c6e134ca3370f4031f2 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 17 Oct 2020 11:17:23 +0100 Subject: [PATCH] Updated tests to work with async tests --- test/TestAsyncOperations.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/TestAsyncOperations.cpp b/test/TestAsyncOperations.cpp index 6c7de15e8..45027942f 100755 --- a/test/TestAsyncOperations.cpp +++ b/test/TestAsyncOperations.cpp @@ -109,8 +109,6 @@ TEST(TestAsyncOperations, TestManagerAsync) std::vector(shader.begin(), shader.end())); } - // TODO: Add function to print device details (or link) - // TODO: Seems to fail if await called twice for (uint32_t i = 0; i < numParallel; i++) { mgrAsync.evalOpAwait("async" + std::to_string(i)); } @@ -124,6 +122,9 @@ TEST(TestAsyncOperations, TestManagerAsync) EXPECT_EQ(inputsAsyncB[i]->data(), resultAsync); } + SPDLOG_ERROR("sync {}", durationSync); + SPDLOG_ERROR("async {}", durationAsync); + // The speedup should be at least 40% EXPECT_LT(durationAsync, durationSync * 0.6); }