-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into sasha/snitch-toy
- Loading branch information
Showing
33 changed files
with
2,067 additions
and
321 deletions.
There are no files selected for viewing
This file contains 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,35 @@ | ||
name: Run experiments | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
run-experiments: | ||
runs-on: ubuntu-latest | ||
container: ghcr.io/nazavode/snitch-toolchain:2.3 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Run experiments | ||
run: scripts/run.sh --abort-on-error --tag cirun | ||
- name: Read CSV | ||
id: csv | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: results/cycles_cirun.csv | ||
- name: Create MD | ||
uses: petems/csv-to-md-table-action@master | ||
id: csv-table-output | ||
with: | ||
csvinput: ${{ steps.csv.outputs.content }} | ||
- uses: mshick/add-pr-comment@v1 | ||
with: | ||
message: | | ||
${{steps.csv-table-output.outputs.markdown-table}} | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
repo-token-user-login: 'github-actions[bot]' # The user.login for temporary GitHub tokens | ||
allow-repeats: true |
This file contains 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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,9 @@ | ||
.DEFAULT_GOAL := all | ||
|
||
include ../../../snitch/Makefile.rules | ||
|
||
TESTS = | ||
TESTS += baseline.x | ||
TESTS += linalg.x | ||
|
||
include ../../Makefile.kernels |
This file contains 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,16 @@ | ||
#include "data.h" | ||
|
||
#include <snrt.h> | ||
|
||
#include <stdint.h> | ||
|
||
void matmul(const double* x, const double* y, double* g) { | ||
for (uint32_t i = 0; i < M; ++i) { | ||
for (uint32_t j = 0; j < N; ++j) { | ||
for (uint32_t k = 0; k < K; ++k) { | ||
// row-major accesses | ||
g[i * N + j] += x[i * K + k] * y[k * N + j]; | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.