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())