From 2faa4cd9337b8325d9052be48fbc1a856969d607 Mon Sep 17 00:00:00 2001 From: Hamdi Sahloul Date: Mon, 8 Oct 2018 02:51:45 +0900 Subject: [PATCH] TS/CUDA: Show device ID in case of multiple devices --- modules/ts/src/cuda_test.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ts/src/cuda_test.cpp b/modules/ts/src/cuda_test.cpp index 307e1296a2..39658c403a 100644 --- a/modules/ts/src/cuda_test.cpp +++ b/modules/ts/src/cuda_test.cpp @@ -559,4 +559,6 @@ namespace cvtest void cv::cuda::PrintTo(const DeviceInfo& info, std::ostream* os) { (*os) << info.name(); + if (info.deviceID()) + (*os) << " [ID: " << info.deviceID() << "]"; }