HWRF
trunk@4391
|
Adds LSF+IBMPE support to produtil.run. More...
Adds LSF+IBMPE support to produtil.run.
This module is part of the produtil.mpi_impl package. It underlies the produtil.run.openmp, produtil.run.mpirun , and produtil.run.mpiserial functions, providing the implementation needed to run with LSF combined with the IBMPE MPI implementation. It may work with other MPI implementations connected to LSF, as long as they use mpirun.lsf to launch MPI programs.
Functions | |
def | runsync |
Runs the "sync" command as an exe(). More... | |
def | openmp (arg, threads) |
Adds OpenMP support to the provided object. More... | |
def | detect () |
Determines if LSF+IBMPE should be used to run MPI programs by looking for the mpirun.lsf program in $PATH. | |
def | can_run_mpi () |
Does this module represent an MPI implementation? Returns True. More... | |
def | make_bigexe (exe, kwargs) |
Returns an ImmutableRunner that will run the specified program. More... | |
def | mpirunner (arg, allranks=False, logger=None, kwargs) |
Turns a produtil.mpiprog.MPIRanksBase tree into a produtil.prog.Runner. More... | |
Variables | |
tuple | mpirun_lsf_path = produtil.fileop.find_exe('mpirun.lsf',raise_missing=False) |
Path to the mpirun.lsf program, or None if it isn't found. More... | |
tuple | module_logger = logging.getLogger('lsf_cray_intel') |
def produtil.mpi_impl.mpirun_lsf.can_run_mpi | ( | ) |
Does this module represent an MPI implementation? Returns True.
Definition at line 52 of file mpirun_lsf.py.
def produtil.mpi_impl.mpirun_lsf.make_bigexe | ( | exe, | |
kwargs | |||
) |
Returns an ImmutableRunner that will run the specified program.
exe | The executable to run on compute nodes. |
kwargs | Ignored. |
Definition at line 56 of file mpirun_lsf.py.
def produtil.mpi_impl.mpirun_lsf.mpirunner | ( | arg, | |
allranks = False , |
|||
logger = None , |
|||
kwargs | |||
) |
Turns a produtil.mpiprog.MPIRanksBase tree into a produtil.prog.Runner.
arg | a tree of produtil.mpiprog.MPIRanksBase objects |
allranks | if True, and only one rank is requested by arg, then all MPI ranks will be used |
logger | a logging.Logger for log messages |
kwargs | passed to produtil.mpi_impl.mpi_impl_base.CMDFGen when mpiserial is in use. |
Definition at line 63 of file mpirun_lsf.py.
def produtil.mpi_impl.mpirun_lsf.openmp | ( | arg, | |
threads | |||
) |
Adds OpenMP support to the provided object.
arg | An produtil.prog.Runner or produtil.mpiprog.MPIRanksBase object tree |
threads | the number of threads, or threads per rank, an integer |
Definition at line 33 of file mpirun_lsf.py.
def produtil.mpi_impl.mpirun_lsf.runsync | ( | logger = None | ) |
Runs the "sync" command as an exe().
Definition at line 25 of file mpirun_lsf.py.
produtil.mpi_impl.mpirun_lsf.mpirun_lsf_path = produtil.fileop.find_exe('mpirun.lsf',raise_missing=False) |
Path to the mpirun.lsf program, or None if it isn't found.
Definition at line 22 of file mpirun_lsf.py.