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