mache.parallel.system.ParallelSystem.get_parallel_command

ParallelSystem.get_parallel_command(args: List[str], ntasks: int, cpus_per_task: int = 0, gpus_per_task: int = 0) List[str][source]

Get the parallel execution command for the current system.

Parameters:
  • args (list of str) – The command-line arguments for the parallel execution.

  • ntasks (int) – The total number of tasks to run in parallel.

  • cpus_per_task (int, optional) – The number of CPUs to allocate per task.

  • gpus_per_task (int, optional) – The number of GPUs to allocate per task.

Returns:

command (list of str) – The complete command to execute the parallel job.