Module DIGEST_functions :: Class jobLauncher
[hide private]
[frames] | no frames]

Class jobLauncher

source code

object --+
         |
        jobLauncher

Create class able to launch a list of jobs on SLURM or LSF on a Job Scheduler

Instance Methods [hide private]
 
__init__(self, queue, nbProcesseur, jobName, mode, option='\'select[defined(mem64)],span[hosts=1],rh5\'')
Initialize the jobLauncher class
source code
 
jobArrayLauncher(self, jobfile)
Launch a list of jobs on SLURM or LSF on a Job Scheduler
source code
 
jobOneLauncher(self, command)
Launch a single job on SLURM or LSF on a Job Scheduler
source code
 
mpiRun(self, command)
Launch a mpi job on SLURM or LSF on a Job Scheduler
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
string jobName
job name
string mode
LSF or SLURM
integer nbProcesseur
number of processor used for each jobs
string option
resource requirements (default:'select[defined(mem64)],span[hosts=1]')
string queue
queue name to execute jobs
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, queue, nbProcesseur, jobName, mode, option='\'select[defined(mem64)],span[hosts=1],rh5\'')
(Constructor)

source code 

Initialize the jobLauncher class

Parameters:
  • queue (string) - queue name to execute jobs
  • nbProcesseur (integer) - number of processor used for each jobs
  • jobName (string) - job name
  • mode (string) - LSF or SLURM
  • option (string) - resource requirements (default:'select[defined(mem64)],span[hosts=1]')
Overrides: object.__init__

jobArrayLauncher(self, jobfile)

source code 

Launch a list of jobs on SLURM or LSF on a Job Scheduler

Parameters:
  • jobfile (string) - file name containing one commande by line, one job by line will be launch

jobOneLauncher(self, command)

source code 

Launch a single job on SLURM or LSF on a Job Scheduler

Parameters:
  • command (string) - command line to be launched

mpiRun(self, command)

source code 

Launch a mpi job on SLURM or LSF on a Job Scheduler

Parameters:
  • command (string) - command line to be launched