Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (f31105fd)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GaudiMP.Parallel Namespace Reference

Classes

class  SshSession
 
class  Statistics
 
class  Task
 
class  WorkManager
 

Functions

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

Variables

 __all__
 (c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE". More...
 
 excluded_varnames
 

Function Documentation

◆ _ppfunction()

def GaudiMP.Parallel._ppfunction (   args)
private

Definition at line 35 of file Parallel.py.

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

◆ _prefunction()

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

Definition at line 31 of file Parallel.py.

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

Variable Documentation

◆ __all__

GaudiMP.Parallel.__all__
private

(c) Copyright 1998-2023 CERN for the benefit of the LHCb and ATLAS collaborations # # This software is distributed under the terms of the Apache version 2 licence, # copied verbatim in the file "LICENSE".

# # In applying this licence, CERN does not waive the privileges and immunities # granted to it by virtue of its status as an Intergovernmental Organization # or submit itself to any jurisdiction. #

File: GaudiMP/Parallel.py Author: Pere Mato (pere..nosp@m.mato.nosp@m.@cern.nosp@m..ch)

Definition at line 21 of file Parallel.py.

◆ excluded_varnames

GaudiMP.Parallel.excluded_varnames

Definition at line 22 of file Parallel.py.

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