Lines Matching refs:num_threads
66 touches( int num_threads ) : my_num_threads(num_threads) { in touches()
199 int test_parallel(int num_threads) { in test_parallel() argument
207 NativeParallelFor( num_threads, parallel_puts<T>(b) ); in test_parallel()
209 T *next_value = new T[num_threads]; in test_parallel()
210 for (int tid = 0; tid < num_threads; ++tid) next_value[tid] = T(0); in test_parallel()
212 for (int i = 0; i < num_threads * N; ++i ) { in test_parallel()
217 for (int tid = 0; tid < num_threads; ++tid) { in test_parallel()
226 NativeParallelFor( num_threads, parallel_puts<T>(b) ); in test_parallel()
229 touches< T > t( num_threads ); in test_parallel()
230 NativeParallelFor( num_threads, parallel_gets<T>(b, t) ); in test_parallel()
240 touches< T > t( num_threads ); in test_parallel()
241 NativeParallelFor( num_threads, parallel_put_get<T>(b, t) ); in test_parallel()
252 NativeParallelFor( num_threads, parallel_puts<T>(b) ); in test_parallel()
254 touches< T > t( num_threads ); in test_parallel()
255 NativeParallelFor( num_threads, parallel_gets<T>(b3, t) ); in test_parallel()
271 NativeParallelFor( num_threads, parallel_puts<T>(b) ); in test_parallel()
284 touches< T > t( num_threads ); in test_parallel()
285 NativeParallelFor( num_threads, parallel_gets<T>(b_copy, t) ); in test_parallel()