Skip to content

Commit c3a5aed

Browse files
malfetfacebook-github-bot
authored andcommittedSep 24, 2020
Run pytorch_core CUDA tests on GPU using TPX
Summary: Modify contbuild to disable sanitizers, add option to run "cuda" test using TPX RE (Note: this ignores all push blocking failures!) Test Plan: CI Reviewed By: walterddr, cspanda Differential Revision: D23854578 fbshipit-source-id: 327d7cc3655c17034a6a7bc78f69967403290623
1 parent c211a91 commit c3a5aed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎test/test_cuda.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from torch.testing._internal.common_methods_invocations import tri_tests_args, tri_large_tests_args, \
2222
_compare_trilu_indices, _compare_large_trilu_indices
2323
from torch.testing._internal.common_utils import TestCase, get_gpu_type, freeze_rng_state, run_tests, \
24-
NO_MULTIPROCESSING_SPAWN, skipIfRocm, load_tests, \
24+
NO_MULTIPROCESSING_SPAWN, skipIfRocm, load_tests, IS_SANDCASTLE, \
2525
slowTest, skipCUDANonDefaultStreamIf, TEST_WITH_ROCM, TEST_NUMPY
2626
from torch.testing._internal.autocast_test_lists import AutocastTestLists
2727

@@ -1732,6 +1732,7 @@ def test_streaming_backwards_device_transfer(self):
17321732
self.assertTrue(b.grad.sum().item() == 4 * size)
17331733

17341734
@unittest.skipIf(not TEST_MULTIGPU, "only one GPU detected")
1735+
@unittest.skipIf(not IS_SANDCASTLE, "Does not work on Sandcastle")
17351736
def test_cuda_init_race(self):
17361737
# See https://github.com/pytorch/pytorch/issues/16559
17371738
import subprocess

0 commit comments

Comments
 (0)
Please sign in to comment.