![]() |
The Gaudi Framework
v41r0 (bdbe7744)
|
Public Member Functions | |
| __init__ (self, ncpus="autodetect", ppservers=None) | |
| __del__ (self) | |
| process (self, task, items, timeout=90000) | |
Public Attributes | |
| ncpus = multiprocessing.cpu_count() | |
| ppservers = ppservers | |
| list | sessions = [SshSession(srv) for srv in ppservers] |
| server = pp.Server(ncpus=self.ncpus, ppservers=self.ppservers) | |
| str | mode = "cluster" |
| pool = multiprocessing.Pool(self.ncpus) | |
| dict | stats = {} |
Protected Member Functions | |
| _printStatistics (self) | |
| _mergeStatistics (self, stat) | |
Class to in charge of managing the tasks and distributing them to the workers. They can be local (using other cores) or remote using other nodes in the local cluster
Definition at line 140 of file Parallel.py.
| GaudiMP.Parallel.WorkManager.__init__ | ( | self, | |
| ncpus = "autodetect", | |||
| ppservers = None ) |
Definition at line 145 of file Parallel.py.
| GaudiMP.Parallel.WorkManager.__del__ | ( | self | ) |
Definition at line 162 of file Parallel.py.
|
protected |
Definition at line 213 of file Parallel.py.
|
protected |
Definition at line 202 of file Parallel.py.
| GaudiMP.Parallel.WorkManager.process | ( | self, | |
| task, | |||
| items, | |||
| timeout = 90000 ) |
Definition at line 168 of file Parallel.py.
| str GaudiMP.Parallel.WorkManager.mode = "cluster" |
Definition at line 156 of file Parallel.py.
| GaudiMP.Parallel.WorkManager.ncpus = multiprocessing.cpu_count() |
Definition at line 147 of file Parallel.py.
| GaudiMP.Parallel.WorkManager.pool = multiprocessing.Pool(self.ncpus) |
Definition at line 158 of file Parallel.py.
| GaudiMP.Parallel.WorkManager.ppservers = ppservers |
Definition at line 153 of file Parallel.py.
Definition at line 155 of file Parallel.py.
| list GaudiMP.Parallel.WorkManager.sessions = [SshSession(srv) for srv in ppservers] |
Definition at line 154 of file Parallel.py.
| dict GaudiMP.Parallel.WorkManager.stats = {} |
Definition at line 160 of file Parallel.py.