Skip to content

[SPMD] Use d2d replication via CopyToDevice - #4336

Merged
yeounoh merged 1 commit into
masterfrom
spmd_copy_to_device
Dec 15, 2022
Merged

yeounoh merged 1 commit into
masterfrom
spmd_copy_to_device

Conversation

@yeounoh

@yeounoh yeounoh commented Dec 15, 2022

Copy link
Copy Markdown
Contributor

Introduce CopyToDevice in PjRtComputationClient to support d2d data transfer. The feature is tested as part of TEST_F(XLAShardingTest, InputHandler) for correctness.

@yeounoh yeounoh added runtime distributed SPMD and other distributed things. labels Dec 15, 2022
@yeounoh yeounoh self-assigned this Dec 15, 2022

@jonb377 jonb377 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, thanks Yeounoh! 🔥

@will-cromar will-cromar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. Thanks!

@JackCaoG

Copy link
Copy Markdown
Collaborator

Is this mainly to avoid the device->host->device overhead? Does this only works within the addressable device?

@yeounoh

yeounoh commented Dec 15, 2022

Copy link
Copy Markdown
Contributor Author

Is this mainly to avoid the device->host->device overhead? Does this only works within the addressable device?

Yes, these are highlighted with the two XLA_CHECK

@yeounoh
yeounoh merged commit 5eaea4c into master Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

distributed SPMD and other distributed things. runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants