Skip to content

Commit ec37385

Browse files
committed
+add custom test.
1 parent 51a0da9 commit ec37385

1 file changed

Lines changed: 7 additions & 44 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -33,58 +33,21 @@ jobs:
3333
- name: Build
3434
run: cmake --build ${{github.workspace}}/build --config ${{matrix.build_type}} --parallel$(nproc)
3535

36-
- name: Test C++
36+
- name: Test C++ All
3737
working-directory: ${{github.workspace}}/build
3838
run: |
3939
export LD_LIBRARY_PATH="${{github.workspace}}/build":$LD_LIBRARY_PATH
4040
./Test "-r=.." -m=a -tt=4 -ts=5 -mt=10 -w=640 -h=480 -c=256
4141
42+
- name: Test C++ Custom
43+
working-directory: ${{github.workspace}}/build
44+
run: |
45+
export LD_LIBRARY_PATH="${{github.workspace}}/build":$LD_LIBRARY_PATH
46+
./Test "-r=.." -m=a -tt=1 -ts=5 -fi=InnerProduct
47+
4248
- name: Test Python
4349
if: ${{ matrix.build_type == 'Release' }}
4450
working-directory: ${{github.workspace}}/build
4551
run: python3 ./Test.py "-r=.."
4652

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-
9053

0 commit comments

Comments
 (0)