File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
dpctl/tensor/libtensor/include/kernels Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1233,7 +1233,8 @@ std::size_t cumsum_val_contig_impl(sycl::queue &q,
1233
1233
copy_e.wait ();
1234
1234
std::size_t return_val = static_cast <std::size_t >(*last_elem_host_usm);
1235
1235
1236
- // free USM host allocation
1236
+ // explicitly free USM host allocation, by envoking deleter of
1237
+ // the unique_ptr
1237
1238
host_usm_owner.reset (nullptr );
1238
1239
1239
1240
return return_val;
@@ -1347,7 +1348,8 @@ cumsum_val_strided_impl(sycl::queue &q,
1347
1348
copy_e.wait ();
1348
1349
std::size_t return_val = static_cast <std::size_t >(*last_elem_host_usm);
1349
1350
1350
- // free USM-host temporary
1351
+ // explicitly free USM-host temporary, by envoking deleter of
1352
+ // the unique_ptr
1351
1353
host_usm_owner.reset (nullptr );
1352
1354
1353
1355
return return_val;
You can’t perform that action at this time.
0 commit comments