Lines Matching refs:num_threads
46 * @param num_threads Number of threads that are allowed to work on
57 num_samples, thread_index_t num_threads)
85 parallel_partition(begin, end, pred, num_threads);
96 * @param num_threads Number of threads that are allowed to work on
104 thread_index_t num_threads)
110 if (num_threads <= 1)
123 if ((num_threads % 2) == 1)
124 num_threads_left = num_threads / 2 + 1;
126 num_threads_left = num_threads / 2;
128 pivot_rank = n * num_threads_left / num_threads;
133 num_threads);
135 #pragma omp parallel sections num_threads(2)
142 comp, num_threads - num_threads_left);
152 * @param num_threads Number of threads that are allowed to work on
160 thread_index_t num_threads)
171 if (num_threads > n)
172 num_threads = static_cast<thread_index_t>(n);
174 parallel_sort_qs_conquer(begin, begin + n, comp, num_threads);