Skip to content

Commit c678bde

Browse files
Update comment & small fixes
1 parent edf8ef8 commit c678bde

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dpnp/backend/extensions/statistics/sliding_window1d.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ class PaddedSpan : public Span<T, SizeT>
436436
using size_type = SizeT;
437437

438438
PaddedSpan(T *const data, const SizeT size, const SizeT pad)
439-
: Span<T>(data, size), pad_(pad)
439+
: Span<T, SizeT>(data, size), pad_(pad)
440440
{
441441
}
442442

@@ -579,11 +579,13 @@ void submit_sliding_window1d(const PaddedSpan<const T, SizeT> &a,
579579
auto y_start = glid;
580580
auto y_stop =
581581
std::min(y_start + WorkPI * results.size_x(), out.size());
582-
int32_t i = 0;
582+
uint32_t i = 0;
583583
for (uint32_t y = y_start; y < y_stop; y += results.size_x()) {
584584
out_ptr[y] = results[i++];
585585
}
586-
// due to excessive optimizations this code results in memory
586+
// while the code itself seems to be valid, inside correlate
587+
// kernel it results in memory corruption. Further investigation
588+
// is needed. SAT-7693
587589
// corruption results.store(&out_ptr[glid],
588590
// [out_end](auto &&ptr) { return ptr < out_end; });
589591
});

0 commit comments

Comments
 (0)