lsst.ctrl.pool g6ea9deef35+14991ea556
Public Member Functions | Public Attributes | List of all members
lsst.ctrl.pool.parallel.SmpBatch Class Reference
Inheritance diagram for lsst.ctrl.pool.parallel.SmpBatch:
lsst.ctrl.pool.parallel.Batch

Public Member Functions

def __init__ (self, *args, **kwargs)
 Constructor. More...
 
def preamble (self, walltime=None)
 
def submitCommand (self, scriptName)
 Return command to submit script. More...
 

Public Attributes

 numCores
 
 numNodes
 
 numProcsPerNode
 
 mpiexec
 

Detailed Description

Not-really-Batch submission with multiple cores on the current node

The job is run immediately.

Definition at line 262 of file parallel.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.ctrl.pool.parallel.SmpBatch.__init__ (   self,
outputDir,
**  numNodes 
)

Constructor.

    @param outputDir: output directory, or None
    @param numNodes: number of nodes
    @param numProcsPerNode: number of processors per node
    @param numCores: number of cores (Slurm, SMP only)
    @param queue: name of queue, or None
    @param jobName: name of job, or None
    @param walltime: maximum wall clock time for job
    @param dryrun: Dry run (only print actions that would be taken)?
    @param doExec: exec the script instead of submitting to batch system?
    @param mpiexec: options for mpiexec
    @param submit: command-line options for batch submission (e.g., for qsub, sbatch)
    @param options: options to append to script header (e.g., #PBS or #SBATCH)
    @param verbose: produce verbose output?

Reimplemented from lsst.ctrl.pool.parallel.Batch.

Definition at line 268 of file parallel.py.

Member Function Documentation

◆ preamble()

def lsst.ctrl.pool.parallel.SmpBatch.preamble (   self,
  command = None 
)
Return preamble string for script to be submitted

Most batch systems allow you to embed submission options as comments here.

Reimplemented from lsst.ctrl.pool.parallel.Batch.

Definition at line 283 of file parallel.py.

◆ submitCommand()

def lsst.ctrl.pool.parallel.SmpBatch.submitCommand (   self,
  scriptName 
)

Return command to submit script.

    @param scriptName: name of script on filesystem

Reimplemented from lsst.ctrl.pool.parallel.Batch.

Definition at line 286 of file parallel.py.

Member Data Documentation

◆ mpiexec

lsst.ctrl.pool.parallel.SmpBatch.mpiexec

Definition at line 279 of file parallel.py.

◆ numCores

lsst.ctrl.pool.parallel.SmpBatch.numCores

Definition at line 270 of file parallel.py.

◆ numNodes

lsst.ctrl.pool.parallel.SmpBatch.numNodes

Definition at line 272 of file parallel.py.

◆ numProcsPerNode

lsst.ctrl.pool.parallel.SmpBatch.numProcsPerNode

Definition at line 274 of file parallel.py.


The documentation for this class was generated from the following file: