8000 Register hpu device to fake backend (#156076) · pytorch/pytorch@6835ba1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6835ba1

Browse files
amathewcpytorchmergebot
authored andcommitted
Register hpu device to fake backend (#156076)
## MOTIVATION This PR intends to add hpu ( Intel Gaudi) also to the list of devices that will be supported by the "fake" distributed backend and the process group that will be created. ## CHANGES - Add "hpu" to the list of devices @ankurneog, @EikanWang Pull Request resolved: #156076 Approved by: https://github.com/d4l3k, https://github.com/EikanWang, https://github.com/albanD
1 parent cc410d3 commit 6835ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/testing/_internal/distributed/fake_pg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ def _create_fake_pg(prefix_store, rank, world_size, timeout):
2525
return FakeProcessGroup(rank, world_size)
2626

2727

28-
dist.Backend.register_backend("fake", _create_fake_pg, devices=["cpu", "cuda"])
28+
dist.Backend.register_backend("fake", _create_fake_pg, devices=["cpu", "cuda", "hpu"])

0 commit comments

Comments
 (0)
0