Skip to content

[XLA:GPU] Fix RaggedAllToAll crash and compiler SIGFPE on zero updates.#2803

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_930640978
Open

[XLA:GPU] Fix RaggedAllToAll crash and compiler SIGFPE on zero updates.#2803
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_930640978

Conversation

@copybara-service

Copy link
Copy Markdown

[XLA:GPU] Fix RaggedAllToAll crash and compiler SIGFPE on zero updates.

  • Add guard in RaggedAllToAllThunk::RunCollective to skip execution if num_total_updates is 0.
  • Add guard in RaggedAllToAllDecomposer and RaggedAllToAllMultiHostDecomposer to replace the instruction with output operand if num_total_updates is 0, avoiding division by zero in the decomposer.

- Add guard in `RaggedAllToAllThunk::RunCollective` to skip execution if `num_total_updates` is 0.
- Add guard in `RaggedAllToAllDecomposer` and `RaggedAllToAllMultiHostDecomposer` to replace the instruction with output operand if num_total_updates is 0, avoiding division by zero in the decomposer.

PiperOrigin-RevId: 930640978
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