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

PR #23964: Cleans up call inliner in the XLA shared code path #24002

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

copybara-service[bot]
Copy link

PR #23964: Cleans up call inliner in the XLA shared code path

Imported from GitHub PR #23964

  1. Remove all the GPU-specific logic inside Call inliner.
  2. Rewrite the IsInlineableCallOp to make the code more readable and less error-prone. The previous impl has some implicit priorities between all the checks and leads to bug.
  3. Removes the test for stream annotation.

Discussed with @yashk2810 , actually now we have two controls over the compute_on boxes from JAX. The flag in XLA xla_gpu_experimental_stream_annotation seems to be confusing and we should remove that.

Because the control is explicitly placed in JAX, but users will get confused if there is another flag to control this.
Copybara import of the project:

--
1ee6a74 by Yunlong Liu [email protected]:

cleanup

Merging this change closes #23964

FUTURE_COPYBARA_INTEGRATE_REVIEW=#23964 from yliu120:cleanup_call_inliner 1ee6a74

@copybara-service copybara-service bot force-pushed the test_738911497 branch 5 times, most recently from 925f0f5 to 3790ccb Compare March 21, 2025 09:05
Imported from GitHub PR #23964

1. Remove all the GPU-specific logic inside Call inliner.
2. Rewrite the IsInlineableCallOp to make the code more readable and less error-prone. The previous impl has some implicit priorities between all the checks and leads to bug.
3. Removes the test for stream annotation.

Discussed with @yashk2810 , actually now we have two controls over the `compute_on` boxes from JAX. The flag in XLA `xla_gpu_experimental_stream_annotation` seems to be confusing and we should remove that.

Because the control is explicitly placed in JAX, but users will get confused if there is another flag to control this.
Copybara import of the project:

--
1ee6a74 by Yunlong Liu <[email protected]>:

cleanup

Merging this change closes #23964

COPYBARA_INTEGRATE_REVIEW=#23964 from yliu120:cleanup_call_inliner 1ee6a74
PiperOrigin-RevId: 739113714
@copybara-service copybara-service bot merged commit 8eb6944 into main Mar 21, 2025
@copybara-service copybara-service bot deleted the test_738911497 branch March 21, 2025 19:17
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.

1 participant