Skip to content

Commit 4178419

Browse files
mansnilszingo
andauthored
Arm backend: Enable VKML unit testing in ciflow/trunk (#14109)
Enable VKML op unit test for Arm backend. Co-authored-by: Zingo Andersen <[email protected]>
1 parent c02fdfc commit 4178419

File tree

5 files changed

+30
-3
lines changed

5 files changed

+30
-3
lines changed

.ci/scripts/test_backend.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,25 @@ if [[ "$FLOW" == *vulkan* ]]; then
5757
fi
5858

5959
if [[ "$FLOW" == *arm* ]]; then
60+
6061
# Setup ARM deps.
61-
.ci/scripts/setup-arm-baremetal-tools.sh
62+
if [[ "$FLOW" == *vgf* ]]; then
63+
.ci/scripts/setup-arm-baremetal-tools.sh --enable-mlsdk-deps --install-mlsdk-deps-with-pip
64+
else
65+
.ci/scripts/setup-arm-baremetal-tools.sh
66+
fi
6267
source examples/arm/ethos-u-scratch/setup_path.sh
6368

6469
if [[ "$FLOW" == *ethos_u* ]]; then
6570
# Prepare a test runner binary that can run on the Corstone-3x0 FVPs
6671
backends/arm/scripts/build_executorch.sh
6772
backends/arm/test/setup_testing.sh
6873
fi
74+
75+
if [[ "$FLOW" == *vgf* ]]; then
76+
# Prepare a test runner binary for VKML runtime
77+
backends/arm/test/setup_testing_vkml.sh
78+
fi
6979
fi
7080

7181
if [[ $IS_MACOS -eq 1 ]]; then

.github/workflows/test-backend-arm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
uses: ./.github/workflows/_test_backend.yml
2727
with:
2828
backend: arm
29-
flows: '["arm_tosa_fp", "arm_tosa_int", "arm_ethos_u55", "arm_ethos_u85"]'
29+
flows: '["arm_tosa_fp", "arm_tosa_int", "arm_ethos_u55", "arm_ethos_u85", "arm_vgf_fp", "arm_vgf_int"]'
3030
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
3131
timeout: 120
3232
run-linux: true

.github/workflows/trunk.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ jobs:
284284
include:
285285
- test_arm_baremetal: test_pytest_ops_ethosu_fvp
286286
- test_arm_baremetal: test_pytest_models_ethosu_fvp
287+
- test_arm_baremetal: test_pytest_ops_vkml
287288
- test_arm_baremetal: test_run_ethosu_fvp
288289
- test_arm_baremetal: test_models_tosa
289290
- test_arm_baremetal: test_models_ethos-u55
@@ -306,7 +307,7 @@ jobs:
306307
source .ci/scripts/utils.sh
307308
install_executorch "--use-pt-pinned-commit"
308309
309-
.ci/scripts/setup-arm-baremetal-tools.sh
310+
.ci/scripts/setup-arm-baremetal-tools.sh --enable-mlsdk-deps --install-mlsdk-deps-with-pip
310311
311312
# Increase number of files user can monitor to bypass buck failures.
312313
# Hopefully this is high enough for this setup.

backends/test/suite/flow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,17 @@ def all_flows() -> dict[str, TestFlow]:
132132
ARM_ETHOS_U85_FLOW,
133133
ARM_TOSA_FP_FLOW,
134134
ARM_TOSA_INT_FLOW,
135+
ARM_VGF_FP_FLOW,
136+
ARM_VGF_INT_FLOW,
135137
)
136138

137139
flows += [
138140
ARM_TOSA_FP_FLOW,
139141
ARM_TOSA_INT_FLOW,
140142
ARM_ETHOS_U55_FLOW,
141143
ARM_ETHOS_U85_FLOW,
144+
ARM_VGF_FP_FLOW,
145+
ARM_VGF_INT_FLOW,
142146
]
143147
except Exception as e:
144148
logger.info(f"Skipping ARM flow registration: {e}")

backends/test/suite/flows/arm.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,15 @@ def create_quantize_stage() -> Quantize:
7878
lambda: common.get_u85_compile_spec(),
7979
quantize=True,
8080
)
81+
ARM_VGF_FP_FLOW = _create_arm_flow(
82+
"arm_vgf_fp",
83+
lambda: common.get_vgf_compile_spec(tosa_spec="TOSA-1.0+FP"),
84+
quantize=False,
85+
use_portable_ops=False,
86+
)
87+
ARM_VGF_INT_FLOW = _create_arm_flow(
88+
"arm_vgf_int",
89+
lambda: common.get_vgf_compile_spec(tosa_spec="TOSA-1.0+INT"),
90+
quantize=True,
91+
use_portable_ops=False,
92+
)

0 commit comments

Comments
 (0)