예제 #1
0
 def _create_in_scope_from_string(self):
     comm_id = bytearray(b'pipes' * (COMM_ID_BYTES // 5 + 1))
     return GpuCommCliqueId(context=ctx, comm_id=comm_id)
예제 #2
0
 def test_create_from_previous(self):
     cid2 = GpuCommCliqueId(context=ctx,
                            comm_id=bytearray(b'y' * COMM_ID_BYTES))
     cid3 = GpuCommCliqueId(context=ctx, comm_id=cid2.comm_id)
     assert cid2.comm_id == cid3.comm_id
예제 #3
0
 def setUp(self):
     self.cid = GpuCommCliqueId(context=ctx)