Beispiel #1
0
 def test_mpiservice_distribution(self):
     '''test mpiservice distribution'''
     ms = hm.MpiService()
     ms.distribution(
     )  # TODO:  Does nothing. If it's an interface, make abstract.
Beispiel #2
0
 def test_mpiservice_check_comm(self):
     '''test mpiservice check comm'''
     ms = hm.MpiService()
     hm._check_comm(ms.comm, 'blah')
Beispiel #3
0
 def test_make_comm_group(self):
     '''test mpiservice make check group'''
     ms = hm.MpiService()
     hm._make_comm_group(ms.comm, range(1))
Beispiel #4
0
 def test_mpiservice_stop_service(self):
     '''test mpiservice stop service'''
     ms = hm.MpiService()
     ms.stop_service()
Beispiel #5
0
 def test_mpiservice_check_group(self):
     '''test mpiservice check group'''
     ms = hm.MpiService()
     hm._check_group(ms.comm.Get_group(), 'some text')
Beispiel #6
0
 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)
Beispiel #7
0
 def test_mpiservice_stop_comm(self):
     '''test mpiservice stop comm'''
     ms = hm.MpiService()
     hm._stop_comm(ms.comm)
Beispiel #8
0
 def test_mpiservice_barrier(self):
     '''test mpiservice barrier'''
     ms = hm.MpiService()
     hm.barrier(ms.comm, 'Wibble')
Beispiel #9
0
 def test_mpiservice_init(self):
     '''test mpiservice init'''
     ms = hm.MpiService(False)
     self.assertEqual(ms.size, 1)
     self.assertEqual(ms.rank, 0)
Beispiel #10
0
 def test_mpiservice_run_dist(self):
     '''test mpiservice run dist'''
     ms = hm.MpiService()
     ms.distribution()
     ms.run_dist()
Beispiel #11
0
 def test_slave_spread(self):
     '''test master spread'''
     ms = hm.MpiService()
     tasks = hm._slave_spread(ms.comm)
     self.assertEqual(tasks, None)
Beispiel #12
0
 def test_master_spread(self):
     '''test master spread'''
     ms = hm.MpiService()
     hm._master_spread(ms.comm, None)