def setUp(self):
self.space = cuda.get_max_workspace_size()
python类get_max_workspace_size()的实例源码
def test_size(self):
size = 1024
cuda.set_max_workspace_size(size)
self.assertEqual(size, cuda.get_max_workspace_size())