Skip to content

[GPU] Support pointwise floor and ceil in GEMM fusions.#11912

Closed
sergachev wants to merge 2 commits intomainfrom
pointwise_floor_ceil
Closed

[GPU] Support pointwise floor and ceil in GEMM fusions.#11912
sergachev wants to merge 2 commits intomainfrom
pointwise_floor_ceil

Conversation

@sergachev
Copy link
Copy Markdown
Contributor

For this to work with Triton openxla/triton will need to include triton-lang/triton@62706e8.

@thomasjoerg thomasjoerg requested a review from Moerafaat May 6, 2024 12:34
@Moerafaat
Copy link
Copy Markdown
Member

The change looks good, though the needed Triton change would need to be included as you mentioned. I will cherry-pick your change internally so that it reflects on OpenXLA/Triton and then you can merge this change.

@sergachev sergachev marked this pull request as ready for review May 10, 2024 10:40
@Moerafaat
Copy link
Copy Markdown
Member

@sergachev The required dependency change now applies on top of OpenXLA/xla so this should be unblocked.

@sergachev sergachev force-pushed the pointwise_floor_ceil branch from 4a2e65e to 19c87d5 Compare May 10, 2024 10:42
@github-actions github-actions bot added the kokoro:force-run Forces CI to rerun label May 10, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label May 10, 2024
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request May 10, 2024
Imported from GitHub PR openxla/xla#11912

For this to work with Triton openxla/triton will need to include triton-lang/triton@62706e8.
Copybara import of the project:

--
37bc5f77e0eb1772ec0ae1430d54a48c626840be by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] Triton: support elementwise floor and ceil.

--
19c87d539078405122cdc9c9cfb2789e696317cc by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] cuDNN fusions: support elementwise floor and ceil.

Merging this change closes #11912

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#11912 from openxla:pointwise_floor_ceil 19c87d539078405122cdc9c9cfb2789e696317cc
PiperOrigin-RevId: 632445295
@sergachev
Copy link
Copy Markdown
Contributor Author

//xla/service/gpu:softmax_rewriter_triton_test fails, I'm looking at that

copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request May 10, 2024
Imported from GitHub PR openxla/xla#11912

For this to work with Triton openxla/triton will need to include triton-lang/triton@62706e8.
Copybara import of the project:

--
37bc5f77e0eb1772ec0ae1430d54a48c626840be by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] Triton: support elementwise floor and ceil.

--
19c87d539078405122cdc9c9cfb2789e696317cc by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] cuDNN fusions: support elementwise floor and ceil.

Merging this change closes #11912

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#11912 from openxla:pointwise_floor_ceil 19c87d539078405122cdc9c9cfb2789e696317cc
PiperOrigin-RevId: 632445295
@dimitar-asenov
Copy link
Copy Markdown
Member

Thanks @sergachev. Please ping me when you fix the issue and I will merge the PR internally.

@sergachev sergachev force-pushed the pointwise_floor_ceil branch from 19c87d5 to 9731974 Compare May 10, 2024 11:39
@github-actions github-actions bot added the kokoro:force-run Forces CI to rerun label May 10, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label May 10, 2024
@sergachev
Copy link
Copy Markdown
Contributor Author

@dimitar-asenov it's fixed now

@dimitar-asenov
Copy link
Copy Markdown
Member

@sergachev Actually, one more thing: Could you please add the new ops to this list:

https://github.com/openxla/xla/blob/main/xla/service/gpu/triton_support_test.cc#L193-L201

@dimitar-asenov dimitar-asenov self-requested a review May 10, 2024 12:32
@sergachev sergachev force-pushed the pointwise_floor_ceil branch from 9731974 to 7a21cb7 Compare May 10, 2024 13:50
@github-actions github-actions bot added the kokoro:force-run Forces CI to rerun label May 10, 2024
@kokoro-team kokoro-team removed the kokoro:force-run Forces CI to rerun label May 10, 2024
@sergachev
Copy link
Copy Markdown
Contributor Author

OK, I added them, but could not test - this test does not build in OSS because of the known problem with bazel backend tags; if I hack them it fails on unknown EXPECT_OK and so on.

copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request May 10, 2024
Imported from GitHub PR openxla/xla#11912

For this to work with Triton openxla/triton will need to include triton-lang/triton@62706e8.
Copybara import of the project:

--
37efe4abc9caae6033ac1aabcf1799f2f3c1b0c2 by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] Triton: support elementwise floor and ceil.

--
7a21cb770cdb08bdb4504fb23c4dc1d31126c01f by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] cuDNN fusions: support elementwise floor and ceil.

Merging this change closes #11912

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#11912 from openxla:pointwise_floor_ceil 7a21cb770cdb08bdb4504fb23c4dc1d31126c01f
PiperOrigin-RevId: 632445295
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request May 10, 2024
Imported from GitHub PR openxla/xla#11912

For this to work with Triton openxla/triton will need to include triton-lang/triton@62706e8.
Copybara import of the project:

--
37efe4abc9caae6033ac1aabcf1799f2f3c1b0c2 by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] Triton: support elementwise floor and ceil.

--
7a21cb770cdb08bdb4504fb23c4dc1d31126c01f by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] cuDNN fusions: support elementwise floor and ceil.

Merging this change closes #11912

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#11912 from openxla:pointwise_floor_ceil 7a21cb770cdb08bdb4504fb23c4dc1d31126c01f
PiperOrigin-RevId: 632445295
copybara-service bot pushed a commit to tensorflow/tensorflow that referenced this pull request May 10, 2024
Imported from GitHub PR openxla/xla#11912

For this to work with Triton openxla/triton will need to include triton-lang/triton@62706e8.
Copybara import of the project:

--
37efe4abc9caae6033ac1aabcf1799f2f3c1b0c2 by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] Triton: support elementwise floor and ceil.

--
7a21cb770cdb08bdb4504fb23c4dc1d31126c01f by Ilia Sergachev <isergachev@nvidia.com>:

[GPU] cuDNN fusions: support elementwise floor and ceil.

Merging this change closes #11912

PiperOrigin-RevId: 632495980
@sergachev sergachev deleted the pointwise_floor_ceil branch May 16, 2024 14:56
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.

6 participants