projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0492301
)
TS/CUDA: Show device ID in case of multiple devices
author
Hamdi Sahloul
<hamdisahloul@hotmail.com>
Sun, 7 Oct 2018 17:51:45 +0000
(
02:51
+0900)
committer
Hamdi Sahloul
<hamdisahloul@hotmail.com>
Sun, 7 Oct 2018 18:00:25 +0000
(
03:00
+0900)
modules/ts/src/cuda_test.cpp
patch
|
blob
|
history
diff --git
a/modules/ts/src/cuda_test.cpp
b/modules/ts/src/cuda_test.cpp
index
307e129
..
39658c4
100644
(file)
--- 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() << "]";
}