BashSlurmLrms
Module¶Created on Feb 12, 2014
@author: jakeret
cpod.remote.BashSlurmLrms.
BashSlurmLrms
(name, architecture, max_cores, max_cores_per_job, max_memory_per_core, max_walltime, auth, frontend, transport, **extra_args)[source]¶Bases: gc3libs.backends.slurm.SlurmLrms
Subclass of the standard gc3pie SlurmLrms which ensures to load a bash shell on the remote system when submitting jobs. Also upload recursively the input directories. Necessary to run jobs on monch.cscs.ch
cpod_workflow
Module¶Created on Feb 17, 2014
author: jakeret
cpod.remote.cpod_workflow.
CPodScript
[source]¶Bases: gc3libs.cmdline.SessionBasedScript
A session based script for the CPOD simulation using gc3pie
description
= u'cpod_workflow'¶new_tasks
(extra_args)[source]¶Iterate over jobs that should be added to the current session. Each item yielded must have the form (jobname, cls, args, kwargs), where:
This method is called by the default process_args()
, passing
self.extra as the extra parameter.
The default implementation of this method scans the arguments on the command-line for files matching the glob pattern self.input_filename_pattern, and for each matching file returns a job name formed by the base name of the file (sans extension), the class given by self.application, and the full path to the input file as sole argument.
If self.instances_per_file and self.instances_per_job are set to a value other than 1, for each matching file N jobs are generated, where N is the quotient of self.instances_per_file by self.instances_per_job.
See also: process_args()
pre_run
()[source]¶Perform parsing of standard command-line options and call into parse_args() to do non-optional argument processing.
version
= u'1.1'¶cpod.remote.cpod_workflow.
CPodWorkflow
(cpodConfPath, deltaConfig, seed, **extra_args)[source]¶Bases: gc3libs.workflow.StagedTaskCollection
A stage based workflow ensuring to call the CPOD apps in correct order
Parameters: |
|
---|
remote_cpod
Module¶Created on Feb 12, 2014
author: jakeret
cpod.remote.remote_cpod.
RemoteGadget2App
(simManager, local_simulation_path, **extra_args)[source]¶Bases: gc3libs.Application
App implementation calling MUSIC and launching a mpirun for GADGET2
cpod.remote.remote_cpod.
RemoteRockstarApp
(simManager, local_simulation_path, **extra_args)[source]¶Bases: gc3libs.Application
App implementation calling ROCKSTAR
terminated
()[source]¶Called when the job state transitions to TERMINATED, i.e., the job has finished execution (with whatever exit status, see returncode) and the final output has been retrieved.
The location where the final output has been stored is available in attribute self.output_dir.
The default implementation does nothing, override in derived classes to implement additional behavior.
simulation_facade
Module¶Created on Feb 19, 2014
author: jakeret
cpod.remote.simulation_facade.
SimulationFacade
[source]¶Bases: object
A facade hiding the loading process of remotely stored CPOD simulations and launching the generation of new simulations on a cluster
load_simulation_by_config_file
(deltaConfigPath, minSimulations=1, maxSimulations=None)[source]¶Loads CPOD simulations which match the given delta configuration
Parameters: |
|
---|
load_simulation_by_config_parser
(deltaConfigParser, minSimulations=1, maxSimulations=None)[source]¶Loads CPOD simulations which match the given delta configuration parser
Parameters: |
|
---|