Skip to content

Commit f2bd956

Browse files
committed
Triage CI failure in test_sycl_kernel_submit
1 parent f7f5ab9 commit f2bd956

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dpctl/tests/test_sycl_kernel_submit.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,13 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
9191
ref_c = a_np * np.array(d, dtype=dtype) + b_np
9292
host_dt, device_dt = timer.dt
9393
assert type(host_dt) is float and type(device_dt) is float
94-
assert np.allclose(dpt.asnumpy(c), ref_c), "Failed for {}".format(r)
94+
c_np = dpt.asnumpy(c)
95+
diff = c_np - ref_c
96+
assert np.allclose(
97+
dpt.asnumpy(c), ref_c
98+
), "Failed for {} with diffs between {} and {}".format(
99+
r, np.max(diff), np.min(diff)
100+
)
95101

96102
for gr, lr in (
97103
(

0 commit comments

Comments
 (0)