83 #ifndef _GLIBCXX_PARALLEL_SETTINGS_H 84 #define _GLIBCXX_PARALLEL_SETTINGS_H 1 95 #define _GLIBCXX_PARALLEL_CONDITION(__c) \ 96 (__gnu_parallel::_Settings::get().algorithm_strategy \ 97 != __gnu_parallel::force_sequential \ 98 && ((__gnu_parallel::__get_max_threads() > 1 && (__c)) \ 99 || __gnu_parallel::_Settings::get().algorithm_strategy \ 100 == __gnu_parallel::force_parallel)) 288 algorithm_strategy(heuristic),
289 sort_algorithm(MWMS),
290 partial_sum_algorithm(LINEAR),
291 multiway_merge_algorithm(LOSER_TREE),
292 find_algorithm(CONSTANT_SIZE_BLOCKS),
293 sort_splitting(EXACT),
294 merge_splitting(EXACT),
295 multiway_merge_splitting(EXACT),
331 workstealing_chunk_size(100),
_SequenceIndex sort_minimal_n
Minimal input size for parallel sorting.
unsigned int TLB_size
size of the Translation Lookaside Buffer (underestimation).
_SequenceIndex count_minimal_n
Minimal input size for count and count_if.
unsigned int multiway_merge_oversampling
Oversampling factor for multiway_merge.
_SequenceIndex transform_minimal_n
Minimal input size for parallel std::transform.
unsigned int adjacent_difference_minimal_n
Minimal input size for adjacent_difference.
_SequenceIndex find_sequential_search_size
Start with looking for this many elements sequentially, for find.
_SequenceIndex multiway_merge_minimal_n
Minimal input size for multiway_merge.
_AlgorithmStrategy
Strategies for run-time algorithm selection:
_MultiwayMergeAlgorithm
Merging algorithms:
class _Settings Run-time settings for the parallel mode including all tunable parameters.
unsigned long long L1_cache_size
size of the L1 cache in bytes (underestimation).
_SequenceIndex generate_minimal_n
Minimal input size for generate.
_SequenceIndex search_minimal_n
Minimal input size for search and search_n.
double partition_chunk_share
Chunk size for partition, relative to input size. If > 0.0, this value overrides partition_chunk_size...
_SequenceIndex find_initial_block_size
Initial block size for find.
_FindAlgorithm
Find algorithms:
_SequenceIndex partition_chunk_size
Chunk size for partition.
_SequenceIndex nth_element_minimal_n
Minimal input size for nth_element.
_SequenceIndex sort_qsb_base_case_maximal_n
Maximal subsequence __length to switch to unbalanced __base case. Applies to std::sort with dynamical...
uint64_t _SequenceIndex
Unsigned integer to index __elements. The total number of elements for each algorithm must fit into t...
_SequenceIndex max_element_minimal_n
Minimal input size for max_element.
GNU parallel code for public use.
_SequenceIndex find_maximum_block_size
Maximal block size for find.
_SequenceIndex merge_minimal_n
Minimal input size for merge.
_SequenceIndex min_element_minimal_n
Minimal input size for min_element.
_SequenceIndex set_symmetric_difference_minimal_n
Minimal input size for set_symmetric_difference.
unsigned int random_shuffle_minimal_n
Minimal input size for random_shuffle.
_SplittingAlgorithm
Sorting/merging algorithms: sampling, __exact.
int multiway_merge_minimal_k
Oversampling factor for multiway_merge.
_SequenceIndex qsb_steals
The number of stolen ranges in load-balanced quicksort.
_SequenceIndex set_union_minimal_n
Minimal input size for set_union.
_SequenceIndex partial_sort_minimal_n
Minimal input size for partial_sort.
_SequenceIndex set_difference_minimal_n
Minimal input size for set_difference.
float find_scale_factor
Block size scale-down factor with respect to current position.
unsigned long long L2_cache_size
size of the L2 cache in bytes (underestimation).
_SequenceIndex accumulate_minimal_n
Minimal input size for accumulate.
_PartialSumAlgorithm
Partial sum algorithms: recursive, linear.
unsigned int sort_mwms_oversampling
Oversampling factor for parallel std::sort (MWMS).
unsigned int merge_oversampling
Oversampling factor for merge.
unsigned int partial_sum_minimal_n
Minimal input size for partial_sum.
double find_increasing_factor
Block size increase factor for find.
_SequenceIndex partition_minimal_n
Minimal input size for partition.
_SequenceIndex replace_minimal_n
Minimal input size for replace and replace_if.
_SequenceIndex unique_copy_minimal_n
Minimal input size for unique_copy.
_SequenceIndex set_intersection_minimal_n
Minimal input size for set_intersection.
Basic types and typedefs. This file is a GNU parallel extension to the Standard C++ Library...
_SortAlgorithm
Sorting algorithms:
_SequenceIndex for_each_minimal_n
Minimal input size for for_each.
_SequenceIndex fill_minimal_n
Minimal input size for fill.
unsigned int cache_line_size
Overestimation of cache line size. Used to avoid false sharing, i.e. elements of different threads ar...
float partial_sum_dilation
Ratio for partial_sum. Assume "sum and write result" to be this factor slower than just "sum"...
unsigned int sort_qs_num_samples_preset
Such many samples to take to find a good pivot (quicksort).