Skip to content

Commit

Permalink
[ez] functorch/test_vmap and test_dataloader to run in parallel (pyto…
Browse files Browse the repository at this point in the history
…rch#125597)

Also mark test_svd serial in linalg to see if it helps with the flakiness
Pull Request resolved: pytorch#125597
Approved by: https://github.com/huydhn, https://github.com/ZainRizvi
  • Loading branch information
clee2000 authored and pytorchmergebot committed May 8, 2024
1 parent bd26355 commit 6f619cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions test/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ def __contains__(self, item):
"nn/test_pooling",
"nn/test_convolution", # Doesn't respect set_per_process_memory_fraction, results in OOM for other tests in slow gradcheck
"distributions/test_distributions",
"functorch/test_vmap", # OOM
"test_fx", # gets SIGKILL
"test_dataloader", # frequently hangs for ROCm
"functorch/test_memory_efficient_fusion", # Cause CUDA OOM on ROCm
"test_utils", # OOM
"test_sort_and_select", # OOM
Expand Down
3 changes: 2 additions & 1 deletion test/test_linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
TEST_WITH_ROCM, IS_FBCODE, IS_REMOTE_GPU, iter_indices,
make_fullrank_matrices_with_distinct_singular_values,
freeze_rng_state, IS_ARM64, IS_SANDCASTLE, TEST_OPT_EINSUM, parametrize, skipIfTorchDynamo,
setBlasBackendsToDefaultFinally, setLinalgBackendsToDefaultFinally)
setBlasBackendsToDefaultFinally, setLinalgBackendsToDefaultFinally, serialTest)
from torch.testing._internal.common_device_type import \
(instantiate_device_type_tests, dtypes, has_cusolver, has_hipsolver,
onlyCPU, skipCUDAIf, skipCUDAIfNoMagma, skipCPUIfNoLapack, precisionOverride,
Expand Down Expand Up @@ -2485,6 +2485,7 @@ def run_subtest(actual_rank, matrix_size, batches, device, svd_lowrank, **option
@precisionOverride({torch.float: 1e-4, torch.cfloat: 2e-4})
@setLinalgBackendsToDefaultFinally
@dtypes(*floating_and_complex_types())
@serialTest()
def test_svd(self, device, dtype):
# tests linalg.svd, svd, linalg.svdvals
make_arg = partial(make_tensor, dtype=dtype, device=device)
Expand Down

0 comments on commit 6f619cc

Please sign in to comment.