|
|
@ -55,5 +55,24 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include "opencv2/ocl/private/opencl_dumpinfo.hpp" |
|
|
|
#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 << "\nAvailable 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)) |
|
|
|