[ROCm] unskip external streams tests (#80922)

These two tests are passing for ROCm 5.1.1 and 5.2.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/80922
Approved by: https://github.com/cpuhrsch
This commit is contained in:
Jeff Daily 2022-07-08 21:29:29 +00:00 committed by PyTorch MergeBot
parent c9a0204ef4
commit ff6655defb

View file

@ -1351,7 +1351,6 @@ class TestCuda(TestCase):
out = cudart.cudaStreamDestroy(stream.value)
self.assertEqual(out, 0)
@skipIfRocm
def test_external_streams(self):
device = torch.cuda.device(0)
with self._get_external_stream(device) as stream_v:
@ -1359,7 +1358,6 @@ class TestCuda(TestCase):
self.assertEqual(stream_v, ext_stream.cuda_stream)
self.assertEqual(ext_stream.device.index, device.idx)
@skipIfRocm
@unittest.skipIf(not TEST_MULTIGPU, "detected only one GPU")
def test_external_streams_multi_device(self):
device = torch.cuda.device(1)