NEDAS.job_submitters.local module

class NEDAS.job_submitters.local.LocalJobSubmitter(**kwargs)[source]

Bases: JobSubmitter

The LocalJobSubmitter class assumes a generic GNU/Linux environment on a single PC. For ‘serial’ parallel mode: the command is directly executed in a subprocess. For ‘mpi’ or ‘openmp’ parallel modes: the command will be parsed accordingly to be run in an mpi environment.

property nproc_avail

Number of available processors on a host machine This should be redefined in subclasses to machine specific behavior

property execute_command: str

Vanila JobSubmitter will just run “mpirun -np nproc …”, and discard the ppn and offset settings

run(commands: str) None[source]

Runs ‘commands’ on the local computer. Use nproc processors starting from the offset+1 processor of the allocation