Пример #1
0
    def __init__(self):
        LoggerMixin.__init__(self, 'man')
        set_excepthook(self.logger, True)

        self._targets = {}
        self._args = {}
        self._kwargs = {}
        self._intercomm = MPI.COMM_NULL

        self._rank = 0
Пример #2
0
    def __init__(self, *args, **kwargs):        
        LoggerMixin.__init__(self, 'prc %s' % MPI.COMM_WORLD.Get_rank())
        set_excepthook(self.logger, True)

        self._args = args
        self._kwargs = kwargs