[ez] Serial when NUM_PROCS is 1 (#117977)

Makes it easier to understand whats going on
Pull Request resolved: https://github.com/pytorch/pytorch/pull/117977
Approved by: https://github.com/huydhn
This commit is contained in:
Catherine Lee 2024-01-22 23:11:41 +00:00 committed by PyTorch MergeBot
parent f9fca33baf
commit cef5b93f28

View file

@ -1321,6 +1321,7 @@ def must_serial(file: Union[str, ShardedTest]) -> bool:
or file in CI_SERIAL_LIST
or file in JIT_EXECUTOR_TESTS
or file in ONNX_SERIAL_LIST
or NUM_PROCS == 1
)