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
fb7b4d2d
Commit
fb7b4d2d
authored
Oct 17, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Oct 17, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1636 from ilya-lavrenov:ocl_loop_times
parents
88cc054f
07aee1a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
main.cpp
modules/ocl/test/main.cpp
+20
-1
utility.hpp
modules/ocl/test/utility.hpp
+1
-1
No files found.
modules/ocl/test/main.cpp
View file @
fb7b4d2d
...
...
@@ -55,5 +55,24 @@
#include "opencv2/ocl/private/opencl_dumpinfo.hpp"
int
LOOP_TIMES
=
1
;
CV_TEST_MAIN
(
"."
,
dumpOpenCLDevice
())
void
readLoopTimes
(
int
argc
,
char
**
argv
)
{
const
char
*
const
command_line_keys
=
"{ |test_loop_times |1 |count of iterations per each test}"
"{h |help |false |print help info}"
;
cv
::
CommandLineParser
parser
(
argc
,
argv
,
command_line_keys
);
if
(
parser
.
get
<
bool
>
(
"help"
))
{
std
::
cout
<<
"
\n
Available options besides google test option:
\n
"
;
parser
.
printParams
();
}
LOOP_TIMES
=
parser
.
get
<
int
>
(
"test_loop_times"
);
CV_Assert
(
LOOP_TIMES
>
0
);
}
CV_TEST_MAIN
(
"."
,
dumpOpenCLDevice
(),
readLoopTimes
(
argc
,
argv
))
modules/ocl/test/utility.hpp
View file @
fb7b4d2d
...
...
@@ -42,7 +42,7 @@
#ifndef __OPENCV_TEST_UTILITY_HPP__
#define __OPENCV_TEST_UTILITY_HPP__
#define LOOP_TIMES 1
extern
int
LOOP_TIMES
;
#define MWIDTH 256
#define MHEIGHT 256
...
...
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