Skip to content

Commit 2ba0fed

Browse files
committed
[GAP9-CI] Testing GAP9 CI
1 parent f88d5c5 commit 2ba0fed

File tree

3 files changed

+38
-17
lines changed

3 files changed

+38
-17
lines changed

.github/workflows/_runner-gap9-tiled.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,21 +58,34 @@ jobs:
5858
submodules: recursive
5959
- name: Build Deeploy
6060
shell: bash
61-
run: pip install -e .
62-
- name: Cache ccache
61+
run: |
62+
source /app/install/gap9-sdk/.gap9-venv/bin/activate
63+
source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true
64+
pip install -e . || true
65+
deactivate
66+
- name: Restore ccache
6367
uses: actions/cache/restore@v4
6468
with:
6569
path: /app/.ccache
66-
key: ccache-ci
70+
key: ccache-gap9-${{ github.sha }}
71+
restore-keys: |
72+
ccache-gap9-
73+
ccache-
6774
- name: Run Test
68-
uses: nick-fields/retry@v3
75+
run: |
76+
source /app/install/gap9-sdk/.gap9-venv/bin/activate
77+
source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true
78+
export GVSOC_INSTALL_DIR=/app/install/gap9-sdk/install/workstation
79+
export GAP_RISCV_GCC_TOOLCHAIN=/app/install/gcc/gap9
80+
cd DeeployTest
81+
mkdir -p /app/.ccache
82+
export CCACHE_DIR=/app/.ccache
83+
python testRunner_tiled_gap9.py -t Tests/${{ inputs.test-name }} --cores=${{ inputs.num-cores }} --l1 ${{ matrix.L1 }} --defaultMemLevel=${{ inputs.default-memory-level }} ${{ inputs.double-buffer && '--doublebuffer' || '' }} --memAllocStrategy=${{ inputs.memory-allocation-strategy }} --searchStrategy=${{ inputs.search-strategy }}
84+
deactivate
85+
shell: bash
86+
- name: Save ccache
87+
uses: actions/cache/save@v4
88+
if: always()
6989
with:
70-
timeout_minutes: 15
71-
max_attempts: 3
72-
retry_on: timeout
73-
command: |
74-
cd DeeployTest
75-
mkdir -p /app/.ccache
76-
export CCACHE_DIR=/app/.ccache
77-
python testRunner_tiled_gap9.py -t Tests/${{ inputs.test-name }} --cores=${{ inputs.num-cores }} --l1 ${{ matrix.L1 }} --defaultMemLevel=${{ inputs.default-memory-level }} ${{ inputs.double-buffer && '--doublebuffer' || '' }} --memAllocStrategy=${{ inputs.memory-allocation-strategy }} --searchStrategy=${{ inputs.search-strategy }}
78-
shell: bash
90+
path: /app/.ccache
91+
key: ccache-gap9-${{ github.sha }}

.github/workflows/_runner-gap9.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,14 @@ jobs:
3838
source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true
3939
pip install -e . || true
4040
deactivate
41-
- name: Cache ccache
41+
- name: Restore ccache
4242
uses: actions/cache/restore@v4
4343
with:
4444
path: /app/.ccache
45-
key: ccache-ci
45+
key: ccache-gap9-${{ github.sha }}
46+
restore-keys: |
47+
ccache-gap9-
48+
ccache-
4649
- name: Run Test
4750
run: |
4851
testNames="${{ inputs.test-names }}"
@@ -60,4 +63,10 @@ jobs:
6063
fi
6164
done
6265
deactivate
63-
shell: bash
66+
shell: bash
67+
- name: Save ccache
68+
uses: actions/cache/save@v4
69+
if: always()
70+
with:
71+
path: /app/.ccache
72+
key: ccache-gap9-${{ github.sha }}

.github/workflows/ci-platform-gap9.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
test2DRequantizedConv
4747
iSoftmax
4848
testConcat
49-
testRMSNorm
5049
trueIntegerDivSandwich
5150
Hardswish
5251
RQHardswish

0 commit comments

Comments
 (0)