Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
f88be98e
Commit
f88be98e
authored
Oct 10, 2012
by
marina.kolpakova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print information message about target device for GPU module tests
parent
715a0032
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
utility.cpp
modules/gpu/perf/utility.cpp
+0
-2
utility.hpp
modules/gpu/perf/utility.hpp
+0
-2
ts_perf.cpp
modules/ts/src/ts_perf.cpp
+5
-0
No files found.
modules/gpu/perf/utility.cpp
View file @
f88be98e
...
...
@@ -4,8 +4,6 @@ using namespace std;
using
namespace
cv
;
using
namespace
cv
::
gpu
;
bool
runOnGpu
=
true
;
void
fillRandom
(
Mat
&
m
,
double
a
,
double
b
)
{
RNG
rng
(
123456789
);
...
...
modules/gpu/perf/utility.hpp
View file @
f88be98e
...
...
@@ -6,8 +6,6 @@
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/ts/ts_perf.hpp"
extern
bool
runOnGpu
;
void
fillRandom
(
cv
::
Mat
&
m
,
double
a
=
0.0
,
double
b
=
255.0
);
cv
::
Mat
readImage
(
const
std
::
string
&
fileName
,
int
flags
=
cv
::
IMREAD_COLOR
);
...
...
modules/ts/src/ts_perf.cpp
View file @
f88be98e
...
...
@@ -618,6 +618,11 @@ void TestBase::Init(int argc, const char* const argv[])
#ifdef HAVE_CUDA
param_run_cpu
=
args
.
has
(
"perf_run_cpu"
);
if
(
param_run_cpu
)
printf
(
"[----------]
\n
[ GPU INFO ]
\t
Run test suite on CPU.
\n
[----------]
\n
"
),
fflush
(
stdout
);
else
printf
(
"[----------]
\n
[ GPU INFO ]
\t
Run test suite on GPU.
\n
[----------]
\n
"
),
fflush
(
stdout
);
#endif
if
(
!
args
.
check
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment