Skip to content

Commit

Permalink
Move ref_c out of context manager
Browse files Browse the repository at this point in the history
  • Loading branch information
ndgrigorian committed Jun 27, 2024
1 parent 8b40463 commit 6f0a412
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpctl/tests/test_sycl_kernel_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):

b_np = dpt.asnumpy(b)
a_np = dpt.asnumpy(a)
q.wait()

for r in (
[
n_elems,
Expand All @@ -88,7 +88,7 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
timer = dpctl.SyclTimer()
with timer(q):
q.submit(axpyKernel, args, r).wait()
ref_c = a_np * np.array(d, dtype=dtype) + b_np
ref_c = a_np * np.array(d, dtype=dtype) + b_np
host_dt, device_dt = timer.dt
assert type(host_dt) is float and type(device_dt) is float
c_np = dpt.asnumpy(c)
Expand Down

0 comments on commit 6f0a412

Please sign in to comment.