-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RollForward][XLA][HostOffloader] Remove redundant copies to and from…
… host for host offloaded computation outputs The simple algorithm tracks usages of all outputs of each host offloaded computation. For each: - If they are ONLY used on the host and they are outputs of the entry computation, it sets the memory space to Host. - If they are ONLY used on the host, but are temporaries, no changes are made. - For cases replaced, if a MoveToHost is found (NOTE: that the algorithm does not explicitly check that any exist nor that all paths lead to a MoveToHost) for an output that is only used on the host, we simply replace the usage. Reverts 4df18bd PiperOrigin-RevId: 666487090
- Loading branch information
1 parent
21f90d1
commit 11da26a
Showing
6 changed files
with
700 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.