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

Adds support for LSF+aprun with the Intel OpenMP to produtil.run. More...

Detailed Description

Adds support for LSF+aprun with the Intel OpenMP to produtil.run.

This module is part of the mpi_impl package – see produtil.mpi_impl for details. This implements the bizarre combination of LSF, Cray aprun with Intel OpenMP.

Classes

class  Syncer
 Calls sync and aprun -B sync. More...
 

Functions

def runsync
 Runs the "sync" command as an exe(). More...
 
def openmp (arg, threads)
 Adds OpenMP support to the provided object. More...
 
def aprun_ln_sf
 
def detect ()
 Determines if Cray aprun should be used to run MPI programs by looking for the aprun 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)
 
def mpirunner2 (arg, allranks=False, logger=None, kwargs)
 Turns a produtil.mpiprog.MPIRanksBase tree into a produtil.prog.Runner. More...
 

Variables

tuple module_logger = logging.getLogger('lsf_cray_intel')
 
tuple aprun_path = produtil.fileop.find_exe('aprun',raise_missing=False)
 

Function Documentation

def produtil.mpi_impl.lsf_cray_intel.can_run_mpi ( )

Does this module represent an MPI implementation? Returns True.

Definition at line 88 of file lsf_cray_intel.py.

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

Returns an ImmutableRunner that will run the specified program.

Returns
an empty list
Note
This function does NOT search $PATH. That ensures the $PATH will be expanded on the compute node instead. Use produtil.fileop.find_exe() if you want to explicitly search the PATH before execution
Parameters
exeThe executable to run on compute nodes.
kwargsIgnored.

Definition at line 92 of file lsf_cray_intel.py.

def produtil.mpi_impl.lsf_cray_intel.mpirunner2 (   arg,
  allranks = False,
  logger = None,
  kwargs 
)

Turns a produtil.mpiprog.MPIRanksBase tree into a produtil.prog.Runner.

Parameters
arga tree of produtil.mpiprog.MPIRanksBase objects
allranksif True, and only one rank is requested by arg, then all MPI ranks will be used
loggera logging.Logger for log messages
kwargspassed to produtil.mpi_impl.mpi_impl_base.CMDFGen when mpiserial is in use.
Returns
a produtil.prog.Runner that will run the selected MPI program

Definition at line 116 of file lsf_cray_intel.py.

Referenced by produtil.mpi_impl.lsf_cray_intel.make_bigexe().

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

Adds OpenMP support to the provided object.

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

Definition at line 36 of file lsf_cray_intel.py.

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

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

Definition at line 31 of file lsf_cray_intel.py.