Lines Matching refs:num_threads
88 touches( int num_threads ) : my_num_threads(num_threads) { in touches()
252 int test_parallel(int num_threads) { in test_parallel() argument
261 utils::NativeParallelFor( num_threads, parallel_puts<T>(q) ); in test_parallel()
263 T *next_value = new T[num_threads]; in test_parallel()
264 for (int tid = 0; tid < num_threads; ++tid) next_value[tid] = T(0); in test_parallel()
266 for (int i = 0; i < num_threads * N; ++i ) { in test_parallel()
271 for (int tid = 0; tid < num_threads; ++tid) { in test_parallel()
281 utils::NativeParallelFor( num_threads, parallel_puts<T>(q) ); in test_parallel()
284 touches< T > t( num_threads ); in test_parallel()
285 utils::NativeParallelFor( num_threads, parallel_gets<T>(q, t) ); in test_parallel()
295 touches< T > t2( num_threads ); in test_parallel()
296 utils::NativeParallelFor( num_threads, parallel_put_get<T>(q, t2) ); in test_parallel()
307 utils::NativeParallelFor( num_threads, parallel_puts<T>(q) ); in test_parallel()
309 touches< T > t3( num_threads ); in test_parallel()
310 utils::NativeParallelFor( num_threads, parallel_gets<T>(q3, t3) ); in test_parallel()
325 utils::NativeParallelFor( num_threads, parallel_puts<T>(q) ); in test_parallel()
332 touches< T > t( num_threads ); in test_parallel()
333 utils::NativeParallelFor( num_threads, parallel_gets<T>(q_copy, t) ); in test_parallel()