-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #377 from ucb-bar/dev
Update master with latest work on dev
- Loading branch information
Showing
29 changed files
with
678 additions
and
366 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
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 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 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 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 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 |
---|---|---|
@@ -1,118 +1,74 @@ | ||
name: Gemmini CI | ||
|
||
on: [push] | ||
jobs: | ||
install-gemmini: | ||
name: gemmini-install | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ucbbar/chipyard-ci-image:3f9150 | ||
options: --entrypoint /bin/bash | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: get paths | ||
run: .github/scripts/defaults.sh | ||
id: get-paths | ||
|
||
- name: install gemmini | ||
run: .github/scripts/install-gemmini.sh | ||
defaults: | ||
run: | ||
shell: bash -leo pipefail {0} | ||
|
||
- name: cache gemmini install | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.get-paths.outputs.LOCAL_CHIPYARD_DIR }} | ||
${{ steps.get-paths.outputs.LOCAL_CONDA }} | ||
key: gemmini-install-${{ github.ref }}-${{ github.sha }} | ||
env: | ||
REMOTE_WORK_DIR: /scratch/buildbot/gemmini-ci-shared/gemmini-${{ github.sha }} | ||
JAVA_TMP_DIR: /tmp/gemmini-${{ github.sha }}-full | ||
|
||
build-gemmini-config: | ||
name: build-gemmini-config | ||
runs-on: self-hosted | ||
needs: install-gemmini | ||
container: | ||
image: ucbbar/chipyard-ci-image:3f9150 | ||
options: --entrypoint /bin/bash | ||
jobs: | ||
install-gemmini: | ||
runs-on: jktqos | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: get paths | ||
run: .github/scripts/defaults.sh | ||
id: get-paths | ||
|
||
- name: remove chipyard | ||
run: .github/scripts/remove-chipyard.sh | ||
|
||
- name: restore cache gemmini install | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.get-paths.outputs.LOCAL_CHIPYARD_DIR }} | ||
${{ steps.get-paths.outputs.LOCAL_CONDA }} | ||
key: gemmini-install-${{ github.ref }}-${{ github.sha }} | ||
|
||
- name: Building Gemmini Config using Verilator | ||
run: .github/scripts/do-rtl-build.sh | ||
|
||
- name: cache build-gemmini-config install | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.get-paths.outputs.LOCAL_CHIPYARD_DIR }} | ||
${{ steps.get-paths.outputs.LOCAL_CONDA }} | ||
key: build-gemmini-config-${{ github.ref }}-${{ github.sha }} | ||
- name: Delete old checkout | ||
run: | | ||
rm -rf ${{ github.workspace }}/* || true | ||
rm -rf ${{ github.workspace }}/.* || true | ||
- uses: actions/checkout@v3 | ||
- name: Setup repository | ||
run: | | ||
.github/scripts/install-gemmini.sh | ||
spike-run-tests: | ||
name: spike-run-tests | ||
runs-on: ubuntu-latest | ||
runs-on: jktqos | ||
needs: install-gemmini | ||
container: | ||
image: ucbbar/chipyard-ci-image:3f9150 | ||
options: --entrypoint /bin/bash | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: get paths | ||
run: .github/scripts/defaults.sh | ||
id: get-paths | ||
|
||
- name: remove chipyard | ||
run: .github/scripts/remove-chipyard.sh | ||
- name: Delete old checkout | ||
run: | | ||
rm -rf ${{ github.workspace }}/* || true | ||
rm -rf ${{ github.workspace }}/.* || true | ||
- uses: actions/checkout@v3 | ||
- name: Run Gemmini Spike tests | ||
run: | | ||
.github/scripts/run-tests-spike.sh | ||
- name: restore cache gemmini install | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.get-paths.outputs.LOCAL_CHIPYARD_DIR }} | ||
${{ steps.get-paths.outputs.LOCAL_CONDA }} | ||
key: gemmini-install-${{ github.ref }}-${{ github.sha }} | ||
|
||
- name: run-tests | ||
run: .github/scripts/run-tests-spike.sh | ||
build-gemmini-config: | ||
runs-on: jktqos | ||
needs: install-gemmini | ||
steps: | ||
- name: Delete old checkout | ||
run: | | ||
rm -rf ${{ github.workspace }}/* || true | ||
rm -rf ${{ github.workspace }}/.* || true | ||
- uses: actions/checkout@v3 | ||
- name: Building Gemmini Config using Verilator | ||
run: | | ||
.github/scripts/do-rtl-build.sh | ||
rtl-run-tests: | ||
name: rtl-run-tests | ||
runs-on: ubuntu-latest | ||
runs-on: jktqos | ||
needs: build-gemmini-config | ||
container: | ||
image: ucbbar/chipyard-ci-image:3f9150 | ||
options: --entrypoint /bin/bash | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
- name: get paths | ||
run: .github/scripts/defaults.sh | ||
id: get-paths | ||
|
||
- name: remove chipyard | ||
run: .github/scripts/remove-chipyard.sh | ||
- name: Delete old checkout | ||
run: | | ||
rm -rf ${{ github.workspace }}/* || true | ||
rm -rf ${{ github.workspace }}/.* || true | ||
- uses: actions/checkout@v3 | ||
- name: Run Gemmini Config tests using Verilator | ||
run: | | ||
.github/scripts/run-tests-rtl.sh | ||
- name: restore cache build-gemmini-config install | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
${{ steps.get-paths.outputs.LOCAL_CHIPYARD_DIR }} | ||
${{ steps.get-paths.outputs.LOCAL_CONDA }} | ||
key: build-gemmini-config-${{ github.ref }}-${{ github.sha }} | ||
|
||
- name: run-tests | ||
run: .github/scripts/run-tests-rtl.sh | ||
cleanup: | ||
name: cleanup | ||
needs: [spike-run-tests, rtl-run-tests] | ||
runs-on: jktqos | ||
if: ${{ always() }} | ||
steps: | ||
- name: Delete repo copy | ||
run: | | ||
rm -rf ${{ env.REMOTE_WORK_DIR }} | ||
rm -rf ${{ env.JAVA_TMP_DIR }} |
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 |
---|---|---|
@@ -1 +1 @@ | ||
569917e2f30616f85a841d16a92914ae98ad7184 | ||
d75934b0327e8ba44973769d17794df8c2c8ee8b |
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
Submodule gemmini-rocc-tests
updated
12 files
+3 −0 | bareMetalC/Makefile | |
+4 −4 | bareMetalC/conv_rect.c | |
+435 −0 | bareMetalC/conv_rect_pool.c | |
+320 −0 | bareMetalC/conv_stride.c | |
+1 −1 | bareMetalC/gemmini_counter.c | |
+107 −0 | bareMetalC/resadd_stride.c | |
+16 −16 | bareMetalC/tiled_matmul_ws.c | |
+32 −4 | bareMetalC/tiled_matmul_ws_layernorm.c | |
+2 −0 | imagenet/resnet50.c | |
+372 −73 | include/gemmini.h | |
+25 −2 | include/gemmini_nn.h | |
+70 −25 | transformers/transformer.c |
Submodule libgemmini
updated
4 files
+1 −1 | Makefile | |
+1 −1 | README.md | |
+89 −38 | gemmini.cc | |
+3 −2 | gemmini.h |
Oops, something went wrong.