Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions examples/distributed/all_reduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ def main() -> None:
Sets up the distributed environment, initializes CUDA devices, and runs the
all-reduce test, and then clean up.
"""
# Only NVSHMEM backend implements `get_remote_tensor` for now.
symm_mem.set_backend("NVSHMEM")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious should we explicitly set it to "cuda"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that's the default already

rank = int(os.environ["LOCAL_RANK"])
torch.manual_seed(42 + rank)
device = torch.device(f"cuda:{rank}")
Expand Down
1 change: 0 additions & 1 deletion examples/distributed/allreduce_bias_rmsnorm.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,6 @@ def test(N: int, D: int, device: torch.device, dtype: torch.dtype) -> None:


def main() -> None:
symm_mem.set_backend("NVSHMEM")
rank = int(os.environ["LOCAL_RANK"])
torch.manual_seed(42 + rank)
device = torch.device(f"cuda:{rank}")
Expand Down
1 change: 0 additions & 1 deletion examples/distributed/matmul_reduce_scatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def test(M: int, N: int, K: int, device: torch.device, dtype: torch.dtype) -> No


def main() -> None:
symm_mem.set_backend("NVSHMEM")
rank = int(os.environ["LOCAL_RANK"])
torch.manual_seed(42 + rank)
device = torch.device(f"cuda:{rank}")
Expand Down
Loading