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 METALLIB output support for the CLI #40

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

TheSpydog
Copy link
Collaborator

@TheSpydog TheSpydog commented Oct 31, 2024

Resolves #39

In addition to the new METALLIB output format, this also adds an optional --platform argument to specify whether you're targeting macOS or iOS. I'm not including Simulator support because the iOS simulator is actually below our min specs at this point. tvOS and iOS appear to share the same Metal bytecode format so I don't think we need a separate platform for tvOS.

Note again that this is exclusively for CLI -- runtime compilation of MSL can be handled by the Metal API with no special handling.

Remaining to-do:

  • Windows support
  • Linux support (somehow?)
  • Test generated binaries

@flibitijibibo
Copy link
Collaborator

This needs a rebase, I can test Linux builds this week with the right example input/output to compare with.

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.

Support metallib from CLI?
2 participants