[go: nahoru, domu]

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] Make SoftmaxRewriterTriton use the new IsTritonSupportedInstruction, as opposed to the one in legacy_triton::. #70895

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

copybara-service[bot]
Copy link
@copybara-service copybara-service bot commented Jul 5, 2024

[XLA:GPU] Make SoftmaxRewriterTriton use the new IsTritonSupportedInstruction, as opposed to the one in legacy_triton::.

Notably, the old function conflated support with "support enabled by running
FloatNormalization". Therefore, this change appears to impact what can be
fused end-to-end, but that should not be the case provided FloatNormalization
is run appropriately.

Since I had to fix the tests in this direction, I took the opportunity to
edit tests in order to remain relevant, and to delete the ones that no longer
seemed useful. All in all, the tests now focus on the properties of the matcher
itself, instead of also testing Triton support which now has its own
disentangled logic. (Except for a couple of dedicated tests that ensure that
Triton support is indeed taken into account when deciding to fuse a diamond.)

@copybara-service copybara-service bot force-pushed the exported_pr_649644761 branch 4 times, most recently from a495e9e to 9c4b056 Compare July 10, 2024 12:59
…Instruction`, as opposed to the one in `legacy_triton::`.

Notably, the old function conflated support with "support enabled by running
`FloatNormalization`". Therefore, this change appears to impact what can be
fused end-to-end, but that should not be the case provided `FloatNormalization`
is run appropriately.

Since I had to fix the tests in this direction, I took the opportunity to
edit tests in order to remain relevant, and to delete the ones that no longer
seemed useful. All in all, the tests now focus on the properties of the matcher
itself, instead of also testing Triton support which now has its own
disentangled logic. (Except for a couple of dedicated tests that ensure that
Triton support is indeed taken into account when deciding to fuse a diamond.)

PiperOrigin-RevId: 651037143
@copybara-service copybara-service bot closed this Jul 10, 2024
@copybara-service copybara-service bot deleted the exported_pr_649644761 branch July 10, 2024 16:09
@copybara-service copybara-service bot merged commit f46a616 into master Jul 10, 2024
1 check 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