Skip to content

[GH 28654] Scratch pad reuse #28677

Closed
yuslepukhin wants to merge 5 commits into
mainfrom
yuslepukhin/scratch_pad_reuse_gh28654
Closed

[GH 28654] Scratch pad reuse #28677
yuslepukhin wants to merge 5 commits into
mainfrom
yuslepukhin/scratch_pad_reuse_gh28654

Conversation

@yuslepukhin
Copy link
Copy Markdown
Member

This pull request focuses on improving the reliability and determinism of convolution kernel packing and its associated tests. The main changes ensure that memory used for kernel packing is always initialized to a zero state, preventing potential issues from uninitialized memory, and enhance test coverage to verify stability regardless of invocation order.

Reliability and determinism improvements:

  • In convolve_kleidiai.cpp, added a step to zero-initialize the lhs packed buffer before use, ensuring that any unused bytes do not contain stale heap data that could affect computation results.

Test coverage enhancements:

  • In test_conv2d.h, expanded the convolution pad-buffer growth test to execute both possible orders of small and large input channels, verifying that results remain stable regardless of invocation order.

@yuslepukhin yuslepukhin requested a review from Copilot May 26, 2026 19:33
@yuslepukhin yuslepukhin linked an issue May 26, 2026 that may be closed by this pull request
@yuslepukhin yuslepukhin review requested due to automatic review settings May 26, 2026 19:57
@yuslepukhin yuslepukhin deleted the yuslepukhin/scratch_pad_reuse_gh28654 branch May 26, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Memory Contamination due to Scratchpad Reuse

1 participant