polaris.parallel.run_command

polaris.parallel.run_command(args, cpus_per_task, ntasks, openmp_threads, config, logger)[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

  • openmp_threads (int) – the number of OpenMP threads to use

  • config (configparser.ConfigParser) – Configuration options for the test case

  • logger (logging.Logger) – A logger for output from the step