mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
[Dist CI][BE] c10d gloo tests run in subprocess (#68504)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/68504 Per title ghstack-source-id: 143928767 Test Plan: CI Reviewed By: H-Huang Differential Revision: D32485100 fbshipit-source-id: a55687aea4af69e3830aee6f0278550c72f142c2
This commit is contained in:
parent
ddc22ea3b2
commit
9554ebe44e
1 changed files with 6 additions and 4 deletions
|
|
@ -464,6 +464,10 @@ def test_cuda_primary_ctx(test_module, test_directory, options):
|
|||
run_test_with_subprocess = functools.partial(run_test, extra_unittest_args=["--subprocess"])
|
||||
|
||||
|
||||
def get_run_test_with_subprocess_fn():
|
||||
return lambda test_module, test_directory, options: run_test_with_subprocess(test_module, test_directory, options)
|
||||
|
||||
|
||||
|
||||
def _test_cpp_extensions_aot(test_directory, options, use_ninja):
|
||||
if use_ninja:
|
||||
|
|
@ -613,10 +617,8 @@ CUSTOM_HANDLERS = {
|
|||
"test_cpp_extensions_aot_no_ninja": test_cpp_extensions_aot_no_ninja,
|
||||
"test_cpp_extensions_aot_ninja": test_cpp_extensions_aot_ninja,
|
||||
"distributed/test_distributed_spawn": test_distributed,
|
||||
"distributed/test_c10d_nccl": lambda test_module, test_directory, options:
|
||||
run_test_with_subprocess(
|
||||
test_module, test_directory, options
|
||||
),
|
||||
"distributed/test_c10d_nccl": get_run_test_with_subprocess_fn(),
|
||||
"distributed/test_c10d_gloo": get_run_test_with_subprocess_fn(),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue