-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Is it possible to restrict the dependencies of 'mlx.metallib' at compile time? #163
Comments
What dependencies are you trying to remove? You can build without metal |
My main use case is tensor manipulation, but I need to leverage the advantages of universal memory to reduce the cost of memory copying. I wonder are there ways to avoid bundling |
Thinking about possible methods, an option is to just bundle the metal source code and have the metal framework compile everything on the fly from the source - this might add some runtime overhead though (but also you will only have compiled versions of the kernels that you are using, so that might be a benefit depending on the device) Beyond that, it will have to depend on your use case and what dependancies you want to avoid |
I primarily want to use it for iOS/macOS apps. If I include |
@tqtifnypmb -- how were you able to include mlx.metallib into the app? I cannot do it. Please see my bug report here: #1286 P.S. You can make the binary much smaller if you don't pre-compile the shaders. See "Binary Size Minimization" here: https://ml-explore.github.io/mlx/build/html/install.html |
I think that would be nice for embed devices
The text was updated successfully, but these errors were encountered: