Skip to content

Commit e6355a9

Browse files
committed
[CI] add NE16 profiling step to GAP9+NE16 tiled workflow
Runs each NE16 conv kernel with --profileTiling after the normal test suite to collect cycle counts from gvsoc.
1 parent 6a3793a commit e6355a9

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,31 @@ jobs:
5252
pytest test_platforms.py -v -m "${{ inputs.pytest-markers }}"
5353
deactivate
5454
shell: bash
55+
- name: NE16 Profiling (cycle counts)
56+
if: always()
57+
run: |
58+
source /app/install/gap9-sdk/.gap9-venv/bin/activate
59+
source /app/install/gap9-sdk/configs/gap9_evk_audio.sh || true
60+
export GVSOC_INSTALL_DIR=/app/install/gap9-sdk/install/workstation
61+
export GAP_RISCV_GCC_TOOLCHAIN=/app/install/gcc/gap9
62+
mkdir -p /app/.ccache
63+
export CCACHE_DIR=/app/.ccache
64+
cd DeeployTest
65+
for test in \
66+
"Tests/Kernels/Integer/Conv/PW_2D_RQ/Regular_RQ --l1 32000" \
67+
"Tests/Kernels/Integer/Conv/PW_2D --l1 32000" \
68+
"Tests/Kernels/Integer/Conv/DW_2D_RQ --l1 32000" \
69+
"Tests/Kernels/Integer/Conv/Dense_2D_RQ --l1 32000" \
70+
"Tests/Kernels/Integer/Conv/StriddedPadded_2D_RQ --l1 32000"; do
71+
dir=$(echo $test | awk '{print $1}')
72+
l1=$(echo $test | awk '{print $3}')
73+
echo "========================================"
74+
echo "PROFILING: $dir (L1=$l1)"
75+
echo "========================================"
76+
python3 deeployRunner_tiled_gap9_w_ne16.py \
77+
-t "$dir" --l1 "$l1" \
78+
--toolchain GCC --toolchain-install-dir /app/install/gcc/gap9 \
79+
--cores 8 --enable-3x3 --profileTiling -v 2>&1 || true
80+
done
81+
deactivate
82+
shell: bash

0 commit comments

Comments
 (0)