Skip to content

Commit ad73d26

Browse files
Update comment in second implementation
1 parent 3ea45b5 commit ad73d26

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dpnp/backend/extensions/statistics/sliding_window1d.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,13 @@ void submit_sliding_window1d_small_kernel(const PaddedSpan<const T, SizeT> &a,
651651
auto y_start = glid;
652652
auto y_stop =
653653
std::min(y_start + WorkPI * results.size_x(), out.size());
654-
int32_t i = 0;
654+
uint32_t i = 0;
655655
for (uint32_t y = y_start; y < y_stop; y += results.size_x()) {
656656
out_ptr[y] = results[i++];
657657
}
658-
// due to excessive optimizations this code results in memory
658+
// while the code itself seems to be valid, inside correlate
659+
// kernel it results in memory corruption. Further investigation
660+
// is needed. SAT-7693
659661
// corruption results.store(&out_ptr[glid],
660662
// [out_end](auto &&ptr) { return ptr < out_end; });
661663
});

0 commit comments

Comments
 (0)