HWRF
trunk@4391
|
Adds Intel MPI support to produtil.run. More...
Adds Intel MPI support to produtil.run.
This module is part of the produtil.mpi_impl package – see init.py for details. This implements the Intel MPI, but may work for other MPI implementations that use the "mpirun" command and OpenMP implementations that use the KMP_NUM_THREADS or OMP_NUM_THREADS environment variables.
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 () |
Detects whether Intel MPI is available. More... | |
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, kwargs) |
Turns a produtil.mpiprog.MPIRanksBase tree into a produtil.prog.Runner. More... | |
Variables | |
tuple | mpirun_path = produtil.fileop.find_exe('mpirun',raise_missing=False) |
Path to the mpirun program, or None if it could not be found. More... | |
tuple | module_logger = logging.getLogger('lsf_cray_intel') |
def produtil.mpi_impl.impi.can_run_mpi | ( | ) |
def produtil.mpi_impl.impi.detect | ( | ) |
def produtil.mpi_impl.impi.make_bigexe | ( | exe, | |
kwargs | |||
) |
def produtil.mpi_impl.impi.mpirunner | ( | arg, | |
allranks = False , |
|||
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 |
kwargs | passed to produtil.mpi_impl.mpi_impl_base.CMDFGen when mpiserial is in use. |
def produtil.mpi_impl.impi.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 |
def produtil.mpi_impl.impi.runsync | ( | logger = None | ) |
produtil.mpi_impl.impi.mpirun_path = produtil.fileop.find_exe('mpirun',raise_missing=False) |