polaris.parallel.get_parallel_command
- polaris.parallel.get_parallel_command(args, cpus_per_task, ntasks, config)[source]
Run a subprocess with the given command-line arguments and resources
- Parameters:
args (list of str) – The command-line arguments to run in parallel
cpus_per_task (int) – the number of cores per task the process would ideally use. If fewer cores per node are available on the system, the substep will run on all available cores as long as this is not below
min_cpus_per_task
ntasks (int) – the number of tasks the process would ideally use. If too few cores are available on the system to accommodate the number of tasks and the number of cores per task, the substep will run on fewer tasks as long as as this is not below
min_tasks
config (configparser.ConfigParser) – Configuration options for the test case
- Returns:
command_line_args (list) – The full parallel command