Skip to content

Commit 21d9319

Browse files
authored
split ops and grads on CPU, parallel for test_interpreter (#1645)
1 parent f3a4540 commit 21d9319

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci-testing.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ jobs:
2929
os: ["ubuntu-22.04", "macOS-14", "windows-2022"]
3030
python-version: ["3.10"]
3131
requires: ["latest", "nightly"] # , 'oldest'
32-
suite: ["core", "ops"]
32+
suite: ["core", "ops", "grads"]
3333
include:
3434
- { os: "ubuntu-22.04", python-version: "3.11", requires: "latest" }
3535
- { os: "ubuntu-22.04", python-version: "3.12", requires: "latest" }
3636
exclude:
3737
- { os: "windows-2022", suite: "ops" }
38+
- { os: "windows-2022", suite: "grads" }
3839

3940
# Timeout: https://stackoverflow.com/a/59076067/4521646
4041
timeout-minutes: 35
@@ -118,7 +119,16 @@ jobs:
118119
if: matrix.python-version == '3.10' && matrix.suite == 'ops' && runner.os != 'Windows'
119120
run: |
120121
coverage run --source thunder -m \
121-
pytest thunder/tests/test_ops.py thunder/tests/test_grad.py \
122+
pytest thunder/tests/test_ops.py \
123+
-v --datefmt="%Y%m%d-%H:%M:%S.%f" \
124+
--random-order-seed=$GITHUB_RUN_ID \
125+
-n 4 --durations=250
126+
127+
- name: Testing Grads
128+
if: matrix.python-version == '3.10' && matrix.suite == 'grads' && runner.os != 'Windows'
129+
run: |
130+
coverage run --source thunder -m \
131+
pytest thunder/tests/test_grad.py \
122132
-v --datefmt="%Y%m%d-%H:%M:%S.%f" \
123133
--random-order-seed=$GITHUB_RUN_ID \
124134
-n 4 --durations=250
@@ -129,7 +139,7 @@ jobs:
129139
run: |
130140
python -m pytest \
131141
thunder/tests/test_interpreter.py \
132-
-v --durations=50 --cov=thunder
142+
-v -n 4 --durations=50 --cov=thunder
133143
python -m pytest thunder/tests/test_jit_general.py -v --durations=50 --cov=thunder
134144
135145
- name: Statistics

0 commit comments

Comments
 (0)