All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
GaudiMP.Parallel Namespace Reference

Classes

class  SshSession
 
class  Statistics
 
class  Task
 
class  WorkManager
 

Functions

def _prefunction
 
def _ppfunction
 

Variables

list __all__ = [ 'Task','WorkManager' ]
 
list excluded_varnames = ['HOSTNAME', 'SSH_CLIENT', 'SSH_CONNECTION', 'DISPLAY']
 

Function Documentation

def GaudiMP.Parallel._ppfunction (   args)
private

Definition at line 20 of file Parallel.py.

20 
21 def _ppfunction( args ) :
22  #--- Unpack arguments
23  task, item = args
24  stat = Statistics()
25  #--- Initialize the remote side (at least once)
26  if not task.__class__._initializeDone :
27  for k,v in task.environ.items() :
28  if k not in excluded_varnames : os.environ[k] = v
29  task.initializeRemote()
30  task.__class__._initializeDone = True
31  #--- Reset the task output
32  task._resetOutput()
33  #--- Call processing
34  task.process(item)
35  #--- Collect statistics
36  stat.stop()
37  return (copy.deepcopy(task.output), stat)
def GaudiMP.Parallel._prefunction (   f,
  task,
  item 
)
private

Definition at line 18 of file Parallel.py.

18 
19 def _prefunction( f, task, item) :
return f((task,item))

Variable Documentation

list GaudiMP.Parallel.__all__ = [ 'Task','WorkManager' ]

Definition at line 12 of file Parallel.py.

list GaudiMP.Parallel.excluded_varnames = ['HOSTNAME', 'SSH_CLIENT', 'SSH_CONNECTION', 'DISPLAY']

Definition at line 13 of file Parallel.py.