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

Feature request: Support for dynamic user-defined kernel compilation #1025

Open
spichardo opened this issue Apr 22, 2024 · 0 comments
Open

Comments

@spichardo
Copy link

I made a comment on this on the Discord channel a few weeks ago, but I think it won't hurt to make an entry in Github.

For those exploring MLX for non-ML related scientific GPU-based calculations, having the possibility of compile their own GPU kernels is a critical feature to develop highly customized GPU computations.

Thanks to the comments in the Discord channel, there was a mention to the existing extensions feature in MLX. However, these extensions are a bit too static to implement and not as convenient as in other libraries such as cupy, pyopencl, pycuda or py-metal-compute, where you can compile GPU kernels on the go. The latter library covers the basics for dynamic kernel compilation for Metal, but the attractiveness of MLX is the ever growing functionality for many mathematical operations, and of course the possibility to integrate with ML-algorithms.

Having the capabilities of MLX for many array operations (using a numpy-based syntax) and dynamic user-defined kernels would be definitively super useful

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

No branches or pull requests

1 participant