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

Add support for MetalLib contained in a Mach-O multi-architecture binary #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nick-botticelli
Copy link

This is a new .metallib format present in at least macOS 14.0. This binary is accompanied by other GPU-specific binaries (likely as an optimization; maybe this Metal 3 feature?).

The code is not the best; probably the most code I've written at once in Python. I have successfully tested it with both the old .metallib format and the new Mach-O .metallib format. Let me know what you think of this PR.

This is a new .metallib format present in at least macOS 14.0. This
binary is accompanied by other GPU-specific binaries (likely as an
optimization).

The tool will also now output a warning in the theoretical scenario
of the Mach-O binary containing GPU code but no MetalLib
architecture.
@zhuowei
Copy link
Owner

zhuowei commented Jun 29, 2023

Thank you so much!

I didn't know these existed: I last looked at native shader binaries two years ago (https://github.com/zhuowei/AGXShaderExplorer), before they introduced precompiling to native.

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.

2 participants