@@ -39,7 +39,6 @@ static double param_max_deviation;
39
39
static unsigned int param_min_samples;
40
40
static unsigned int param_force_samples;
41
41
static double param_time_limit;
42
- static int param_threads;
43
42
static bool param_write_sanity;
44
43
static bool param_verify_sanity;
45
44
#ifdef CV_COLLECT_IMPL_DATA
@@ -1042,7 +1041,7 @@ void TestBase::Init(const std::vector<std::string> & availableImpls,
1042
1041
#ifdef HAVE_IPP
1043
1042
test_ipp_check = !args.get <bool >(" perf_ipp_check" ) ? getenv (" OPENCV_IPP_CHECK" ) != NULL : true ;
1044
1043
#endif
1045
- param_threads = args.get <int >(" perf_threads" );
1044
+ testThreads = args.get <int >(" perf_threads" );
1046
1045
#ifdef CV_COLLECT_IMPL_DATA
1047
1046
param_collect_impl = args.get <bool >(" perf_collect_impl" );
1048
1047
#endif
@@ -1160,7 +1159,7 @@ void TestBase::Init(const std::vector<std::string> & availableImpls,
1160
1159
void TestBase::RecordRunParameters ()
1161
1160
{
1162
1161
::testing::Test::RecordProperty (" cv_implementation" , param_impl);
1163
- ::testing::Test::RecordProperty (" cv_num_threads" , param_threads );
1162
+ ::testing::Test::RecordProperty (" cv_num_threads" , testThreads );
1164
1163
1165
1164
#ifdef HAVE_CUDA
1166
1165
if (param_impl == " cuda" )
@@ -1851,8 +1850,8 @@ void TestBase::SetUp()
1851
1850
{
1852
1851
cv::theRNG ().state = param_seed; // this rng should generate same numbers for each run
1853
1852
1854
- if (param_threads >= 0 )
1855
- cv::setNumThreads (param_threads );
1853
+ if (testThreads >= 0 )
1854
+ cv::setNumThreads (testThreads );
1856
1855
else
1857
1856
cv::setNumThreads (-1 );
1858
1857
0 commit comments