From 90e1e41f5a6218e081ba71a67617412ad778c1ac Mon Sep 17 00:00:00 2001 From: Namgoo Lee Date: Mon, 19 Mar 2018 09:30:06 +0900 Subject: [PATCH] test_buffer_pool: synchronize after async copy --- modules/cudaarithm/test/test_buffer_pool.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/cudaarithm/test/test_buffer_pool.cpp b/modules/cudaarithm/test/test_buffer_pool.cpp index 7ffb44b926..3c1fe2bcfd 100644 --- a/modules/cudaarithm/test/test_buffer_pool.cpp +++ b/modules/cudaarithm/test/test_buffer_pool.cpp @@ -93,6 +93,8 @@ CUDA_TEST_P(BufferPoolTest, FromNullStream) RunSimpleTest(Stream::Null(), dst_1, dst_2); + cudaSafeCall(cudaDeviceSynchronize()); + CheckSimpleTest(dst_1, dst_2); }