We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f9a5bf commit bec95f9Copy full SHA for bec95f9
dpctl/tensor/_ctors.py
@@ -945,8 +945,11 @@ def zeros(
945
order=order,
946
buffer_ctor_kwargs={"queue": sycl_queue},
947
)
948
- # FIXME: replace with asynchronous call to ti
949
- res.usm_data.memset()
+ _manager = dpctl.utils.SequentialOrderManager[sycl_queue]
+ # populating new allocation, no dependent events
950
+ hev, zeros_ev = ti._zeros_usm_ndarray(res, sycl_queue)
951
+ _manager.add_event_pair(hev, zeros_ev)
952
+
953
return res
954
955
0 commit comments