Ejemplo n.º 1
0
 def test_parallel_sched(self):
     pt.set_parallel_schedule("dynamic", 4)
     self.assertSequenceEqual(pt.get_parallel_schedule(), ("dynamic", 4))
     pt.set_parallel_schedule("static", 1)
     self.assertSequenceEqual(pt.get_parallel_schedule(), ("static", 1))
Ejemplo n.º 2
0
 def setUp(self):
     self.original_schedule = pt.get_parallel_schedule()
     self.original_threads = pt.get_num_threads()