-
Notifications
You must be signed in to change notification settings - Fork 34
Deeploy-GAP9 Platform #143
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
53 commits
Select commit
Hold shift + click to select a range
3d55d6a
Extend Dockerflow with GAP9 Support
Xeratec 8ae3fef
Improve speed of LLVM cloning
Xeratec 6acde80
Initial GAP9 Support
Xeratec a7ac74e
Minor cleanup
Xeratec f916db8
Update Readme
Xeratec 3cd6e29
[GAP9] Fix DeeployTest.c nested team fork issue
runwangdl 9ca4595
[GAP9]Fix GCC segmentation fault in Transpose template syntax
runwangdl 7e77991
[GAP9] Link PULP-NN
runwangdl 294d83a
[GAP9] OpRepre n_cores Missing
runwangdl 4946ed5
[GAP9] LInk Math and PULP Kernels
runwangdl a08b6fd
[GAP9] Replace MCHAN DMA with cl_dma.h API and Decouple deployer form…
runwangdl b51e29d
[GAP0] WIP Tiling Support for L3
runwangdl 6b5c2e5
[GAP9] Layernorm Epsilon ABI Issue
runwangdl 3a1d877
[GAP9] Fixed Zero Cyclecounter Issue
runwangdl faa6421
[GAP9] Add CI
runwangdl 584729c
[GAP9] Fix L2 GVSoC target build with hexlist
runwangdl 3e2fc87
[GAP9] Sdk.config add macro for clusterstack
runwangdl 6b55e98
[GAP9] Fix Cluster DMA Concurrent Tasks Bug with Mchan Template from …
runwangdl ccaad61
[GAP9] Fix free template from PULP-sdk to GAP9sdk
runwangdl af01a2e
[GAP9] Fix duplicate L3 Alloc Code generation due to PULP inheritance…
runwangdl e4ed675
Merge remote-tracking branch 'run/devel' into gap9-operators-github
runwangdl 71896e7
[GAP9] Change GAP9 DWConV Based on PULP change
runwangdl f88d5c5
[GAP-CI] Update runner-gap9.yml
runwangdl 4429a6a
[GAP-CI] Some CI Bugs fixed
runwangdl 40d1dec
Update default docker for gap9 platform
runwangdl ff05304
Change other target to default docker
runwangdl c5cce58
Merge remote-tracking branch 'origin/devel' into gap9-operators-github
runwangdl 9b72ff6
GAP9 PyTest Adaptation
runwangdl f9a785d
Apply Philip's Patch about GAP9 workflow
runwangdl 8ba22ba
Add math.h to sqrt.c
runwangdl e94bef0
Change the config list for GAP9
runwangdl c75553f
Change docker to private pulp deeploy-gap9 docker
runwangdl 0dd9596
Add pre-built pulp-nn-mixed library
runwangdl f374493
Select docker based on Repo
runwangdl 3b74a29
Correct config list for Gap9
runwangdl a42f620
Correct config list 2.0
runwangdl bd526dc
fix linting
runwangdl 60a7e0e
Softhier bug because extra printf"init network"
runwangdl 5649f96
Fix Comments: - Add L3 tests and fix build configuration issues
runwangdl 06289bf
Fix linting
runwangdl 82de2e1
Fix Linting 2.0
runwangdl adfe9f3
Exclude prebuilt directories from license checks
runwangdl 67e7e5b
Fix coderabbit comments
runwangdl 67bbbb5
Remove unwanted changes from GAP9 prebuilt library commit
runwangdl a0e65a6
Move pulp-nn to targetlibrary/third-party and correct ci workflow sel…
runwangdl 3dd6ec1
Trigger CI
runwangdl 09c70ab
Register submodules at new paths in TargetLibraries/third_party/
runwangdl 6fb9cd2
Fix CMake add_subdirectory for out-of-tree sources
runwangdl c4768e1
Change CHANGELOG
runwangdl 8593fdf
Merge branch 'devel' into gap9-operators-github
runwangdl c4a4de6
Merge remote-tracking branch 'origin/devel' into gap9-operators-github
Xeratec f0be2ec
Fix Changelog
Xeratec 36cf5bc
Fix formatting
Xeratec 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| # SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: _runner-gap9-tiled | ||
|
|
||
| "on": | ||
| workflow_call: | ||
| inputs: | ||
| runner: | ||
| required: true | ||
| type: string | ||
| docker-image: | ||
| required: true | ||
| type: string | ||
| pytest-markers: | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| test-runner-gap9-tiled: | ||
| runs-on: ${{ inputs.runner }} | ||
| container: | ||
| image: ${{ inputs.docker-image }} | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| - name: Build Deeploy | ||
| shell: bash | ||
| run: | | ||
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | ||
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | ||
| pip install -e . || true | ||
| deactivate | ||
| - name: Cache ccache | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: /app/.ccache | ||
| key: ccache-gap9 | ||
| - name: Run Test | ||
| run: | | ||
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | ||
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | ||
| export GVSOC_INSTALL_DIR=/app/install/gap9-sdk/install/workstation | ||
| export GAP_RISCV_GCC_TOOLCHAIN=/app/install/gcc/gap9 | ||
| cd DeeployTest | ||
| mkdir -p /app/.ccache | ||
| export CCACHE_DIR=/app/.ccache | ||
| pytest test_platforms.py -v -m "${{ inputs.pytest-markers }}" | ||
| deactivate | ||
| shell: bash |
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,54 @@ | ||
| # SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: _runner-gap9 | ||
|
|
||
| "on": | ||
| workflow_call: | ||
| inputs: | ||
| runner: | ||
| required: true | ||
| type: string | ||
| docker-image: | ||
| required: true | ||
| type: string | ||
| pytest-marker: | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| test-runner-gap9: | ||
| runs-on: ${{ inputs.runner }} | ||
| container: | ||
| image: ${{ inputs.docker-image }} | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| - name: Build Deeploy | ||
| shell: bash | ||
| run: | | ||
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | ||
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | ||
| pip install -e . || true | ||
| deactivate | ||
| - name: Cache ccache | ||
| uses: actions/cache/restore@v4 | ||
| with: | ||
| path: /app/.ccache | ||
| key: ccache-gap9 | ||
runwangdl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Run Test | ||
| run: | | ||
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | ||
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | ||
| export GVSOC_INSTALL_DIR=/app/install/gap9-sdk/install/workstation | ||
| export GAP_RISCV_GCC_TOOLCHAIN=/app/install/gcc/gap9 | ||
| cd DeeployTest | ||
| mkdir -p /app/.ccache | ||
| export CCACHE_DIR=/app/.ccache | ||
| pytest test_platforms.py -v -n 4 -m "gap9 and ${{ inputs.pytest-marker }}" | ||
| deactivate | ||
| shell: bash | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: CI • GAP9 (Tiled) | ||
|
|
||
| "on": | ||
| push: | ||
| branches: | ||
| - "**" | ||
| tags: | ||
| - "v*.*.*" | ||
| pull_request: | ||
| workflow_dispatch: | ||
| inputs: | ||
| docker_image_deeploy: | ||
| description: "Deeploy Image to use" | ||
| required: false | ||
| default: "ghcr.io/pulp-platform/deeploy-gap9:latest" | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| select-env: | ||
| uses: ./.github/workflows/_select-env.yml | ||
| with: | ||
| docker_image_deeploy: ${{ github.event.inputs.docker_image_deeploy || github.repository == 'pulp-platform/Deeploy' && 'ghcr.io/pulp-platform/deeploy-gap9:latest'}} | ||
runwangdl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| gap9-kernels-tiled-singlebuffer-L2: | ||
| needs: select-env | ||
| uses: ./.github/workflows/_runner-gap9-tiled.yml | ||
| with: | ||
| runner: ${{ needs.select-env.outputs.runner }} | ||
| docker-image: ${{ needs.select-env.outputs.image }} | ||
| pytest-markers: "gap9_tiled and kernels and singlebuffer and l2" | ||
|
|
||
| gap9-kernels-tiled-doublebuffer-L2: | ||
| needs: select-env | ||
| uses: ./.github/workflows/_runner-gap9-tiled.yml | ||
| with: | ||
| runner: ${{ needs.select-env.outputs.runner }} | ||
| docker-image: ${{ needs.select-env.outputs.image }} | ||
| pytest-markers: "gap9_tiled and kernels and doublebuffer and l2" | ||
|
|
||
| gap9-models-tiled-singlebuffer-L2: | ||
| needs: select-env | ||
| uses: ./.github/workflows/_runner-gap9-tiled.yml | ||
| with: | ||
| runner: ${{ needs.select-env.outputs.runner }} | ||
| docker-image: ${{ needs.select-env.outputs.image }} | ||
| pytest-markers: "gap9_tiled and models and singlebuffer and l2" | ||
|
|
||
| gap9-models-tiled-doublebuffer-L2: | ||
| needs: select-env | ||
| uses: ./.github/workflows/_runner-gap9-tiled.yml | ||
| with: | ||
| runner: ${{ needs.select-env.outputs.runner }} | ||
| docker-image: ${{ needs.select-env.outputs.image }} | ||
| pytest-markers: "gap9_tiled and models and doublebuffer and l2" | ||
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,47 @@ | ||
| # SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: CI • GAP9 | ||
|
|
||
| "on": | ||
| push: | ||
| branches: | ||
| - "**" | ||
| tags: | ||
| - "v*.*.*" | ||
| pull_request: | ||
| workflow_dispatch: | ||
| inputs: | ||
| docker_image_deeploy: | ||
| description: "Deeploy Image to use" | ||
| required: false | ||
| default: "ghcr.io/pulp-platform/deeploy-gap9:latest" | ||
|
|
||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| select-env: | ||
| uses: ./.github/workflows/_select-env.yml | ||
| with: | ||
| docker_image_deeploy: ${{ github.event.inputs.docker_image_deeploy || (github.repository == 'pulp-platform/Deeploy' && 'ghcr.io/pulp-platform/deeploy-gap9:latest') }} | ||
|
|
||
| gap9-kernels: | ||
| needs: select-env | ||
| uses: ./.github/workflows/_runner-gap9.yml | ||
| with: | ||
| runner: ${{ needs.select-env.outputs.runner }} | ||
| docker-image: ${{ needs.select-env.outputs.image }} | ||
| pytest-marker: "kernels" | ||
|
|
||
| gap9-models: | ||
| needs: select-env | ||
| uses: ./.github/workflows/_runner-gap9.yml | ||
| with: | ||
| runner: ${{ needs.select-env.outputs.runner }} | ||
| docker-image: ${{ needs.select-env.outputs.image }} | ||
| pytest-marker: "models" |
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,54 @@ | ||
| # SPDX-FileCopyrightText: 2025 ETH Zurich and University of Bologna | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| --- | ||
| name: Infrastructure • Generate CCache GAP9 | ||
|
|
||
| "on": | ||
| workflow_dispatch: | ||
| inputs: | ||
| docker_image_deeploy: | ||
| description: "Deeploy GAP9 Image to use" | ||
| required: false | ||
| default: "ghcr.io/pulp-platform/deeploy-gap9:latest" | ||
| schedule: | ||
| # Runs the workflow on the default branch every day at 2AM CET to keep the cache fresh | ||
| - cron: "0 2 * * *" | ||
runwangdl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| generate-ccache-gap9: | ||
| runs-on: ubuntu-latest | ||
| container: | ||
| image: ${{ github.event.inputs.docker_image_deeploy || 'ghcr.io/pulp-platform/deeploy-gap9:latest' }} | ||
| steps: | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
| - name: Build Deeploy | ||
| shell: bash | ||
| run: | | ||
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | ||
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | ||
| pip install -e . || true | ||
| deactivate | ||
|
|
||
| - name: Generate CCache for GAP9 | ||
| run: | | ||
| source /app/install/gap9-sdk/.gap9-venv/bin/activate | ||
| source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true | ||
| export GVSOC_INSTALL_DIR=/app/install/gap9-sdk/install/workstation | ||
| export GAP_RISCV_GCC_TOOLCHAIN=/app/install/gcc/gap9 | ||
| cd DeeployTest | ||
| mkdir -p /app/.ccache | ||
| export CCACHE_DIR=/app/.ccache | ||
| pytest 'test_platforms.py::test_gap9_kernels[Kernels/Integer/Add/Regular]' --skipsim | ||
| pytest 'test_platforms.py::test_gap9_tiled_kernels_l2_singlebuffer[Kernels/Integer/Add/Large-5000-L2-singlebuffer]' --skipsim | ||
| deactivate | ||
|
|
||
| - name: Clean and Upload CCache | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: /app/.ccache | ||
| key: ccache-gap9 | ||
runwangdl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
Oops, something went wrong.
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.