Skip to content

Commit 6f0a412

Browse files
committed
Move ref_c out of context manager
1 parent 8b40463 commit 6f0a412

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tests/test_sycl_kernel_submit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
7676

7777
b_np = dpt.asnumpy(b)
7878
a_np = dpt.asnumpy(a)
79-
q.wait()
79+
8080
for r in (
8181
[
8282
n_elems,
@@ -88,7 +88,7 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
8888
timer = dpctl.SyclTimer()
8989
with timer(q):
9090
q.submit(axpyKernel, args, r).wait()
91-
ref_c = a_np * np.array(d, dtype=dtype) + b_np
91+
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
9494
c_np = dpt.asnumpy(c)

0 commit comments

Comments
 (0)