The Gaudi Framework  master (b9786168)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages Concepts
GaudiMP.Parallel Namespace Reference

Classes

class  SshSession
 
class  Statistics
 
class  Task
 
class  WorkManager
 

Functions

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

Variables

list __all__ = ["Task", "WorkManager"]
 (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".
 
list excluded_varnames = ["HOSTNAME", "SSH_CLIENT", "SSH_CONNECTION", "DISPLAY"]
 

Function Documentation

◆ _ppfunction()

GaudiMP.Parallel._ppfunction ( args)
protected

Definition at line 35 of file Parallel.py.

35def _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()

GaudiMP.Parallel._prefunction ( f,
task,
item )
protected

Definition at line 31 of file Parallel.py.

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

Variable Documentation

◆ __all__

list GaudiMP.Parallel.__all__ = ["Task", "WorkManager"]
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

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

Definition at line 22 of file Parallel.py.