From e2c787884da13e6ed01ed166d68ab8f3b45d9599 Mon Sep 17 00:00:00 2001 From: Tomoaki Teshima Date: Sun, 20 May 2018 19:38:02 +0900 Subject: [PATCH] fix the test failure of CUDA_Arithm/MeanStdDev --- modules/core/include/opencv2/core/private.cuda.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/include/opencv2/core/private.cuda.hpp b/modules/core/include/opencv2/core/private.cuda.hpp index 10948e5408..499c19bcb0 100644 --- a/modules/core/include/opencv2/core/private.cuda.hpp +++ b/modules/core/include/opencv2/core/private.cuda.hpp @@ -152,7 +152,7 @@ namespace cv { namespace cuda inline ~NppStreamHandler() { - nppSetStream(oldStream); + cudaStreamSynchronize(oldStream); } private: