Skip to content

Commit 2cb0f33

Browse files
committed
Continue triaging test_create_program_from_source failure
1 parent f2bd956 commit 2cb0f33

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

dpctl/tests/test_sycl_kernel_submit.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
@pytest.mark.parametrize(
3333
"ctype_str,dtype,ctypes_ctor",
3434
[
35-
("short", dpt.dtype("i2"), ctypes.c_short),
36-
("int", dpt.dtype("i4"), ctypes.c_int),
37-
("unsigned int", dpt.dtype("u4"), ctypes.c_uint),
38-
("long", dpt.dtype(np.longlong), ctypes.c_longlong),
39-
("unsigned long", dpt.dtype(np.ulonglong), ctypes.c_ulonglong),
35+
# ("short", dpt.dtype("i2"), ctypes.c_short),
36+
# ("int", dpt.dtype("i4"), ctypes.c_int),
37+
# ("unsigned int", dpt.dtype("u4"), ctypes.c_uint),
38+
# ("long", dpt.dtype(np.longlong), ctypes.c_longlong),
39+
# ("unsigned long", dpt.dtype(np.ulonglong), ctypes.c_ulonglong),
4040
("float", dpt.dtype("f4"), ctypes.c_float),
41-
("double", dpt.dtype("f8"), ctypes.c_double),
41+
# ("double", dpt.dtype("f8"), ctypes.c_double),
4242
],
4343
)
4444
def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
@@ -92,11 +92,12 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
9292
host_dt, device_dt = timer.dt
9393
assert type(host_dt) is float and type(device_dt) is float
9494
c_np = dpt.asnumpy(c)
95-
diff = c_np - ref_c
95+
print(c_np)
96+
print(ref_c)
9697
assert np.allclose(
9798
dpt.asnumpy(c), ref_c
98-
), "Failed for {} with diffs between {} and {}".format(
99-
r, np.max(diff), np.min(diff)
99+
), "Failed for {}, a_np was {}, b_np was {}".format(
100+
r, a_np, b_np
100101
)
101102

102103
for gr, lr in (

0 commit comments

Comments
 (0)