Skip to content

Commit

Permalink
Set ref_c prior to axpyKernel call
Browse files Browse the repository at this point in the history
  • Loading branch information
ndgrigorian committed Jun 28, 2024
1 parent 0df3db3 commit f91029e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dpctl/tests/test_sycl_kernel_submit.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):

b_np = dpt.asnumpy(b)
a_np = dpt.asnumpy(a)
print(b_np)
print(a_np)
ref_c = a_np * np.array(d, dtype=dtype) + b_np

for r in (
[
Expand All @@ -90,7 +89,6 @@ 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
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 f91029e

Please sign in to comment.