-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snDNN: Move kernels into library compatible with new Runtime (#26)
* snDNN: Move applications into its own library called snDNN * docker: Explicitly copy the snDNN python requirement file sw/snDNN/requirements.txt * target/common: Update paths to allow usage in derived repos * snDNN: remove fusedconv from passing apps due to reported errors * snDNN/gemm: Fix gemm implementation (cores did not compute anything previously) * sw/deps: Add install directory to .gitignore * wave: Add default wave file for questasim for debugging purposes * blas/gemm: Update blas/gemm fp16 and fp8 implementations * deps: Use https for MUSL submodule * dnn: Refactor software * sw: Remove legacy `benchmark` and `cmake` folders * musl: Remove submodule and vendor math sources only * musl: Patch to build math library for Snitch * ci: Update musl build * sw/math: Exclude from linting * dnn: Format C files * .clang-format-ignore: Make more compact --------- Co-authored-by: Gianna Paulin <[email protected]> Co-authored-by: Luca Colagrande <[email protected]>
- Loading branch information
1 parent
1183399
commit ca5e744
Showing
124 changed files
with
5,506 additions
and
6,735 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ | |
# The CI runs on `clang-format` version 10 | ||
BasedOnStyle: Google | ||
IndentWidth: 4 | ||
IncludeBlocks: Preserve |
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,6 @@ | ||
# Copyright 2023 ETH Zurich and University of Bologna. | ||
# Licensed under the Apache License, Version 2.0, see LICENSE for details. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Ignore vendored third-party code | ||
./sw/math/* |
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 |
---|---|---|
|
@@ -35,40 +35,23 @@ docs: | |
# Build Snitch cluster software # | ||
################################# | ||
|
||
snitch-cluster-sw-musl: | ||
script: | ||
- cd sw/deps | ||
- mkdir install | ||
- cd musl | ||
- CC=$CLANG ./configure --disable-shared --prefix=../install/ | ||
--enable-wrapper=all | ||
CFLAGS="-mcpu=snitch -menable-experimental-extensions" | ||
- make -j4 | ||
- make install | ||
artifacts: | ||
paths: | ||
- sw/deps/install/bin/* | ||
- sw/deps/install/include/* | ||
- sw/deps/install/lib/* | ||
expire_in: 1 day | ||
|
||
snitch-cluster-sw: | ||
needs: [snitch-cluster-sw-musl] | ||
script: | ||
- cd target/snitch_cluster | ||
- make sw | ||
artifacts: | ||
paths: | ||
- sw/math/include/bits/alltypes.h | ||
- target/snitch_cluster/sw/**/build/*.elf | ||
expire_in: 1 day | ||
|
||
snitch-cluster-sw-banshee: | ||
needs: [snitch-cluster-sw-musl] | ||
script: | ||
- cd target/snitch_cluster | ||
- make SELECT_RUNTIME=banshee sw | ||
artifacts: | ||
paths: | ||
- sw/math/include/bits/alltypes.h | ||
- target/snitch_cluster/sw/**/build/*.elf | ||
expire_in: 1 day | ||
|
||
|
@@ -144,7 +127,7 @@ snitch-cluster-banshee: | |
- rustup --version | ||
- git clone [email protected]:pulp-platform/banshee.git --recurse-submodules | ||
- cd banshee | ||
- cargo install --path . | ||
- cargo install --debug --path . | ||
- cd ../target/snitch_cluster | ||
- ./sw/tests/run.py sw/tests/banshee-apps.list --simulator banshee | ||
- ./sw/apps/run.py sw/apps/passing-apps.list --simulator banshee |
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 |
---|---|---|
|
@@ -4,6 +4,3 @@ | |
[submodule "sw/deps/printf"] | ||
path = sw/deps/printf | ||
url = https://github.com/mpaland/printf.git | ||
[submodule "sw/deps/musl"] | ||
path = sw/deps/musl | ||
url = [email protected]:kraj/musl.git |
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 |
---|---|---|
|
@@ -20,3 +20,4 @@ termcolor | |
pandas | ||
|
||
-r docs/requirements.txt | ||
-r sw/dnn/requirements.txt |
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.
Oops, something went wrong.