TS/CUDA: Show device ID in case of multiple devices
authorHamdi Sahloul <hamdisahloul@hotmail.com>
Sun, 7 Oct 2018 17:51:45 +0000 (02:51 +0900)
committerHamdi Sahloul <hamdisahloul@hotmail.com>
Sun, 7 Oct 2018 18:00:25 +0000 (03:00 +0900)
modules/ts/src/cuda_test.cpp

index 307e129..39658c4 100644 (file)
@@ -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() << "]";
 }