Skip to content

Commit f30dce8

Browse files
committed
run test_torchinductor without parallelism
1 parent 416ad1b commit f30dce8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

recipe/meta.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -428,9 +428,6 @@ outputs:
428428
"test/test_torch.py",
429429
"test/test_xnnpack_integration.py",
430430
]) %}
431-
# tests torch.compile; avoid on aarch because it adds >4h in test runtime in emulation;
432-
# they add a lot of runtime (15->60min on windows), so run them for only one python version
433-
{% set tests = tests ~ " test/inductor/test_torchinductor.py" %} # [py==312 and not aarch64]
434431

435432
{% set skips = "(TestTorch and test_print)" %}
436433
# minor tolerance violations
@@ -487,6 +484,11 @@ outputs:
487484
# disable hypothesis because it randomly yields health check errors
488485
- python -m pytest -n 2 -v {{ tests }} -k "not ({{ skips }})" -m "not hypothesis" --durations=50 # [unix and (not aarch64 or py==312)]
489486
- python -m pytest -v -s {{ tests }} -k "not ({{ skips }})" -m "not hypothesis" --durations=50 # [win]
487+
# tests torch.compile; avoid on aarch because it adds >4h in test runtime in emulation;
488+
# they add a lot of runtime (15->60min on windows), so run them for only one python version;
489+
# turn off parallelism because some tests themselves require openmp
490+
- export OMP_NUM_THREADS=1 # [unix]
491+
- pytest -n 1 -v test/inductor/test_torchinductor.py # [py==312 and not aarch64]
490492

491493
# regression test for https://github.com/conda-forge/pytorch-cpu-feedstock/issues/329, where we picked up
492494
# duplicate `.pyc` files due to newest py-ver (3.13) in the build environment not matching the one in host;

0 commit comments

Comments
 (0)