The Gaudi Framework  v36r1 (3e2fb5a8)
GaudiMP.Parallel Namespace Reference

Classes

class  SshSession
 
class  Statistics
 
class  Task
 
class  WorkManager
 

Functions

def _prefunction (f, task, item)
 
def _ppfunction (args)
 

Variables

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

Function Documentation

◆ _ppfunction()

def GaudiMP.Parallel._ppfunction (   args)
private

Definition at line 36 of file Parallel.py.

36 def _ppfunction(args):
37  # --- Unpack arguments
38  task, item = args
39  stat = Statistics()
40  # --- Initialize the remote side (at least once)
41  if not task.__class__._initializeDone:
42  for k, v in task.environ.items():
43  if k not in excluded_varnames:
44  os.environ[k] = v
45  task.initializeRemote()
46  task.__class__._initializeDone = True
47  # --- Reset the task output
48  task._resetOutput()
49  # --- Call processing
50  task.process(item)
51  # --- Collect statistics
52  stat.stop()
53  return (copy.deepcopy(task.output), stat)
54 
55 

◆ _prefunction()

def GaudiMP.Parallel._prefunction (   f,
  task,
  item 
)
private

Definition at line 32 of file Parallel.py.

32 def _prefunction(f, task, item):
33  return f((task, item))
34 
35 

Variable Documentation

◆ __all__

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

Definition at line 22 of file Parallel.py.

◆ excluded_varnames

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

Definition at line 23 of file Parallel.py.

GaudiMP.Parallel._ppfunction
def _ppfunction(args)
Definition: Parallel.py:36
GaudiMP.Parallel._prefunction
def _prefunction(f, task, item)
Definition: Parallel.py:32