Skip to content

Commit a8de0d8

Browse files
jeffdailyfacebook-github-bot
authored andcommitted
empty caching allocator before test_avg_pool2d large subtest (pytorch#63528)
Summary: Otherwise, unrecoverable OOM occurs on MI25. Fixes broken ROCm CI test1. Pull Request resolved: pytorch#63528 Reviewed By: malfet, zhouzhuojie Differential Revision: D30459151 Pulled By: walterddr fbshipit-source-id: 63e205c4f486fcbdd514cfb0ed8e38584f894585
1 parent b008bb4 commit a8de0d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_nn.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13936,6 +13936,9 @@ def helper(n, c, h, w, kernel_size, stride=None,
1393613936
helper(4, 8, 8, 8, 3, count_include_pad=False, padding=2, stride=2)
1393713937
helper(4, 8, 8, 8, 3, divisor_override=42)
1393813938
helper(4, 8, 8, 8, 7)
13939+
# ROCm 16GB MI25 hits OOM error. Clear caching allocator prior to running large subtest.
13940+
if TEST_WITH_ROCM and 'cuda' in device:
13941+
torch.cuda.empty_cache()
1393913942
helper(200, 512, 28, 28, 2)
1394013943
helper(4, 8, 7, 7, 3, stride=1)
1394113944
helper(4, 8, 7, 7, 3, padding=2, stride=1)

0 commit comments

Comments
 (0)