|
98 | 98 | with:
|
99 | 99 | version: "17"
|
100 | 100 |
|
| 101 | + - name: setup python |
| 102 | + uses: actions/setup-python@v4 |
| 103 | + with: |
| 104 | + python-version: '3.10' |
| 105 | + |
101 | 106 | - name: Clone ACL
|
102 | 107 | run: ${{ github.workspace }}/oneDNN/.github/automation/build_acl.sh
|
103 | 108 | env:
|
@@ -174,6 +179,79 @@ jobs:
|
174 | 179 | CTEST_PARALLEL_LEVEL: 6
|
175 | 180 | DYLD_LIBRARY_PATH: ${{ github.workspace }}/ComputeLibrary/build
|
176 | 181 | ONEDNN_THREADING: ${{ matrix.config.threading }}
|
| 182 | + |
| 183 | + ## Regression test steps ## |
| 184 | + - name: Checkout oneDNN main |
| 185 | + if: ${{ matrix.config.build == "Release" }} |
| 186 | + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 |
| 187 | + with: |
| 188 | + ref: main |
| 189 | + path: oneDNN_main |
| 190 | + |
| 191 | + # TODO :: Create separate pipeline to cache oneDNN main |
| 192 | + - name: Configure oneDNN main |
| 193 | + if: ${{ matrix.config.build == "Release" }} |
| 194 | + run: ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh |
| 195 | + working-directory: ${{ github.workspace }}/oneDNN_main |
| 196 | + env: |
| 197 | + ACL_ROOT_DIR: ${{ github.workspace }}/ComputeLibrary |
| 198 | + BUILD_TOOLSET: ${{ matrix.config.toolset }} |
| 199 | + CMAKE_BUILD_TYPE: ${{ matrix.config.build }} |
| 200 | + CMAKE_GENERATOR: Ninja |
| 201 | + GCC_VERSION: 13 |
| 202 | + ONEDNN_ACTION: configure |
| 203 | + ONEDNN_TEST_SET: ${{ matrix.config.testset }} |
| 204 | + ONEDNN_THREADING: ${{ matrix.config.threading }} |
| 205 | + |
| 206 | + - name: Build oneDNN main |
| 207 | + if: ${{ matrix.config.build == "Release" }} |
| 208 | + run: ${{ github.workspace }}/oneDNN/.github/automation/build_aarch64.sh |
| 209 | + working-directory: ${{ github.workspace }}/oneDNN_main |
| 210 | + env: |
| 211 | + ONEDNN_ACTION: build |
| 212 | + |
| 213 | + - shell: bash |
| 214 | + if: ${{ matrix.config.build == "Release" }} |
| 215 | + run: | |
| 216 | + bash ${{ github.workspace }}/oneDNN/tests/regression/consistency_check.sh ${{ github.workspace }}/oneDNN_main/build/tests/benchdnn/benchdnn > consistency_1.txt |
| 217 | + bash ${{ github.workspace }}/oneDNN/tests/regression/consistency_check.sh ${{ github.workspace }}/oneDNN_main/build/tests/benchdnn/benchdnn > consistency_2.txt |
| 218 | + env: |
| 219 | + OMP_NUM_THREADS: 4 |
| 220 | + DYLD_LIBRARY_PATH: ${{ github.workspace }}/ComputeLibrary/build |
| 221 | + |
| 222 | + - name: Compare consistency check results |
| 223 | + if: ${{ matrix.config.build == "Release" }} |
| 224 | + id: consistency-check |
| 225 | + continue-on-error: true |
| 226 | + run: python ${{ github.workspace }}/oneDNN/tests/regression/benchdnn_comparison.py consistency_1.txt consistency_2.txt |
| 227 | + |
| 228 | + - shell: bash |
| 229 | + if: ${{ matrix.config.build == "Release" }} |
| 230 | + run: | |
| 231 | + OMP_NUM_THREADS=4 bash ${{ github.workspace }}/oneDNN/tests/regression/bench_regression.sh ${{ github.workspace }}/oneDNN_main/build/tests/benchdnn/benchdnn >> main.txt |
| 232 | + OMP_NUM_THREADS=4 bash ${{ github.workspace }}/oneDNN/tests/regression/bench_regression.sh ${{ github.workspace }}/oneDNN/build/tests/benchdnn/benchdnn >> new.txt |
| 233 | + OMP_NUM_THREADS=16 bash ${{ github.workspace }}/oneDNN/tests/regression/bench_regression.sh ${{ github.workspace }}/oneDNN_main/build/tests/benchdnn/benchdnn >> main.txt |
| 234 | + OMP_NUM_THREADS=16 bash ${{ github.workspace }}/oneDNN/tests/regression/bench_regression.sh ${{ github.workspace }}/oneDNN/build/tests/benchdnn/benchdnn >> new.txt |
| 235 | + env: |
| 236 | + DYLD_LIBRARY_PATH: ${{ github.workspace }}/ComputeLibrary/build |
| 237 | + |
| 238 | + - name: Compare regression test results |
| 239 | + if: ${{ matrix.config.build == "Release" }} |
| 240 | + id: regression-test |
| 241 | + continue-on-error: true |
| 242 | + run: python ${{ github.workspace }}/oneDNN/tests/regression/benchdnn_comparison.py main.txt new.txt |
| 243 | + |
| 244 | + - name: Check consistency-check failure |
| 245 | + if: ${{ matrix.config.build == "Release" && steps.consistency-check.outputs.pass != 'True' && steps.regression-test.outputs.pass != 'True' }} |
| 246 | + run: | |
| 247 | + echo "::warnings title=consistency-check-failure::consistency check on main failed, ignoring regression test results!" |
| 248 | + |
| 249 | + - name: Check regression test failure |
| 250 | + if: ${{ matrix.config.build == "Release" && steps.consistency-check.outputs.pass == 'True' && steps.regression-test.outputs.pass != 'True' }} |
| 251 | + run: | |
| 252 | + echo "::error title=regression-test-failure::some regression tests failed. Check the compare regression test results step for more details!" |
| 253 | + exit 1 |
| 254 | + |
177 | 255 | # This job adds a check named "CI AArch64" that represents overall
|
178 | 256 | # workflow status and can be used in branch rulesets
|
179 | 257 | status:
|
|
0 commit comments