Skip to content

Commit

Permalink
Merge pull request #1809 from IntelPython/contributions-to-strided-fu…
Browse files Browse the repository at this point in the history
…ll-like-pr

Contributions to strided full like pr
  • Loading branch information
oleksandr-pavlyk authored Aug 23, 2024
2 parents fbb162c + edf97c6 commit 2282c5b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions dpctl/tensor/_ctors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,9 +1472,10 @@ def full_like(
X = dpt.broadcast_to(X, sh)
res = _empty_like_orderK(x, dtype, usm_type, sycl_queue)
_manager = dpctl.utils.SequentialOrderManager[sycl_queue]
# populating new allocation, no dependent events
# order copy after tasks populating X
dep_evs = _manager.submitted_events
hev, copy_ev = ti._copy_usm_ndarray_into_usm_ndarray(
src=X, dst=res, sycl_queue=sycl_queue
src=X, dst=res, sycl_queue=sycl_queue, depends=dep_evs
)
_manager.add_event_pair(hev, copy_ev)
return res
Expand Down
2 changes: 1 addition & 1 deletion dpctl/tensor/libtensor/source/full_ctor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ usm_ndarray_full(const py::object &py_value,
sycl::queue &exec_q,
const std::vector<sycl::event> &depends)
{
// start, end should be coercible into data type of dst
// py_value should be coercible into data type of dst

py::ssize_t dst_nelems = dst.get_size();

Expand Down

0 comments on commit 2282c5b

Please sign in to comment.