Skip to content

Commit 3c1d47f

Browse files
authored
Repeat performance tests up to 5 times on GHA (#9000)
* DEBUG: print cpu info and Halide host target
1 parent 23a1386 commit 3c1d47f

3 files changed

Lines changed: 19 additions & 7 deletions

File tree

.github/workflows/testing-arm-linux.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,20 @@ jobs:
104104
run: |
105105
cmake -S . -B build -DHalide_TARGET=host
106106
cmake --build build
107-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
107+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
108+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5
108109
109110
- name: Test (NEON)
110111
if: matrix.bits == '64'
111112
run: |
112113
cmake -S . -B build -DHalide_TARGET=arm-64-linux-arm_dot_prod-arm_fp16
113114
cmake --build build
114-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
115+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
116+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5
115117
116118
- name: Test (no extensions)
117119
run: |
118120
cmake -S . -B build -DHalide_TARGET=cmake
119121
cmake --build build
120-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
122+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
123+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5

.github/workflows/testing-linux.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,21 @@ jobs:
9292
- name: Initial build
9393
run: cmake --build build
9494

95+
- name: DEBUG - print cpu info and Halide host target
96+
run: |
97+
cat /proc/cpuinfo
98+
./build/src/autoschedulers/common/get_host_target
99+
95100
- name: Test (host)
96101
run: |
97102
cmake -S . -B build -DHalide_TARGET=host
98103
cmake --build build
99-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
104+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
105+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5
100106
101107
- name: Test (no extensions)
102108
run: |
103109
cmake -S . -B build -DHalide_TARGET=cmake
104110
cmake --build build
105-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
111+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
112+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5

.github/workflows/testing-windows.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ jobs:
8686
run: |
8787
cmake -S . -B build -DHalide_TARGET=host
8888
cmake --build build
89-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
89+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
90+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5
9091
9192
- name: Test (no extensions)
9293
run: |
9394
cmake -S . -B build -DHalide_TARGET=cmake
9495
cmake --build build
95-
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -j "$(nproc)"
96+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -LE performance -j "$(nproc)"
97+
ctest --test-dir build --build-config RelWithDebInfo --output-on-failure -L performance --repeat until-pass:5

0 commit comments

Comments
 (0)