Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ A number of adjustments were also made to improve performance of `dpctl` reducti
* Corrected uses of NumPy constructors with `tensor.usm_ndarray` inputs in test suite [gh-1968](https://github.com/IntelPython/dpctl/pull/1968)
* Fixed array API namespace inspection utilities showing `complex128` as a valid dtype on devices without double precision and `device` keywords not working with `dpctl.SyclQueue` or filter strings [gh-1979](https://github.com/IntelPython/dpctl/pull/1979)
* Fixed a bug in `test_sycl_device_interface.cpp` which would cause compilation to fail with Clang version 20.0 [gh-1989](https://github.com/IntelPython/dpctl/pull/1989)
* Fixed memory leaks in smart-pointer-managed USM temporaries in synchronizing kernel calls [gh-2002](https://github.com/IntelPython/dpctl/pull/2002)

### Maintenance

Expand Down
8 changes: 4 additions & 4 deletions dpctl/tensor/libtensor/source/accumulators.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ std::size_t py_mask_positions(const dpctl::tensor::usm_ndarray &mask,
sycl::event::wait(host_task_events);

// ensure deleter of smart pointer is invoked with GIL released
shape_strides_owner.release();
shape_strides_owner.reset(nullptr);
}
throw std::runtime_error("Unexpected error");
}
Expand All @@ -231,7 +231,7 @@ std::size_t py_mask_positions(const dpctl::tensor::usm_ndarray &mask,

sycl::event::wait(host_task_events);
// ensure deleter of smart pointer is invoked with GIL released
shape_strides_owner.release();
shape_strides_owner.reset(nullptr);
}

return total_set;
Expand Down Expand Up @@ -367,7 +367,7 @@ std::size_t py_cumsum_1d(const dpctl::tensor::usm_ndarray &src,
sycl::event::wait(host_task_events);

// ensure USM deleter is called with GIL released
shape_strides_owner.release();
shape_strides_owner.reset(nullptr);
}
throw std::runtime_error("Unexpected error");
}
Expand All @@ -387,7 +387,7 @@ std::size_t py_cumsum_1d(const dpctl::tensor::usm_ndarray &src,
sycl::event::wait(host_task_events);

// ensure USM deleter is called with GIL released
shape_strides_owner.release();
shape_strides_owner.reset(nullptr);
}

return total;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ void copy_numpy_ndarray_into_usm_ndarray(
dst_offset, depends, {copy_shape_ev});

// invoke USM deleter in smart pointer while GIL is held
shape_strides_owner.release();
shape_strides_owner.reset(nullptr);
}

return;
Expand Down
Loading