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

Metal Compiler header file caching #302

Open
jafioti opened this issue Jan 26, 2024 · 2 comments
Open

Metal Compiler header file caching #302

jafioti opened this issue Jan 26, 2024 · 2 comments

Comments

@jafioti
Copy link

jafioti commented Jan 26, 2024

I have a kernel that pulls in some header files, and I notice that when I update the header files, the behavior doesn't change. I'm guessing there's some caching going on in the metal compiler. Noteably when I change the install_name in the compile options, then the behavior changes as expected. You can also see the effect of caching when compiling a bunch of kernels, for me a cached run takes 100ms whereas a non-cached run takes 5s.

Is there a way to opt out of header file caching?

@grovesNL
Copy link
Collaborator

I might be misunderstanding but it sounds like this is related to the Metal compiler itself instead of this crate (Rust bindings to Metal).

@jafioti
Copy link
Author

jafioti commented Jan 26, 2024

@grovesNL I think you're correct, but is there a way to pass arbitrary arguments to the compiler? I assume there's an argument to it to prevent caching.

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

2 participants