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

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

Closed
wants to merge 1 commit into from

Conversation

yliu120
Copy link
Contributor

@yliu120 yliu120 commented Mar 20, 2025

  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-service bot pushed a commit that referenced this pull request Mar 20, 2025
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
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit that referenced this pull request Mar 20, 2025
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
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Mar 20, 2025
Imported from GitHub PR openxla/xla#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:

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

cleanup

Merging this change closes #23964

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#23964 from yliu120:cleanup_call_inliner 1ee6a74ec622d2a152e52f3f3e793e6a2f7af256
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit that referenced this pull request Mar 20, 2025
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
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Mar 20, 2025
Imported from GitHub PR openxla/xla#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:

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

cleanup

Merging this change closes #23964

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#23964 from yliu120:cleanup_call_inliner 1ee6a74ec622d2a152e52f3f3e793e6a2f7af256
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit that referenced this pull request Mar 20, 2025
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
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Mar 20, 2025
Imported from GitHub PR openxla/xla#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:

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

cleanup

Merging this change closes #23964

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#23964 from yliu120:cleanup_call_inliner 1ee6a74ec622d2a152e52f3f3e793e6a2f7af256
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit that referenced this pull request Mar 20, 2025
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
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Mar 20, 2025
Imported from GitHub PR openxla/xla#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:

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

cleanup

Merging this change closes #23964

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#23964 from yliu120:cleanup_call_inliner 1ee6a74ec622d2a152e52f3f3e793e6a2f7af256
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit that referenced this pull request Mar 21, 2025
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
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Mar 21, 2025
Imported from GitHub PR openxla/xla#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:

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

cleanup

Merging this change closes #23964

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#23964 from yliu120:cleanup_call_inliner 1ee6a74ec622d2a152e52f3f3e793e6a2f7af256
PiperOrigin-RevId: 738911497
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request Mar 21, 2025
Imported from GitHub PR openxla/xla#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:

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

cleanup

Merging this change closes #23964

PiperOrigin-RevId: 739113714
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.

3 participants