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

Reminder: simplify metal bytecode compilation pipeline... #152

Open
floooh opened this issue Oct 11, 2024 · 1 comment
Open

Reminder: simplify metal bytecode compilation pipeline... #152

floooh opened this issue Oct 11, 2024 · 1 comment
Assignees

Comments

@floooh
Copy link
Owner

floooh commented Oct 11, 2024

Apparently calling the separate metallib tool isn't needed anymore:

https://twitter.com/SebAaltonen/status/1844661256252194911

...but it would only make sense if we could get rid of the temporary .air and .dia files. Maybe calling metal with multiple input files works too?

@floooh floooh self-assigned this Oct 11, 2024
@floooh
Copy link
Owner Author

floooh commented Oct 11, 2024

PS: also:

You still need to call metal twice. Once for compiling, once for .metallib linking. Just replace metallib command with metal command and it works. It's undocumented, but it works and avoids the recent bug in metallib command.

Now that you are calling metal twice, you need also -frecord-sources in your linker call. This wasn't needed with metallib.

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