Adds SLURM srun support to produtil.run.
More...
Adds SLURM srun support to produtil.run.
This module is part of the mpi_impl package – see produtil.mpi_impl for details. This translates produtil.run directives to SLURM srun commands.
def produtil.mpi_impl.srun.can_run_mpi |
( |
| ) |
|
Does this module represent an MPI implementation? Returns True.
Definition at line 46 of file srun.py.
def produtil.mpi_impl.srun.detect |
( |
| ) |
|
Detects whether the SLURM srun command is available by looking for it in the $PATH.
Definition at line 41 of file srun.py.
def produtil.mpi_impl.srun.make_bigexe |
( |
|
exe, |
|
|
|
kwargs |
|
) |
| |
Returns an ImmutableRunner that will run the specified program.
- Returns
- an empty list
- Parameters
-
exe | The executable to run on compute nodes. |
kwargs | Ignored. |
Definition at line 50 of file srun.py.
def produtil.mpi_impl.srun.mpirunner |
( |
|
arg, |
|
|
|
allranks = False , |
|
|
|
kwargs |
|
) |
| |
def produtil.mpi_impl.srun.mpirunner_impl |
( |
|
arg, |
|
|
|
allranks = False , |
|
|
|
kwargs |
|
) |
| |
def produtil.mpi_impl.srun.openmp |
( |
|
arg, |
|
|
|
threads |
|
) |
| |
Adds OpenMP support to the provided object.
- Parameters
-
Definition at line 25 of file srun.py.
def produtil.mpi_impl.srun.runsync |
( |
|
logger = None | ) |
|
Runs the "sync" command as an exe().
Definition at line 18 of file srun.py.