Skip to content

Conversation

copybara-service[bot]
Copy link

[JAX] Wrap triton_call custom call using the FFI.

We've been putting off porting the triton_call kernel to the FFI because it's possible that we could make better use of the FFI features to improve the design. However, XLA is planning to remove support for legacy custom calls in a few months, so we need to update to the newer API. As a stopgap solution, this change wraps the existing kernel so that it can be directly called using the new API version without any major refactoring. This will support XLA's deprecation plan without holding them up with our design discussions!

@copybara-service copybara-service bot force-pushed the test_766642128 branch 3 times, most recently from ad63665 to e2b8b1a Compare June 3, 2025 14:30
We've been putting off porting the `triton_call` kernel to the FFI because it's possible that we could make better use of the FFI features to improve the design. However, XLA is planning to remove support for legacy custom calls in a few months, so we need to update to the newer API. As a stopgap solution, this change wraps the existing kernel so that it can be directly called using the new API version without any major refactoring. This will support XLA's deprecation plan without holding them up with our design discussions!

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