Home
last modified time | relevance | path

Searched refs:maxProcs (Results 1 – 3 of 3) sorted by relevance

/oneTBB/test/common/
H A Dutils_concurrency_limit.h75 static int maxProcs = 0; variable
78 if (!maxProcs) { in get_max_procs()
87 maxProcs = nproc; in get_max_procs()
96 maxProcs = result; in get_max_procs()
98 maxProcs = sysconf(_SC_NPROCESSORS_ONLN); in get_max_procs()
101 return maxProcs; in get_max_procs()
128 maxProcs = get_max_procs(); in limit_number_of_threads()
129 if (maxProcs < max_threads) { in limit_number_of_threads()
131 return maxProcs; in limit_number_of_threads()
153 if ( mask_size < maxProcs ) { in limit_number_of_threads()
/oneTBB/test/tbb/
H A Dtest_hw_concurrency.cpp94 int maxProcs = utils::get_max_procs(); variable
96 if (maxProcs >= 2) {
97 int availableProcs = maxProcs / 2;
/oneTBB/src/tbb/
H A Dmisc_ex.cpp137 int maxProcs = sysconf(_SC_NPROCESSORS_ONLN); in initialize_hardware_concurrency_info() local
180 for ( int m = 0; availableProcs < maxProcs && m < numMasks; ++m ) { in initialize_hardware_concurrency_info()
181 … for ( std::size_t i = 0; (availableProcs < maxProcs) && (i < BasicMaskSize * CHAR_BIT); ++i ) { in initialize_hardware_concurrency_info()
190 availableProcs = (maxProcs == INT_MAX) ? sysconf(_SC_NPROCESSORS_ONLN) : maxProcs; in initialize_hardware_concurrency_info()