-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Added support ccache for speedup recompilation #5002
Conversation
Are there cases where we want |
Disabling ccache is required if you only need to benchmark build time without ccache, enabling cache is necessary when checkout git branches and recompiling. It really helps to reduce compile time. |
CMakeLists.txt
Outdated
find_program(LLAMA_CCACHE_FOUND ccache) | ||
if (LLAMA_CCACHE_FOUND) | ||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache) | ||
set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be best to leave out pch_defines since we don't use precompiled headers, and sloppy preprocessing in the future might lead to surprising issues.
So it sounds we need to add |
* Added support ccache for speedup recompilation * cmake : option to disable ccache --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
* Added support ccache for speedup recompilation * cmake : option to disable ccache --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
* Added support ccache for speedup recompilation * cmake : option to disable ccache --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
@ggerganov more information:
https://ccache.dev/
https://en.wikipedia.org/wiki/Ccache