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

Register custom call with CUDA plugin #7219

Merged
merged 8 commits into from
Jun 12, 2024
Merged

Register custom call with CUDA plugin #7219

merged 8 commits into from
Jun 12, 2024

Conversation

bhavya01
Copy link
Collaborator

@bhavya01 bhavya01 commented Jun 7, 2024

To integrate Triton kernels with HLO graph, we need to go through a custom call. PJRT CUDA Plugin uses a different code path to register custom calls. This PR adds the support to register custom call handlers for CUDA plugin.

CI changes:
Triton only works with GPUs with compute_capability > 7 and it requires torch with CUDA support. So, I added these tests to the workflow _test_requiring_torch_cuda.yml with new runners and updated the build files to build torch and PJRT CUDA plugin with the right GPU architecture support.

@bhavya01 bhavya01 marked this pull request as ready for review June 8, 2024 02:27
@bhavya01 bhavya01 requested a review from will-cromar June 8, 2024 17:08
@bhavya01 bhavya01 self-assigned this Jun 11, 2024
@vanbasten23
Copy link
Collaborator

Mostly lgtm with minor comments

Copy link
Collaborator

@alanwaketan alanwaketan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@bhavya01 bhavya01 merged commit 86d8967 into master Jun 12, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants