Package madgraph :: Package various :: Module cluster :: Class MultiCore
[hide private]
[frames] | no frames]

Class MultiCore

source code

object --+    
         |    
   Cluster --+
             |
            MultiCore

class for dealing with the submission in multiple node

Instance Methods [hide private]
 
__init__(self, *args, **opt)
Init the cluster
source code
 
start_demon(self) source code
 
worker(self) source code
 
submit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, required_output=[], nb_submit=0)
submit a job on multicore machine
source code
 
launch_and_wait(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, **opts)
launch one job and wait for it
source code
 
remove(self, error=None)
Ensure that all thread are killed
source code
 
wait(self, me_dir, update_status, update_first=None)
Waiting that all the jobs are done.
source code

Inherited from Cluster: check_termination, cluster_submit, control, control_one_job, get_jobs_identifier, metasubmit, modify_interface, submit2

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

Class Variables [hide private]
  job_id = '$'

Inherited from Cluster: identifier_length, name

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **opt)
(Constructor)

source code 

Init the cluster

Overrides: object.__init__

submit(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, required_output=[], nb_submit=0)

source code 

submit a job on multicore machine

Overrides: Cluster.submit

launch_and_wait(self, prog, argument=[], cwd=None, stdout=None, stderr=None, log=None, **opts)

source code 

launch one job and wait for it

Overrides: Cluster.launch_and_wait

remove(self, error=None)

source code 

Ensure that all thread are killed

Overrides: Cluster.remove

wait(self, me_dir, update_status, update_first=None)

source code 

Waiting that all the jobs are done. This function also control that the submission by packet are handle correctly (i.e. submit the function)

Overrides: Cluster.wait