mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[ROCm] enable HIP IPC
Enables code paths that use hipIpc* functions. Also enables test_multiprocessing.py. Pull Request resolved: https://github.com/pytorch/pytorch/pull/74383 Approved by: https://github.com/osalpekar
This commit is contained in:
committed by
PyTorch MergeBot
parent
be1eac0803
commit
956a028b55
@ -258,7 +258,7 @@ class TestMultiprocessing(TestCase):
|
||||
self.assertTrue(e.is_set())
|
||||
self.assertTrue(data[0].eq(4).all())
|
||||
self.assertTrue(data[1].eq(4).all())
|
||||
p.join(1)
|
||||
p.join(100)
|
||||
self.assertFalse(p.is_alive())
|
||||
|
||||
def test_receive():
|
||||
@ -280,7 +280,7 @@ class TestMultiprocessing(TestCase):
|
||||
# collect them properly
|
||||
del t1, t2
|
||||
e.set()
|
||||
p.join(1)
|
||||
p.join(100)
|
||||
self.assertFalse(p.is_alive())
|
||||
|
||||
with leak_checker(self) as lc:
|
||||
@ -753,7 +753,7 @@ if __name__ == "__main__":
|
||||
|
||||
self.assertEqual(var.data, torch.ones(5, 5, device=device))
|
||||
self.assertEqual(var.grad.data, torch.ones(5, 5, device=device) * 4)
|
||||
p.join(1)
|
||||
p.join(100)
|
||||
self.assertFalse(p.is_alive())
|
||||
|
||||
# Check sharing a cudaMalloc allocation with different types of storage.
|
||||
|
Reference in New Issue
Block a user