Conversation
|
Interesting approach! I like the fact that there is a plugin metal compiler that we could use. The reason the NAX piece doesn't build is because these arguments are missing: I think the very large output size indicates that this is building all of the .metal files, but not all of them are meant to build this way. Perhaps this is picking up all the metal files in Cmlx/mlx rather than just the ones in Cmlx/mlx-generated (which is done to produce working |
|
Thanks for the feedback. Even though it is large, at least it appears to work in my test project. I just do not know, what a reasonable size would be. You mean, only the Cmlx/mlx-generated files are sufficient for metal and header files ? Or is there still a mix of mlx and mlx_generated files ? The mlx_generated bf16.h version appears to be the wrong one. It includes algorithm header, which is not available in the metal SDK. I could not figure out, how the build system shall work. Perhaps you can briefly explain, so I can try to fix this. I will give the missing compiler switch a try, too. If successful, I need to create a new PR with a more recent baseline. |
In a build from
It excludes the metal shaders directory in I am not sure what version you are forked from, but here is
Perhaps you are forked from the latest tag? That said, I don't see an "algorithm" header in any version. |
|
Thanks. I have successfully made the changes to make it work with HEAD. Check #313 as new PR. |
Proposed changes
This is just a PoC for usage of Metal Compiler Plugin. It breaks with NAE support due to upstream compile error.
Size is 225.428.760 Bytes.
Moreover loading the library may need investigation, because macOS/iOS apps work with bundles.
Checklist
Put an
xin the boxes that apply.pre-commit run --all-filesto format my code / installed pre-commit prior to committing changes