Skip to content

Commit a727866

Browse files
get_minmax_offsets should always return data relative to data ptr
This means that it should not be making call to UsmNDArray_GetOffset. This restores correctness to checks for array region overlapping.
1 parent b45e174 commit a727866

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,6 @@ class usm_ndarray : public py::object
943943
}
944944
}
945945
else {
946-
offset_min = api.UsmNDArray_GetOffset_(raw_ar);
947-
offset_max = offset_min;
948946
for (int i = 0; i < nd; ++i) {
949947
py::ssize_t delta = strides[i] * (shape[i] - 1);
950948
if (strides[i] > 0) {

0 commit comments

Comments
 (0)