Flag to indicate number of parallel workers"
Definition at line 23 of file ConcurrencyFlags.py.
◆ _do_action()
def python.ConcurrencyFlags.NumProcs._do_action |
( |
|
self | ) |
|
|
private |
Definition at line 29 of file ConcurrencyFlags.py.
30 import multiprocessing
31 if (self.get_Value() == -1):
32 self.set_Value( multiprocessing.cpu_count() )
33 elif ( self.get_Value() < -1 ) :
34 from AthenaCommon.Logging
import log
35 log.fatal(
"nprocs cannot be < -1")
37 from AthenaCommon
import ExitCodes
38 sys.exit(ExitCodes.CONFIGURATION_ERROR)
39 elif (self.get_Value() > multiprocessing.cpu_count()):
40 from AthenaCommon.Logging
import log
41 log.warning(
"nprocs is larger than core count [%s]!",
42 multiprocessing.cpu_count())
◆ allowedTypes
list python.ConcurrencyFlags.NumProcs.allowedTypes = ['int'] |
|
static |
◆ statusOn
bool python.ConcurrencyFlags.NumProcs.statusOn = True |
|
static |
◆ StoredValue
int python.ConcurrencyFlags.NumProcs.StoredValue = 0 |
|
static |
The documentation for this class was generated from the following file: