Skip to content

Commit

Permalink
Skip AOT Inductor test_cond_* tests on ROCm (pytorch#121522)
Browse files Browse the repository at this point in the history
Summary: The newly added tests in pytorch#121120 are failing in the `ciflow/periodic` jobs. Here we skip those on ROCm to avoid the need to disable those tests manually on ROCm.

Test Plan:

```
$ python test/inductor/test_aot_inductor.py -k test_cond_nested
...
----------------------------------------------------------------------
Ran 6 tests in 72.122s

OK
```

Pull Request resolved: pytorch#121522
Approved by: https://github.com/huydhn, https://github.com/malfet
ghstack dependencies: pytorch#121120
  • Loading branch information
aakhundov authored and pytorchmergebot committed Mar 8, 2024
1 parent 53d5276 commit 75bb049
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/inductor/test_aot_inductor.py
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ def forward(self, x, y):
)
self.check_model(Repro(), example_inputs)

@skipIfRocm
def test_cond_simple(self):
inputs = (
torch.randn((10, 20), device=self.device),
Expand All @@ -774,6 +775,7 @@ def test_cond_simple(self):
dynamic_shapes=dynamic_shapes,
)

@skipIfRocm
def test_cond_nested(self):
inputs = (
torch.randn((10, 20), device=self.device),
Expand All @@ -795,6 +797,7 @@ def test_cond_nested(self):
dynamic_shapes=dynamic_shapes,
)

@skipIfRocm
def test_cond_with_parameters(self):
inputs = (torch.randn((10, 20), device=self.device),)
dim0_abc = Dim("s0", min=2, max=1024)
Expand All @@ -808,6 +811,7 @@ def test_cond_with_parameters(self):
dynamic_shapes=dynamic_shapes,
)

@skipIfRocm
def test_cond_with_reinterpret_view_inputs_outputs(self):
inputs = (
torch.randn((10, 20), device=self.device),
Expand All @@ -825,6 +829,7 @@ def test_cond_with_reinterpret_view_inputs_outputs(self):
dynamic_shapes=dynamic_shapes,
)

@skipIfRocm
def test_cond_with_multiple_outputs(self):
inputs = (
torch.randn((10, 20), device=self.device),
Expand All @@ -845,6 +850,7 @@ def test_cond_with_multiple_outputs(self):
dynamic_shapes=dynamic_shapes,
)

@skipIfRocm
def test_cond_with_outer_code_before_after(self):
inputs = (
torch.randn((10, 20), device=self.device),
Expand All @@ -862,6 +868,7 @@ def test_cond_with_outer_code_before_after(self):
dynamic_shapes=dynamic_shapes,
)

@skipIfRocm
def test_cond_use_buffers_from_outer_scope(self):
inputs = (
torch.randn((10, 20), device=self.device),
Expand Down

0 comments on commit 75bb049

Please sign in to comment.