compass.landice.util.calculate_decomp_core_pair
- compass.landice.util.calculate_decomp_core_pair(config, target_max_tasks, smallest_acceptable_max_tasks)[source]
Get a pair of decomposition task counts based on available cores.
- Parameters:
config (compass.config.CompassConfigParser) – Configuration options for the test case
target_max_tasks (int) – Preferred upper bound on the larger decomposition
smallest_acceptable_max_tasks (int) – Minimum required size of the larger decomposition
- Returns:
proc_list (list of int) – The pair of decomposition task counts, ordered as
[low_tasks, max_tasks]