Skip to content

Commit c27596f

Browse files
Remove offsets passing for contig impl
1 parent 394727f commit c27596f

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

dpnp/backend/extensions/ufunc/elementwise_functions/isclose.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ sycl::event isclose_contig_scalar_call(sycl::queue &q,
143143
const bool equal_nan = py::cast<bool>(py_equal_nan);
144144

145145
return dpnp::kernels::isclose::isclose_contig_scalar_impl<T, scT>(
146-
q, nelems, rtol, atol, equal_nan, in1_p, 0, in2_p, 0, out_p, 0,
147-
depends);
146+
q, nelems, rtol, atol, equal_nan, in1_p, in2_p, out_p, depends);
148147
}
149148

150149
isclose_strided_scalar_fn_ptr_t

dpnp/backend/kernels/elementwise_functions/isclose.hpp

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -279,11 +279,8 @@ sycl::event
279279
const scT atol,
280280
const bool equal_nan,
281281
const char *a_cp,
282-
ssize_t a_offset,
283282
const char *b_cp,
284-
ssize_t b_offset,
285283
char *out_cp,
286-
ssize_t out_offset,
287284
const std::vector<sycl::event> &depends = {})
288285
{
289286
constexpr std::uint8_t elems_per_wi = n_vecs * vec_sz;
@@ -298,12 +295,11 @@ sycl::event
298295
const auto gws_range = sycl::range<1>(n_groups * lws);
299296
const auto lws_range = sycl::range<1>(lws);
300297

301-
// ? + offset
302-
const T *a_tp = reinterpret_cast<const T *>(a_cp) + a_offset;
303-
const T *b_tp = reinterpret_cast<const T *>(b_cp) + b_offset;
298+
const T *a_tp = reinterpret_cast<const T *>(a_cp);
299+
const T *b_tp = reinterpret_cast<const T *>(b_cp);
304300

305301
using resTy = bool;
306-
resTy *out_tp = reinterpret_cast<resTy *>(out_cp) + out_offset;
302+
resTy *out_tp = reinterpret_cast<resTy *>(out_cp);
307303

308304
sycl::event comp_ev = exec_q.submit([&](sycl::handler &cgh) {
309305
cgh.depends_on(depends);

0 commit comments

Comments
 (0)