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:GPU] Explicit algorithm support for dot instructions #63429

Merged
merged 1 commit into from Mar 12, 2024

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Mar 11, 2024

[XLA:GPU] Explicit algorithm support for dot instructions

Now we can set PrecisionConfig::algorithm instead of PrecisionConfig::operand_precision.

The old PrecisionConfig::operand_precision is also still supported.
It would be a big change to remove it or even convert it to algorithm internally (because we support many type combinations and many tests would need to be updated).

PrecisionConfig::algorithm is not yet added to StableHLO, so we can only use it if we feed an HLO to XLA directly.

Future plans:

  • We would like to support it in StableHLO as well.
  • There are some plans to add similar algorithm support for convolution as well.
  • The code around matmul_utils.cc is a bit convoluted, so it may be cleaned up later.
  • We may write better tests for the algorithm support (actually checking if the correct code runs).

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#10011 from ROCm:ci_cusolver_fix_240227 d965fd3a817838c4b7440868afb6884ea011b078

Now we can set PrecisionConfig::algorithm instead of PrecisionConfig::operand_precision.

The old PrecisionConfig::operand_precision is also still supported.
It would be a big change to remove it or even convert it to algorithm internally (because we support many type combinations and many tests would need to be updated).

PrecisionConfig::algorithm is not yet added to StableHLO, so we can only use it if we feed an HLO to XLA directly.

Future plans:

- We would like to support it in StableHLO as well.
- There are some plans to add similar algorithm support for convolution as well.
- The code around matmul_utils.cc is a bit convoluted, so it may be cleaned up later.
- We may write better tests for the algorithm support (actually checking if the correct code runs).

PiperOrigin-RevId: 614996860
@copybara-service copybara-service bot merged commit 7d6870d into master Mar 12, 2024
@copybara-service copybara-service bot deleted the test_612391497 branch March 12, 2024 12:46
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