Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XLA:TPU] Support output streaming and refactor TryOutputStreaming into a bottoms-up approach. #66989

Merged
merged 1 commit into from May 10, 2024

Conversation

copybara-service[bot]
Copy link

[XLA:TPU] Support output streaming and refactor TryOutputStreaming into a bottoms-up approach.

Previously, output streaming took a top-down approach which indiscriminately checks if a MoveToHost custom call would trace down to an output marked with host memory space. This did not work when a dynamic-update-slice existed between the MTH call and the output. This CL fixes this problem by handling output streaming before other MTH calls, while also improving efficiency with the bottoms-up approach so we only trace a single path in the graph.

@copybara-service copybara-service bot force-pushed the exported_pr_630885979 branch 3 times, most recently from 6938986 to b3d4af5 Compare May 9, 2024 23:17
…to a bottoms-up approach.

Previously, output streaming took a top-down approach which indiscriminately checks if a MoveToHost custom call would trace down to an output marked with host memory space. This did not work when a dynamic-update-slice existed between the MTH call and the output. This CL fixes this problem by handling output streaming before other MTH calls, while also improving efficiency with the bottoms-up approach so we only trace a single path in the graph.

PiperOrigin-RevId: 632318740
@copybara-service copybara-service bot closed this May 10, 2024
@copybara-service copybara-service bot deleted the exported_pr_630885979 branch May 10, 2024 00:54
@copybara-service copybara-service bot merged commit 972a7e1 into master May 10, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant