We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211889b commit 237f39bCopy full SHA for 237f39b
test/test_hip_functions.py
@@ -26,12 +26,10 @@ def test_ready_argument_list():
26
dev = kt_hip.HipFunctions(0)
27
gpu_args = dev.ready_argument_list(arguments)
28
29
- assert isinstance(gpu_args, ctypes.Structure)
30
-
31
- assert isinstance(gpu_args.field0, ctypes.POINTER(ctypes.c_float))
32
- assert isinstance(gpu_args.field1, ctypes.c_int32)
33
- assert isinstance(gpu_args.field2, ctypes.POINTER(ctypes.c_float))
34
- assert isinstance(gpu_args.field3, ctypes.c_bool)
+ assert isinstance(gpu_args[0], ctypes.c_void_p)
+ assert isinstance(gpu_args[1], ctypes.c_int32)
+ assert isinstance(gpu_args[2], ctypes.c_void_p)
+ assert isinstance(gpu_args[3], ctypes.c_bool)
35
36
@skip_if_no_pyhip
37
def test_compile():
0 commit comments