Skip to content

Commit 51a0da9

Browse files
committed
-reduce build_and_test_hexagon_cross execution time.
1 parent e2f9fd8 commit 51a0da9

2 files changed

Lines changed: 46 additions & 1 deletion

File tree

.github/workflows/cmake.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ jobs:
245245
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
246246
-DSIMD_TOOLCHAIN="${{env.HEXAGON_TOOLCHAIN}}/bin/hexagon-linux-musl-clang"
247247
-DSIMD_TARGET="hexagon"
248+
-DSIMD_SYNET=OFF
248249
249250
- name: Build
250251
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel$(nproc)
@@ -255,7 +256,7 @@ jobs:
255256
${{env.HEXAGON_TOOLCHAIN}}/bin/qemu-hexagon -cpu any
256257
-L ${{env.HEXAGON_TOOLCHAIN}}/target/hexagon-unknown-linux-musl
257258
./Test "-r=.." -m=a -tt=0 "-ot=log_${{matrix.build_type}}.txt" -ts=5 -mt=1
258-
-fe=WarpAffine -fe=RecursiveBilateral -fe=Resizer
259+
-fi=SquareS -fi=ValueSum -fi=y8u -fi=amCo -fi=GetStat -fi=ColSums -fi=RowSums -fi=FillPixel -fi=FillBgra -fi=CorrelationSum -fi=BgrToRgb -fi=BgrToGray -fi=Abs -fi=AddFeat
259260
260261
build_and_test_mingw:
261262
runs-on: windows-latest

.github/workflows/test.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,47 @@ jobs:
4444
working-directory: ${{github.workspace}}/build
4545
run: python3 ./Test.py "-r=.."
4646

47+
build_and_test_hexagon_cross:
48+
runs-on: ubuntu-latest
49+
50+
strategy:
51+
matrix:
52+
build_type: [Debug, Release]
53+
54+
env:
55+
HEXAGON_TOOLCHAIN: ${{github.workspace}}/clang+llvm-22.1.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu
56+
57+
steps:
58+
- uses: actions/checkout@v6
59+
60+
- name: Host properties
61+
run: lscpu
62+
63+
- name: Install host dependencies
64+
run: sudo apt-get update && sudo apt-get install -y libc++1 libc++abi1 liburing2 libglib2.0-0t64
65+
66+
- name: Install Hexagon toolchain
67+
run: |
68+
wget -q https://artifacts.codelinaro.org/artifactory/codelinaro-toolchain-for-hexagon/22.1.0_/clang+llvm-22.1.0-cross-hexagon-unknown-linux-musl.tar.zst
69+
tar --zstd -xf clang+llvm-22.1.0-cross-hexagon-unknown-linux-musl.tar.zst
70+
71+
- name: Configure CMake
72+
run: >
73+
cmake ./prj/cmake -B ${{github.workspace}}/build
74+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
75+
-DSIMD_TOOLCHAIN="${{env.HEXAGON_TOOLCHAIN}}/bin/hexagon-linux-musl-clang"
76+
-DSIMD_TARGET="hexagon"
77+
-DSIMD_SYNET=OFF
78+
79+
- name: Build
80+
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel$(nproc)
81+
82+
- name: Test
83+
working-directory: ${{github.workspace}}/build
84+
run: >
85+
${{env.HEXAGON_TOOLCHAIN}}/bin/qemu-hexagon -cpu any
86+
-L ${{env.HEXAGON_TOOLCHAIN}}/target/hexagon-unknown-linux-musl
87+
./Test "-r=.." -m=a -tt=0 "-ot=log_${{matrix.build_type}}.txt" -ts=5 -mt=1
88+
-fi=SquareS -fi=ValueSum -fi=y8u -fi=amCo -fi=GetStat -fi=ColSums -fi=RowSums -fi=FillPixel -fi=FillBgra -fi=CorrelationSum -fi=BgrToRgb -fi=BgrToGray -fi=Abs -fi=AddFeat
89+
90+

0 commit comments

Comments
 (0)