art: Formatting with autopep8
@@ -195,23 +195,27 @@ class TestMemoryPointerAsync(unittest.TestCase):
def test_copy_to_and_from_host_async(self):
a_gpu = memory.alloc(4)
a_cpu = ctypes.c_int(100)
- a_gpu.copy_from_async(ctypes.cast(ctypes.byref(a_cpu), ctypes.c_void_p), 4, stream=self.stream)
+ a_gpu.copy_from_async(ctypes.cast(ctypes.byref(
+ a_cpu), ctypes.c_void_p), 4, stream=self.stream)
b_cpu = ctypes.c_int()
a_gpu.copy_to_host_async(
- ctypes.cast(ctypes.byref(b_cpu), ctypes.c_void_p), 4, stream=self.stream)
+ ctypes.cast(ctypes.byref(b_cpu), ctypes.c_void_p),
+ 4, stream=self.stream)
assert b_cpu.value == a_cpu.value
def test_copy_from_device(self):
a_gpu = memory.alloc(4)
a_cpu = ctypes.c_int(100)
- a_gpu.copy_from_async(ctypes.cast(ctypes.byref(a_cpu), ctypes.c_void_p), 4, stream=self.stream)
+ a_gpu.copy_from_async(ctypes.cast(ctypes.byref(
+ a_cpu), ctypes.c_void_p), 4, stream=self.stream)
b_gpu = memory.alloc(4)
b_gpu.copy_from_async(a_gpu, 4, stream=self.stream)
b_cpu = ctypes.c_int()
b_gpu.copy_to_host_async(
- ctypes.cast(ctypes.byref(b_cpu), ctypes.c_void_p), 4, stream=self.stream)
+ ctypes.cast(ctypes.byref(b_cpu), ctypes.c_void_p),
+ 4, stream=self.stream)
assert b_cpu.value == a_cpu.value
def test_copy_to_and_from_host_async_using_raw_ptr(self):
@@ -241,6 +245,7 @@ class TestMemoryPointerAsync(unittest.TestCase):
# -----------------------------------------------------------------------------
# Memory pool
+
@testing.gpu
class TestSingleDeviceMemoryPool(unittest.TestCase):
