Skip to content

Commit 0c8573c

Browse files
Merge pull request #405 from puneetmatharu/patch-pytorch-ci
Patch setting of oneDNN fpmath mode in PyTorch CI
2 parents 3157fdd + 3f6efaf commit 0c8573c

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/pytorch.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
test:
9797
needs: build-image
9898
strategy:
99+
fail-fast: false
99100
matrix:
100101
config:
101102
[
@@ -104,9 +105,6 @@ jobs:
104105
]
105106
onednn_fpmath_mode: [FP32, BF16]
106107
runs-on: ${{ matrix.config.label }}
107-
env:
108-
ONEDNN_DEFAULT_FPMATH_MODE: ${{ matrix.onednn_fpmath_mode }}
109-
110108
steps:
111109
- name: Download image artifact
112110
uses: actions/download-artifact@v5
@@ -120,8 +118,14 @@ jobs:
120118
- name: Load Docker image
121119
run: docker load -i toolsolutions-pytorch-image-${{ matrix.config.name }}.tar
122120

123-
- name: Run smoke tests for
124-
run: docker run --rm toolsolutions-pytorch:latest ./test-examples.sh
121+
- name: Run smoke tests
122+
run: |
123+
docker run --rm \
124+
-e ONEDNN_DEFAULT_FPMATH_MODE=${{ matrix.onednn_fpmath_mode }} \
125+
toolsolutions-pytorch:latest ./test-examples.sh
125126
126127
- name: Run unit tests
127-
run: docker run --rm toolsolutions-pytorch:latest ./run_unit_tests.sh
128+
run: |
129+
docker run --rm \
130+
-e ONEDNN_DEFAULT_FPMATH_MODE=${{ matrix.onednn_fpmath_mode }} \
131+
toolsolutions-pytorch:latest ./run_unit_tests.sh

0 commit comments

Comments
 (0)