Skip to content

Conversation

@n0thingNoob
Copy link
Collaborator

The original kernel emits arguments via the YAML output. To simplify testing, I slightly modified it by moving the constant values into the kernel.

Copilot AI review requested due to automatic review settings January 26, 2026 02:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the axpy kernel test by moving constant values (N=16, A=3) from function parameters into the kernel itself. This change reduces the complexity of the test setup by eliminating the need to handle parameter values through YAML output files.

Changes:

  • Added a new bash script to sync e2e test outputs to the Zeonica_Testbench submodule
  • Modified the axpy kernel to use hardcoded constants instead of parameters, reducing the function signature from 4 parameters to 2
  • Updated the MLIR test expectations to reflect the new kernel signature and simplified compiled output (II reduced from 6 to 5)

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tools/sync_e2e_outputs_to_zeonica_testbench.sh New utility script to synchronize e2e test outputs (DFG, YAML, ASM files) to the Zeonica_Testbench submodule
test/benchmark/axpy/axpy_int.cpp Simplified kernel signature by moving N and A constants into the function body
test/e2e/axpy/axpy_kernel.mlir Updated test expectations to match new kernel signature with 2 parameters instead of 4, reflecting improved compilation metrics

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

for (int i = 0; i < n; ++i) {
y[i] = a * x[i] + y[i];
extern "C" void kernel_axpy_int(const int *x, int *y) {
constexpr int N = 16;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it a global variable outside the kernel_axpy_int()? would that also work?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have updated a new version of it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add comment to this file? Not sure what is this file for.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

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.

3 participants