Skip to content

Commit 79dc399

Browse files
Fixed obvious bug
The special casing of copy-and-cast operation after stride simplification, the branch where memcpy is applicable did not set returned event to the intended variable, but rather to the local-scoped one. This change fixes that logic.
1 parent 76b2eb0 commit 79dc399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/libtensor/source/copy_and_cast_usm_to_usm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ copy_usm_ndarray_into_usm_ndarray(const dpctl::tensor::usm_ndarray &src,
197197
auto contig_fn =
198198
copy_and_cast_contig_dispatch_table[dst_type_id]
199199
[src_type_id];
200-
sycl::event copy_and_cast_1d_event =
200+
copy_and_cast_1d_event =
201201
contig_fn(exec_q, src_nelems, src_data, dst_data, depends);
202202
}
203203
else {

0 commit comments

Comments
 (0)