-
Notifications
You must be signed in to change notification settings - Fork 15
Testbench add zeonica_testbench submodule and some other tests #237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
cbec2c4
Add Zeonica_Testbench submodule and sync script
n0thingNoob 913fdc2
fix some small syntax error
n0thingNoob 5470c1a
update spmv e2e test
n0thingNoob 553ae60
update benchmark axpy and gemv
n0thingNoob 64e4268
update new kernel test
n0thingNoob b967b62
Update Zeonica_Testbench submodule and other bench tests
n0thingNoob ea13bd7
update README.md
n0thingNoob f24530e
fix some indentation issues
n0thingNoob df976eb
Merge remote-tracking branch 'origin/main' into testbench
n0thingNoob 557f2f6
add gemm test
n0thingNoob 54052bb
rm sync_e2e_outputs_to_zeonica_testbench.sh
n0thingNoob 2e5d992
update spmv
n0thingNoob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Zeonica_Testbench
added at
45e85e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| // Keep the function name matching "kernel" so llvm-extract --rfunc=".*kernel.*" can find it. | ||
| extern "C" void kernel_axpy_int(int n, int a, const int *x, int *y) { | ||
| for (int i = 0; i < n; ++i) { | ||
| y[i] = a * x[i] + y[i]; | ||
| } | ||
| } | ||
|
|
||
| // Provide a tiny main so clang emits a complete TU; tests extract only the kernel anyway. | ||
| int main() { | ||
| const int N = 16; | ||
| static int x[N]; | ||
| static int y[N]; | ||
| kernel_axpy_int(N, /*a=*/3, x, y); | ||
| return 0; | ||
| } | ||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| // A simple int GEMV: y = A*x + y. | ||
| // Use fixed small sizes to keep the generated IR stable-ish. | ||
| extern "C" void kernel_gemv_int(const int *A, const int *x, int *y) { | ||
| const int N = 4; | ||
| for (int i = 0; i < N; ++i) { | ||
| int acc = 0; | ||
| for (int j = 0; j < N; ++j) { | ||
| acc += A[i * N + j] * x[j]; | ||
| } | ||
| y[i] = acc; | ||
| } | ||
| } | ||
|
|
||
| int main() { | ||
| static int A[16]; | ||
| static int x[4]; | ||
| static int y[4]; | ||
| kernel_gemv_int(A, x, y); | ||
| return 0; | ||
| } | ||
|
|
||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.