Skip to content

Commit 6be1d5d

Browse files
jithunnair-amddnikolaev-amd
authored andcommitted
skipIfRocm needs msg parameter
1 parent a390471 commit 6be1d5d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/test_cuda.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2327,9 +2327,8 @@ def test_graph_capture_oom(self):
23272327
with torch.cuda.graph(torch.cuda.CUDAGraph()):
23282328
torch.zeros(2**40, device="cuda")
23292329

2330-
@unittest.skipIf(
2331-
not TEST_CUDA_GRAPH, "CUDA >= 11.0 or ROCM >= 5.3 required for graphs"
2332-
)
2330+
@unittest.skipIf(not TEST_CUDA_GRAPH, "CUDA >= 11.0 or ROCM >= 5.3 required for graphs")
2331+
@skipIfRocm(msg="TODO: temp skip on ROCm 6.2")
23332332
@serialTest()
23342333
def test_repeat_graph_capture_cublas_workspace_memory(self):
23352334
(x, y, z) = 1024, 512, 64
@@ -3139,9 +3138,8 @@ def forward(self, x):
31393138
model_graphed({"x": real_inputs[0]}), model_control({"x": real_inputs[0]})
31403139
)
31413140

3142-
@unittest.skipIf(
3143-
not TEST_CUDA_GRAPH, "CUDA >= 11.0 or ROCM >= 5.3 required for graphs"
3144-
)
3141+
@unittest.skipIf(not TEST_CUDA_GRAPH, "CUDA >= 11.0 or ROCM >= 5.3 required for graphs")
3142+
@skipIfRocm(msg="TODO: temp skip on ROCm 6.2")
31453143
def test_graph_make_graphed_callables_same_pool(self):
31463144
torch.manual_seed(5)
31473145
torch.cuda.manual_seed(5)

0 commit comments

Comments
 (0)