|
carputils
Doxygen code documentation for the python framework controlling openCARP
|
Generic class for batch platforms. More...
Public Member Functions | |
| def | add_launcher (cls, carp_cmd, nproc, nproc_job=0, ddt=False, cuda=False, *args, **kwargs) |
| def | add_python_launcher (cls, exe_cmd) |
| Add python launcher to exe command. More... | |
| def | determine_queue (cls, user_selected=None) |
| Determine the correct queue. More... | |
| def | header (cls, jobID, nproc, walltime, queue, cuda, email, config=None) |
| Generate the header for a run script on this platform. More... | |
| def | footer (cls) |
| Generate the footer for a run script on this platform. More... | |
Public Member Functions inherited from carputils.machines.general.Platform | |
| def | LAUNCHER (cls) |
| A little trickery to prevent cyclic import. More... | |
| def | add_launcher (cls, carp_cmd, nproc, nproc_job=0, gdb_procs=None, ddd_procs=None, ddt=False, valgrind=None, map=False, cuda=False, with_ft=None) |
| Add MPI launcher to openCARP command. More... | |
Static Public Attributes | |
| bool | BATCH = True |
| BATCH_EXT = None | |
| DEFAULT_QUEUE = None | |
| AVAILABLE_QUEUES = None | |
Static Public Attributes inherited from carputils.machines.general.Platform | |
| bool | BATCH = False |
| SUBMIT = None | |
Generic class for batch platforms.
| def carputils.machines.general.BatchPlatform.add_launcher | ( | cls, | |
| carp_cmd, | |||
| nproc, | |||
nproc_job = 0, |
|||
ddt = False, |
|||
cuda = False, |
|||
| * | args, | ||
| ** | kwargs | ||
| ) |
Reimplemented in carputils.machines.vsc5.VSC5, carputils.machines.vsc4.VSC4, carputils.machines.vsc3.VSC3, carputils.machines.mephisto.Mephisto, carputils.machines.medtronic.Medtronic, carputils.machines.medbionode.MedBioNode, carputils.machines.marconi_slurm.MarconiDebug, carputils.machines.marconi_slurm.MarconiSlurm, carputils.machines.marconi.Marconi, carputils.machines.archer2_e756.ARCHER2E756, carputils.machines.archer24c.ARCHER24C, and carputils.machines.archer2.ARCHER2.
| def carputils.machines.general.BatchPlatform.add_python_launcher | ( | cls, | |
| exe_cmd | |||
| ) |
Add python launcher to exe command.
Parameters ----------
exe_cmd list Python list of CARP command, with arguments
list List of command line options with launcher added
Reimplemented from carputils.machines.general.Platform.
Reimplemented in carputils.machines.vsc5.VSC5, carputils.machines.vsc4.VSC4, carputils.machines.medbionode.MedBioNode, carputils.machines.horeka.HoreKa, carputils.machines.bwunicluster.BwUniCluster, carputils.machines.archer2_e756.ARCHER2E756, carputils.machines.archer24c.ARCHER24C, and carputils.machines.archer2.ARCHER2.
| def carputils.machines.general.BatchPlatform.determine_queue | ( | cls, | |
user_selected = None |
|||
| ) |
Determine the correct queue.
| def carputils.machines.general.BatchPlatform.footer | ( | cls | ) |
Generate the footer for a run script on this platform.
Reimplemented in carputils.machines.wopr.Wopr.
| def carputils.machines.general.BatchPlatform.header | ( | cls, | |
| jobID, | |||
| nproc, | |||
| walltime, | |||
| queue, | |||
| cuda, | |||
| email, | |||
config = None |
|||
| ) |
Generate the header for a run script on this platform.
Parameters ----------
jobID str Identifier for this job in batch system nproc int Number of processes to use walltime str Walltime string of format HH:MM:SS queue str Specify a queue to submit to cuda bool True if running a CUDA executable email str Email address to notify when done
str The generated header
Reimplemented in carputils.machines.vsc5.VSC5, carputils.machines.vsc4.VSC4, carputils.machines.vsc3.VSC3, carputils.machines.medtronic.Medtronic, carputils.machines.medbionode.MedBioNode, carputils.machines.horeka.HoreKa, carputils.machines.bwunicluster.BwUniCluster, carputils.machines.archer2_e756.ARCHER2E756, carputils.machines.archer24c.ARCHER24C, and carputils.machines.archer2.ARCHER2.
|
static |
|
static |
|
static |
|
static |