Definition at line 567 of file pTools.py.
def GaudiMP.pTools.Syncer.__init__ |
( |
|
self, |
|
|
|
nWorkers, |
|
|
|
log, |
|
|
|
manyEvents = False , |
|
|
|
limit = None , |
|
|
|
step = None , |
|
|
|
firstEvent = None |
|
) |
| |
Definition at line 569 of file pTools.py.
569 limit=
None, step=
None, firstEvent=
None ) :
576 for i
in xrange(-2, nWorkers) :
577 self.
d[ i ] =
SyncMini( Event(), lastEvent=Event() )
def GaudiMP.pTools.Syncer.__init__ |
( |
|
self, |
|
|
|
nWorkers, |
|
|
|
log, |
|
|
|
manyEvents = False , |
|
|
|
limit = None , |
|
|
|
step = None , |
|
|
|
firstEvent = None |
|
) |
| |
Definition at line 569 of file pTools.py.
569 limit=
None, step=
None, firstEvent=
None ) :
576 for i
in xrange(-2, nWorkers) :
577 self.
d[ i ] =
SyncMini( Event(), lastEvent=Event() )
def GaudiMP.pTools.Syncer.checkAll |
( |
|
self | ) |
|
Definition at line 674 of file pTools.py.
677 currentStatus = [ mini.check()
for mini
in self.d.values() ]
678 return all( currentStatus )
def GaudiMP.pTools.Syncer.checkAll |
( |
|
self | ) |
|
Definition at line 674 of file pTools.py.
677 currentStatus = [ mini.check()
for mini
in self.d.values() ]
678 return all( currentStatus )
def GaudiMP.pTools.Syncer.checkLastEvents |
( |
|
self | ) |
|
Definition at line 680 of file pTools.py.
682 stat = [ sMini.checkLast()
for sMini
in self.d.values() ]
def GaudiMP.pTools.Syncer.checkLastEvents |
( |
|
self | ) |
|
Definition at line 680 of file pTools.py.
682 stat = [ sMini.checkLast()
for sMini
in self.d.values() ]
def GaudiMP.pTools.Syncer.processHang |
( |
|
self | ) |
|
Definition at line 668 of file pTools.py.
669 self.log.critical(
'Some proc is hanging during Event processing!')
671 self.log.critical(
"Proc/Stat : %i / %s"%(k,self.
d[k].
check()) )
def GaudiMP.pTools.Syncer.processHang |
( |
|
self | ) |
|
Definition at line 668 of file pTools.py.
669 self.log.critical(
'Some proc is hanging during Event processing!')
671 self.log.critical(
"Proc/Stat : %i / %s"%(k,self.
d[k].
check()) )
def GaudiMP.pTools.Syncer.syncAll |
( |
|
self, |
|
|
|
step = "Not specified" |
|
) |
| |
Definition at line 585 of file pTools.py.
594 for i
in xrange( 0, self.
limit, self.
step ) :
596 self.log.info(
'%s : All procs done @ %i s'%(step,i))
599 time.sleep(self.
step)
603 self.log.info(
"All processes : %s ok."%(step))
606 self.log.critical(
'Some process is hanging on : %s'%(step))
608 hangString=
"%s : Proc/Stat : %i/%s"%(step,k,self.
d[k].
check())
609 self.log.critical( hangString )
def GaudiMP.pTools.Syncer.syncAll |
( |
|
self, |
|
|
|
step = "Not specified" |
|
) |
| |
Definition at line 585 of file pTools.py.
594 for i
in xrange( 0, self.
limit, self.
step ) :
596 self.log.info(
'%s : All procs done @ %i s'%(step,i))
599 time.sleep(self.
step)
603 self.log.info(
"All processes : %s ok."%(step))
606 self.log.critical(
'Some process is hanging on : %s'%(step))
608 hangString=
"%s : Proc/Stat : %i/%s"%(step,k,self.
d[k].
check())
609 self.log.critical( hangString )
def GaudiMP.pTools.Syncer.syncAllRolling |
( |
|
self | ) |
|
Definition at line 612 of file pTools.py.
634 if sMini.check()
or sMini.checkLast():
635 if sMini.checkLast()
and sMini.check() :
638 alive = time.time()-begin
639 self.log.info(
"Audit : Node %i alive for %5.2f"\
646 wait = time.time()-sMini.getTime()
647 cond = wait > self.
limit
653 self.log.critical(
'Single event wait : %5.2f'%(wait))
659 self.log.info(
'TC met for event loop')
663 time.sleep(self.
step)
665 self.log.info(
"All processes Completed all Events ok")
def GaudiMP.pTools.Syncer.syncAllRolling |
( |
|
self | ) |
|
Definition at line 612 of file pTools.py.
634 if sMini.check()
or sMini.checkLast():
635 if sMini.checkLast()
and sMini.check() :
638 alive = time.time()-begin
639 self.log.info(
"Audit : Node %i alive for %5.2f"\
646 wait = time.time()-sMini.getTime()
647 cond = wait > self.
limit
653 self.log.critical(
'Single event wait : %5.2f'%(wait))
659 self.log.info(
'TC met for event loop')
663 time.sleep(self.
step)
665 self.log.info(
"All processes Completed all Events ok")
GaudiMP.pTools.Syncer.keys |
GaudiMP.pTools.Syncer.limit |
GaudiMP.pTools.Syncer.limitFirst |
GaudiMP.pTools.Syncer.log |
GaudiMP.pTools.Syncer.manyEvents |
GaudiMP.pTools.Syncer.nWorkers |
GaudiMP.pTools.Syncer.step |
The documentation for this class was generated from the following file:
- InstallArea/x86_64-slc6-gcc48-opt/python/GaudiMP/pTools.py