def test_mpiservice_distribution(self): '''test mpiservice distribution''' ms = hm.MpiService() ms.distribution( ) # TODO: Does nothing. If it's an interface, make abstract.
def test_mpiservice_check_comm(self): '''test mpiservice check comm''' ms = hm.MpiService() hm._check_comm(ms.comm, 'blah')
def test_make_comm_group(self): '''test mpiservice make check group''' ms = hm.MpiService() hm._make_comm_group(ms.comm, range(1))
def test_mpiservice_stop_service(self): '''test mpiservice stop service''' ms = hm.MpiService() ms.stop_service()
def test_mpiservice_check_group(self): '''test mpiservice check group''' ms = hm.MpiService() hm._check_group(ms.comm.Get_group(), 'some text')
def test_mpiservice_who_is_out_there(self): '''test mpiservice who is out there''' ms = hm.MpiService() others = hm._who_is_out_there(ms.comm, ms.rank)
def test_mpiservice_stop_comm(self): '''test mpiservice stop comm''' ms = hm.MpiService() hm._stop_comm(ms.comm)
def test_mpiservice_barrier(self): '''test mpiservice barrier''' ms = hm.MpiService() hm.barrier(ms.comm, 'Wibble')
def test_mpiservice_init(self): '''test mpiservice init''' ms = hm.MpiService(False) self.assertEqual(ms.size, 1) self.assertEqual(ms.rank, 0)
def test_mpiservice_run_dist(self): '''test mpiservice run dist''' ms = hm.MpiService() ms.distribution() ms.run_dist()
def test_slave_spread(self): '''test master spread''' ms = hm.MpiService() tasks = hm._slave_spread(ms.comm) self.assertEqual(tasks, None)
def test_master_spread(self): '''test master spread''' ms = hm.MpiService() hm._master_spread(ms.comm, None)