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

Adds support for running serial programs when one is inside an aprun execution. More...

Detailed Description

Adds support for running serial programs when one is inside an aprun execution.

This module is part of the mpi_impl package – see produtil.mpi_impl for details. This implements execution of serial programs when one is inside an aprun execution.

Functions

def runsync
 Runs the "sync" command as an exe(). More...
 
def detect ()
 
def openmp (arg, threads)
 When more than one thread is requested, this raises OpenMPDisabled to indicate OpenMP is not allowed. 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.inside_aprun.can_run_mpi ( )

Returns False to indicate MPI is not supported.

Definition at line 50 of file inside_aprun.py.

def produtil.mpi_impl.inside_aprun.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 54 of file inside_aprun.py.

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

Raises an exception to indicate MPI is not supported.

Parameters
arg,kwargsIgnored.

Definition at line 45 of file inside_aprun.py.

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

When more than one thread is requested, this raises OpenMPDisabled to indicate OpenMP is not allowed.

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

Definition at line 32 of file inside_aprun.py.

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

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

Definition at line 16 of file inside_aprun.py.