MPIFunction

class globus_compute_sdk.sdk.mpi_function.MPIFunction(cmd: str, stdout: str | None = None, stderr: str | None = None, walltime: float | None = None, snippet_lines=1000)

MPIFunction extends ShellFunction, as a thin wrapper that adds an MPI launcher prefix to the BashFunction command.

Initialize a ShellFunction

Parameters:
  • cmd (str) – formattable command line to execute. For e.g: “lammps -in {input_file}” where {input_file} is formatted with kwargs passed at call time.

  • stdout (str | None) – file path to which stdout should be captured

  • stderr (str | None) – file path to which stderr should be captures

  • walltime (float | None) – duration in seconds after which the command should be interrupted

  • snippet_lines (int) – Number of lines of stdout/err to capture, default=1000