Skip to content

Commit b817162

Browse files
committed
[GAP9-CI] Try one CI test for GAP9
1 parent 1cbb8b5 commit b817162

5 files changed

Lines changed: 13 additions & 21 deletions

File tree

.github/workflows/_runner-gap9.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,11 @@ jobs:
3333
submodules: recursive
3434
- name: Build Deeploy
3535
shell: bash
36-
run: pip install -e .
36+
run: |
37+
source /app/install/gap9-sdk/.gap9-venv/bin/activate
38+
source /app/install/gap9-sdk/configs/gap9_evk_audio.sh
39+
pip install -e .
40+
deactivate
3741
- name: Cache ccache
3842
uses: actions/cache/restore@v4
3943
with:
@@ -42,6 +46,8 @@ jobs:
4246
- name: Run Test
4347
run: |
4448
testNames="${{ inputs.test-names }}"
49+
source /app/install/gap9-sdk/.gap9-venv/bin/activate
50+
source /app/install/gap9-sdk/configs/gap9_evk_audio.sh
4551
cd DeeployTest
4652
mkdir -p /app/.ccache
4753
export CCACHE_DIR=/app/.ccache
@@ -51,4 +57,5 @@ jobs:
5157
python testRunner_gap9.py -t Tests/$testName --cores=${{ inputs.num-cores }}
5258
fi
5359
done
60+
deactivate
5461
shell: bash

.github/workflows/_select-env.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,7 @@ jobs:
2626
- id: set-docker-image
2727
shell: bash
2828
run: |
29-
if [[ -n "${{ inputs.docker_image_deeploy }}" ]]; then
30-
IMAGE="${{ inputs.docker_image_deeploy }}"
31-
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
32-
TAG_NAME="${GITHUB_REF##refs/tags/}"
33-
IMAGE="ghcr.io/pulp-platform/deeploy:${TAG_NAME}"
34-
elif [[ "${{ github.ref_name }}" == "main" ]]; then
35-
IMAGE="ghcr.io/pulp-platform/deeploy:main"
36-
else
37-
IMAGE="ghcr.io/pulp-platform/deeploy:devel"
38-
fi
29+
IMAGE="ghcr.io/runwangdl/deeploy:gap9"
3930
echo "image=${IMAGE}" >> "$GITHUB_OUTPUT"
4031
4132
- id: set-runner

.github/workflows/ci-deeploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ name: CI • Deeploy
1717
docker_image_deeploy:
1818
description: "Deeploy Image to use"
1919
required: false
20-
default: "ghcr.io/pulp-platform/deeploy:devel"
20+
default: "ghcr.io/runwangdl/deeploy:gap9"
2121

2222
concurrency:
2323
group: ${{ github.workflow }}-${{ github.ref }}

Deeploy/Targets/GAP9/Platform.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,6 @@ class GAP9StructBuffer(StructBuffer):
232232
_includeList = [
233233
"pmsis.h",
234234
"DeeployGAP9Math.h",
235-
"pulp_nn_kernels.h",
236235
"DeeployMchan.h"
237236
]
238237

TargetLibraries/GAP9/CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ file(GLOB_RECURSE SOURCES
77
)
88

99
# RW: Include PULPOpen sources but exclude dory_mem related files
10-
file(GLOB_RECURSE PULPOPEN_SOURCES "../PULPOpen/src/**")
11-
list(FILTER PULPOPEN_SOURCES EXCLUDE REGEX ".*dory_mem.*")
12-
list(APPEND SOURCES ${PULPOPEN_SOURCES})
10+
#file(GLOB_RECURSE PULPOPEN_SOURCES "../PULPOpen/src/**")
11+
#list(FILTER PULPOPEN_SOURCES EXCLUDE REGEX ".*dory_mem.*")
12+
#list(APPEND SOURCES ${PULPOPEN_SOURCES})
1313

1414
if(NOT DEFINED ENV{GAP_SDK_HOME})
1515
message(FATAL_ERROR "Environment variable GAP_SDK_HOME not set.")
@@ -19,7 +19,6 @@ add_deeploy_library(deeploygap9 STATIC ${SOURCES})
1919
target_include_directories(deeploygap9
2020
PUBLIC
2121
${CMAKE_CURRENT_LIST_DIR}/inc
22-
${CMAKE_CURRENT_LIST_DIR}/../PULPOpen/inc
2322
)
2423

2524
target_compile_options(deeploygap9 PUBLIC
@@ -41,12 +40,8 @@ target_link_libraries(deeploygap9 PUBLIC pmsis)
4140
#RW: Set PULP-NN version and bitwidth for pulp-nn-mixed
4241
set(PULPNNVERSION XPULPV2)
4342
set(PULPNNBITWIDTH 32)
44-
add_compile_definitions(NUM_CORES=${NUM_CORES})
45-
add_subdirectory(third_party/pulp-nn-mixed)
4643

4744
#RW: GCC not recognizing -Wno-typedef-redefinition defined in PULP-NN CMakelist
48-
target_compile_options(pulp-nn-mixed PRIVATE -Wno-error)
49-
target_link_libraries(deeploygap9 PUBLIC pulp-nn-mixed)
5045

5146
target_link_libraries(deeploygap9 PUBLIC m)
5247

0 commit comments

Comments
 (0)