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

Implement caching mechanism for OpenCL #1614

Closed
athas opened this issue Mar 24, 2022 · 0 comments · Fixed by #1625
Closed

Implement caching mechanism for OpenCL #1614

athas opened this issue Mar 24, 2022 · 0 comments · Fixed by #1625

Comments

@athas
Copy link
Member

athas commented Mar 24, 2022

Compiling the OpenCL program on every startup is very slow for large programs. Dumping a binary at first start and reloading it later is almost instant, but currently a manual process. It would be better if there was a C API function for telling a Futhark program to manage such caching in some specific file. The program would then automatically take care of cache invalidation and the like as needed. A similar feature can be implemented for the CUDA backend with cuModuleLoadData().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant