HWRF  trunk@4391
Functions | Variables
produtil.mpi_impl.no_mpi Namespace Reference

Stub funcitons to allow produtil.mpi_impl to run when MPI is unavailable. More...

Detailed Description

Stub funcitons to allow produtil.mpi_impl to run when MPI is unavailable.

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 when MPI is unavailable.

Functions

def runsync
 Runs the "sync" command as an exe(). More...
 
def openmp (arg, threads)
 Does nothing. More...
 
def mpirunner (arg, kwargs)
 Raises an exception to indicate MPI is not supported. More...
 
def can_run_mpi ()
 Returns False to indicate MPI is not supported. More...
 
def make_bigexe (exe, kwargs)
 Returns an ImmutableRunner that will run the specified program. More...
 

Variables

tuple module_logger = logging.getLogger('lsf_cray_intel')
 

Function Documentation

def produtil.mpi_impl.no_mpi.can_run_mpi ( )

Returns False to indicate MPI is not supported.

Definition at line 32 of file no_mpi.py.

def produtil.mpi_impl.no_mpi.make_bigexe (   exe,
  kwargs 
)

Returns an ImmutableRunner that will run the specified program.

Returns
an empty list
Parameters
exeThe executable to run on compute nodes.
kwargsIgnored.

Definition at line 35 of file no_mpi.py.

def produtil.mpi_impl.no_mpi.mpirunner (   arg,
  kwargs 
)

Raises an exception to indicate MPI is not supported.

Parameters
arg,kwargsIgnored.

Definition at line 28 of file no_mpi.py.

def produtil.mpi_impl.no_mpi.openmp (   arg,
  threads 
)

Does nothing.

This implementation does not support OpenMP.

Parameters
argAn produtil.prog.Runner or produtil.mpiprog.MPIRanksBase object tree
threadsthe number of threads, or threads per rank, an integer

Definition at line 21 of file no_mpi.py.

def produtil.mpi_impl.no_mpi.runsync (   logger = None)

Runs the "sync" command as an exe().

Definition at line 14 of file no_mpi.py.