Home
last modified time | relevance | path

Searched refs:__num_threads (Results 1 – 25 of 34) sorted by relevance

12

/dragonfly/contrib/gcc-4.7/libstdc++-v3/include/parallel/
H A Dtags.h59 { _M_num_threads = __num_threads; } in parallel_tag()
74 { _M_num_threads = __num_threads; } in set_num_threads()
83 : parallel_tag(__num_threads) { } in default_parallel_tag()
112 exact_tag(_ThreadIndex __num_threads) in exact_tag()
113 : parallel_tag(__num_threads) { } in exact_tag()
122 : parallel_tag(__num_threads) { } in sampling_tag()
132 : parallel_tag(__num_threads) { } in multiway_mergesort_tag()
141 : parallel_tag(__num_threads) { } in multiway_mergesort_exact_tag()
150 : parallel_tag(__num_threads) { } in multiway_mergesort_sampling_tag()
159 : parallel_tag(__num_threads) { } in quicksort_tag()
[all …]
H A Dquicksort.h56 __num_samples, _ThreadIndex __num_threads) in __parallel_sort_qs_divide() argument
83 __pred, __num_threads); in __parallel_sort_qs_divide()
103 _ThreadIndex __num_threads) in __parallel_sort_qs_conquer() argument
109 if (__num_threads <= 1) in __parallel_sort_qs_conquer()
122 if ((__num_threads % 2) == 1) in __parallel_sort_qs_conquer()
123 __num_threads_left = __num_threads / 2 + 1; in __parallel_sort_qs_conquer()
125 __num_threads_left = __num_threads / 2; in __parallel_sort_qs_conquer()
140 __comp, __num_threads - __num_threads_left); in __parallel_sort_qs_conquer()
156 _ThreadIndex __num_threads) in __parallel_sort_qs() argument
167 if (__num_threads > __n) in __parallel_sort_qs()
[all …]
H A Dpartial_sum.h101 _ThreadIndex __num_threads = in __parallel_partial_sum_linear() local
104 if (__num_threads < 2) in __parallel_partial_sum_linear()
117 # pragma omp parallel num_threads(__num_threads) in __parallel_partial_sum_linear()
121 __num_threads = omp_get_num_threads(); in __parallel_partial_sum_linear()
123 __borders = new _DifferenceType[__num_threads + 2]; in __parallel_partial_sum_linear()
126 __equally_split(__n, __num_threads + 1, __borders); in __parallel_partial_sum_linear()
131 __n / (1.0f + __s.partial_sum_dilation * __num_threads)); in __parallel_partial_sum_linear()
133 (__n - __first_part_length) / __num_threads; in __parallel_partial_sum_linear()
135 __n - __num_threads * __chunk_length; in __parallel_partial_sum_linear()
142 __borders[__num_threads + 1] = __n; in __parallel_partial_sum_linear()
[all …]
H A Dbalanced_quicksort.h101 _Compare __comp, _ThreadIndex __num_threads) in __qsb_divide() argument
103 _GLIBCXX_PARALLEL_ASSERT(__num_threads > 0); in __qsb_divide()
144 __num_threads); in __qsb_divide()
174 _ThreadIndex __iam, _ThreadIndex __num_threads, in __qsb_conquer() argument
183 if (__num_threads <= 1 || __n <= 1) in __qsb_conquer()
205 * __num_threads / __n)); in __qsb_conquer()
390 __victim = __rng(__num_threads); in __qsb_local_sort_with_helping()
431 _Compare __comp, _ThreadIndex __num_threads) in __parallel_sort_qsb() argument
448 if (__num_threads > __n) in __parallel_sort_qsb()
449 __num_threads = static_cast<_ThreadIndex>(__n); in __parallel_sort_qsb()
[all …]
H A Dequally_split.h48 __equally_split(_DifferenceType __n, _ThreadIndex __num_threads, in __equally_split() argument
51 _DifferenceType __chunk_length = __n / __num_threads; in __equally_split()
52 _DifferenceType __num_longer_chunks = __n % __num_threads; in __equally_split()
54 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __equally_split()
76 _ThreadIndex __num_threads, in __equally_split_point() argument
79 _DifferenceType __chunk_length = __n / __num_threads; in __equally_split_point()
80 _DifferenceType __num_longer_chunks = __n % __num_threads; in __equally_split_point()
H A Dunique_copy.h69 _ThreadIndex __num_threads = __get_max_threads(); in __parallel_unique_copy() local
71 # pragma omp parallel num_threads(__num_threads) in __parallel_unique_copy()
75 __num_threads = omp_get_num_threads(); in __parallel_unique_copy()
76 __borders = new _DifferenceType[__num_threads + 2]; in __parallel_unique_copy()
77 __equally_split(__size, __num_threads + 1, __borders); in __parallel_unique_copy()
78 __counter = new _DifferenceType[__num_threads + 1]; in __parallel_unique_copy()
132 for (_ThreadIndex __t = 0; __t < __num_threads; ++__t) in __parallel_unique_copy()
139 __begin = __borders[__num_threads]; in __parallel_unique_copy()
153 __counter[__num_threads] = __i; in __parallel_unique_copy()
171 for (_ThreadIndex __t = 0; __t < __num_threads + 1; __t++) in __parallel_unique_copy()
H A Dpar_loop.h78 _ThreadIndex __num_threads = __gnu_parallel::min<_DifferenceType> in __for_each_template_random_access_ed() local
81 # pragma omp parallel num_threads(__num_threads) in __for_each_template_random_access_ed()
85 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_ed()
87 (::operator new(__num_threads * sizeof(_Result))); in __for_each_template_random_access_ed()
88 __constructed = new bool[__num_threads]; in __for_each_template_random_access_ed()
97 __start = __equally_split_point(__length, __num_threads, __iam), in __for_each_template_random_access_ed()
98 __stop = __equally_split_point(__length, __num_threads, __iam + 1); in __for_each_template_random_access_ed()
119 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_ed()
H A Dmultiway_mergesort.h397 _ThreadIndex __num_threads)
411 if (__num_threads > __n)
412 __num_threads = static_cast<_ThreadIndex>(__n);
419 # pragma omp parallel num_threads(__num_threads)
425 __sd._M_num_threads = __num_threads;
428 __sd._M_temporary = new _ValueType*[__num_threads];
434 * __num_threads;
445 __sd._M_pieces[__s].resize(__num_threads);
448 _DifferenceType __chunk_length = __n / __num_threads;
449 _DifferenceType __split = __n % __num_threads;
[all …]
H A Drandom_shuffle.h268 _ThreadIndex __num_threads, in __parallel_random_shuffle_drs() argument
279 if (__num_threads > __n) in __parallel_random_shuffle_drs()
280 __num_threads = static_cast<_ThreadIndex>(__n); in __parallel_random_shuffle_drs()
330 if (__num_threads <= 1) in __parallel_random_shuffle_drs()
342 # pragma omp parallel num_threads(__num_threads) in __parallel_random_shuffle_drs()
344 _ThreadIndex __num_threads = omp_get_num_threads(); in __parallel_random_shuffle_drs() local
349 __sd._M_temporaries = new _ValueType*[__num_threads]; in __parallel_random_shuffle_drs()
364 _DifferenceType __chunk_length = __n / __num_threads, in __parallel_random_shuffle_drs()
365 __split = __n % __num_threads, in __parallel_random_shuffle_drs()
383 __pus[__i]._M_num_threads = __num_threads; in __parallel_random_shuffle_drs()
[all …]
H A Domp_loop.h77 _ThreadIndex __num_threads = __gnu_parallel::min<_DifferenceType> in __for_each_template_random_access_omp_loop() local
82 # pragma omp parallel num_threads(__num_threads) in __for_each_template_random_access_omp_loop()
86 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_omp_loop()
87 __thread_results = new _Result[__num_threads]; in __for_each_template_random_access_omp_loop()
89 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop()
101 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop()
H A Domp_loop_static.h77 _ThreadIndex __num_threads = std::min<_DifferenceType> in __for_each_template_random_access_omp_loop_static() local
82 # pragma omp parallel num_threads(__num_threads) in __for_each_template_random_access_omp_loop_static()
86 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_omp_loop_static()
87 __thread_results = new _Result[__num_threads]; in __for_each_template_random_access_omp_loop_static()
89 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop_static()
101 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop_static()
H A Dfind.h114 _ThreadIndex __num_threads = __get_max_threads(); in __find_template() local
115 # pragma omp parallel num_threads(__num_threads) in __find_template()
119 __num_threads = omp_get_num_threads(); in __find_template()
120 __borders = new _DifferenceType[__num_threads + 1]; in __find_template()
121 __equally_split(__length, __num_threads, __borders); in __find_template()
221 _ThreadIndex __num_threads = __get_max_threads(); in __find_template() local
222 # pragma omp parallel shared(__result) num_threads(__num_threads) in __find_template()
225 __num_threads = omp_get_num_threads(); in __find_template()
345 _ThreadIndex __num_threads = __get_max_threads(); in __find_template() local
349 __num_threads = omp_get_num_threads(); in __find_template()
[all …]
H A Dworkstealing.h135 _ThreadIndex __num_threads = __gnu_parallel::max<_ThreadIndex> in __for_each_template_random_access_workstealing() local
139 # pragma omp parallel shared(__busy) num_threads(__num_threads) in __for_each_template_random_access_workstealing()
143 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_workstealing()
146 __job = new _Job<_DifferenceType>[__num_threads * __stride]; in __for_each_template_random_access_workstealing()
171 _RandomNumber __rand_gen(__iam, __num_threads); in __for_each_template_random_access_workstealing()
181 (__iam * (__length / __num_threads)); in __for_each_template_random_access_workstealing()
183 __my_job._M_last = (__iam == (__num_threads - 1) in __for_each_template_random_access_workstealing()
185 : ((__iam + 1) * (__length / __num_threads) - 1)); in __for_each_template_random_access_workstealing()
/dragonfly/contrib/gcc-8.0/libstdc++-v3/include/parallel/
H A Dtags.h59 { _M_num_threads = __num_threads; } in parallel_tag()
74 { _M_num_threads = __num_threads; } in set_num_threads()
83 : parallel_tag(__num_threads) { } in default_parallel_tag()
112 exact_tag(_ThreadIndex __num_threads) in exact_tag()
113 : parallel_tag(__num_threads) { } in exact_tag()
122 : parallel_tag(__num_threads) { } in sampling_tag()
132 : parallel_tag(__num_threads) { } in multiway_mergesort_tag()
141 : parallel_tag(__num_threads) { } in multiway_mergesort_exact_tag()
150 : parallel_tag(__num_threads) { } in multiway_mergesort_sampling_tag()
159 : parallel_tag(__num_threads) { } in quicksort_tag()
[all …]
H A Dquicksort.h56 __num_samples, _ThreadIndex __num_threads) in __parallel_sort_qs_divide() argument
83 __pred, __num_threads); in __parallel_sort_qs_divide()
103 _ThreadIndex __num_threads) in __parallel_sort_qs_conquer() argument
109 if (__num_threads <= 1) in __parallel_sort_qs_conquer()
122 if ((__num_threads % 2) == 1) in __parallel_sort_qs_conquer()
123 __num_threads_left = __num_threads / 2 + 1; in __parallel_sort_qs_conquer()
125 __num_threads_left = __num_threads / 2; in __parallel_sort_qs_conquer()
140 __comp, __num_threads - __num_threads_left); in __parallel_sort_qs_conquer()
156 _ThreadIndex __num_threads) in __parallel_sort_qs() argument
167 if (__num_threads > __n) in __parallel_sort_qs()
[all …]
H A Dpartial_sum.h101 _ThreadIndex __num_threads = in __parallel_partial_sum_linear() local
104 if (__num_threads < 2) in __parallel_partial_sum_linear()
117 # pragma omp parallel num_threads(__num_threads) in __parallel_partial_sum_linear()
121 __num_threads = omp_get_num_threads(); in __parallel_partial_sum_linear()
123 __borders = new _DifferenceType[__num_threads + 2]; in __parallel_partial_sum_linear()
126 __equally_split(__n, __num_threads + 1, __borders); in __parallel_partial_sum_linear()
131 __n / (1.0f + __s.partial_sum_dilation * __num_threads)); in __parallel_partial_sum_linear()
133 (__n - __first_part_length) / __num_threads; in __parallel_partial_sum_linear()
135 __n - __num_threads * __chunk_length; in __parallel_partial_sum_linear()
142 __borders[__num_threads + 1] = __n; in __parallel_partial_sum_linear()
[all …]
H A Dbalanced_quicksort.h104 _Compare __comp, _ThreadIndex __num_threads) in __qsb_divide() argument
106 _GLIBCXX_PARALLEL_ASSERT(__num_threads > 0); in __qsb_divide()
147 __num_threads); in __qsb_divide()
177 _ThreadIndex __iam, _ThreadIndex __num_threads, in __qsb_conquer() argument
186 if (__num_threads <= 1 || __n <= 1) in __qsb_conquer()
208 * __num_threads / __n)); in __qsb_conquer()
393 __victim = __rng(__num_threads); in __qsb_local_sort_with_helping()
434 _Compare __comp, _ThreadIndex __num_threads) in __parallel_sort_qsb() argument
451 if (__num_threads > __n) in __parallel_sort_qsb()
452 __num_threads = static_cast<_ThreadIndex>(__n); in __parallel_sort_qsb()
[all …]
H A Dequally_split.h48 __equally_split(_DifferenceType __n, _ThreadIndex __num_threads, in __equally_split() argument
51 _DifferenceType __chunk_length = __n / __num_threads; in __equally_split()
52 _DifferenceType __num_longer_chunks = __n % __num_threads; in __equally_split()
54 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __equally_split()
76 _ThreadIndex __num_threads, in __equally_split_point() argument
79 _DifferenceType __chunk_length = __n / __num_threads; in __equally_split_point()
80 _DifferenceType __num_longer_chunks = __n % __num_threads; in __equally_split_point()
H A Dunique_copy.h69 _ThreadIndex __num_threads = __get_max_threads(); in __parallel_unique_copy() local
71 # pragma omp parallel num_threads(__num_threads) in __parallel_unique_copy()
75 __num_threads = omp_get_num_threads(); in __parallel_unique_copy()
76 __borders = new _DifferenceType[__num_threads + 2]; in __parallel_unique_copy()
77 __equally_split(__size, __num_threads + 1, __borders); in __parallel_unique_copy()
78 __counter = new _DifferenceType[__num_threads + 1]; in __parallel_unique_copy()
132 for (_ThreadIndex __t = 0; __t < __num_threads; ++__t) in __parallel_unique_copy()
139 __begin = __borders[__num_threads]; in __parallel_unique_copy()
153 __counter[__num_threads] = __i; in __parallel_unique_copy()
171 for (_ThreadIndex __t = 0; __t < __num_threads + 1; __t++) in __parallel_unique_copy()
H A Dpar_loop.h78 _ThreadIndex __num_threads = __gnu_parallel::min<_DifferenceType> in __for_each_template_random_access_ed() local
81 # pragma omp parallel num_threads(__num_threads) in __for_each_template_random_access_ed()
85 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_ed()
87 (::operator new(__num_threads * sizeof(_Result))); in __for_each_template_random_access_ed()
88 __constructed = new bool[__num_threads]; in __for_each_template_random_access_ed()
97 __start = __equally_split_point(__length, __num_threads, __iam), in __for_each_template_random_access_ed()
98 __stop = __equally_split_point(__length, __num_threads, __iam + 1); in __for_each_template_random_access_ed()
119 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_ed()
H A Dmultiway_mergesort.h397 _ThreadIndex __num_threads)
411 if (__num_threads > __n)
412 __num_threads = static_cast<_ThreadIndex>(__n);
419 # pragma omp parallel num_threads(__num_threads)
425 __sd._M_num_threads = __num_threads;
428 __sd._M_temporary = new _ValueType*[__num_threads];
434 * __num_threads;
445 __sd._M_pieces[__s].resize(__num_threads);
448 _DifferenceType __chunk_length = __n / __num_threads;
449 _DifferenceType __split = __n % __num_threads;
[all …]
H A Drandom_shuffle.h268 _ThreadIndex __num_threads, in __parallel_random_shuffle_drs() argument
279 if (__num_threads > __n) in __parallel_random_shuffle_drs()
280 __num_threads = static_cast<_ThreadIndex>(__n); in __parallel_random_shuffle_drs()
330 if (__num_threads <= 1) in __parallel_random_shuffle_drs()
342 # pragma omp parallel num_threads(__num_threads) in __parallel_random_shuffle_drs()
344 _ThreadIndex __num_threads = omp_get_num_threads(); in __parallel_random_shuffle_drs() local
349 __sd._M_temporaries = new _ValueType*[__num_threads]; in __parallel_random_shuffle_drs()
364 _DifferenceType __chunk_length = __n / __num_threads, in __parallel_random_shuffle_drs()
365 __split = __n % __num_threads, in __parallel_random_shuffle_drs()
383 __pus[__i]._M_num_threads = __num_threads; in __parallel_random_shuffle_drs()
[all …]
H A Domp_loop.h77 _ThreadIndex __num_threads = __gnu_parallel::min<_DifferenceType> in __for_each_template_random_access_omp_loop() local
82 # pragma omp parallel num_threads(__num_threads) in __for_each_template_random_access_omp_loop()
86 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_omp_loop()
87 __thread_results = new _Result[__num_threads]; in __for_each_template_random_access_omp_loop()
89 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop()
101 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop()
H A Domp_loop_static.h77 _ThreadIndex __num_threads = std::min<_DifferenceType> in __for_each_template_random_access_omp_loop_static() local
82 # pragma omp parallel num_threads(__num_threads) in __for_each_template_random_access_omp_loop_static()
86 __num_threads = omp_get_num_threads(); in __for_each_template_random_access_omp_loop_static()
87 __thread_results = new _Result[__num_threads]; in __for_each_template_random_access_omp_loop_static()
89 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop_static()
101 for (_ThreadIndex __i = 0; __i < __num_threads; ++__i) in __for_each_template_random_access_omp_loop_static()
H A Dfind.h114 _ThreadIndex __num_threads = __get_max_threads(); in __find_template() local
115 # pragma omp parallel num_threads(__num_threads) in __find_template()
119 __num_threads = omp_get_num_threads(); in __find_template()
120 __borders = new _DifferenceType[__num_threads + 1]; in __find_template()
121 __equally_split(__length, __num_threads, __borders); in __find_template()
221 _ThreadIndex __num_threads = __get_max_threads(); in __find_template() local
222 # pragma omp parallel shared(__result) num_threads(__num_threads) in __find_template()
225 __num_threads = omp_get_num_threads(); in __find_template()
345 _ThreadIndex __num_threads = __get_max_threads(); in __find_template() local
349 __num_threads = omp_get_num_threads(); in __find_template()
[all …]

12