Skip to content

Commit 237f39b

Browse files
committed
modified test/test_hip_functions.py:test_ready_argument_list
1 parent 211889b commit 237f39b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/test_hip_functions.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,10 @@ def test_ready_argument_list():
2626
dev = kt_hip.HipFunctions(0)
2727
gpu_args = dev.ready_argument_list(arguments)
2828

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)
29+
assert isinstance(gpu_args[0], ctypes.c_void_p)
30+
assert isinstance(gpu_args[1], ctypes.c_int32)
31+
assert isinstance(gpu_args[2], ctypes.c_void_p)
32+
assert isinstance(gpu_args[3], ctypes.c_bool)
3533

3634
@skip_if_no_pyhip
3735
def test_compile():

0 commit comments

Comments
 (0)