You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/09/19 10:20:52 UTC

[GitHub] [tvm] KOLANICH opened a new pull request, #12834: Improved recompilation times by utilizing CCache.

KOLANICH opened a new pull request, #12834:
URL: https://github.com/apache/tvm/pull/12834

   Utilizing CCache is especially useful when one realizes he misses a feature and so recompiles the tool with that feature enabled. Or when one realizes he has accidentially enabled a feature unavalable on his platform, so compilation fails and one has to recompile. In that case without CCache CMake has to cause recompile from scratch since it alters the preprocessor. CCache is capable to detect the recompilation from scratch is not needed and to reuse the suitable artifacts from previous builds.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] tkonolige commented on pull request #12834: Improved recompilation times by utilizing CCache.

Posted by GitBox <gi...@apache.org>.
tkonolige commented on PR #12834:
URL: https://github.com/apache/tvm/pull/12834#issuecomment-1251309907

   Hi @KOLANICH, thanks for submitting a PR!
   
   Historically, we did have ccache enabled by default if it was installed. I think there were some issues with using ccache with hexagon, so it was disabled in #11189. If you want to use cmake with your builds you can run `cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ...` when you configure cmake. If you'd like to try and get it enabled by default for everyone using TVM, you can try adding these lines https://github.com/apache/tvm/pull/11189/files#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aL769-L796 back in and seeing if hexagon will still build.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] KOLANICH commented on pull request #12834: Improved recompilation times by utilizing CCache.

Posted by GitBox <gi...@apache.org>.
KOLANICH commented on PR #12834:
URL: https://github.com/apache/tvm/pull/12834#issuecomment-1251600206

   >CMAKE_CXX_COMPILER_LAUNCHER
   
   My bad, I have used `CMAKE_CXX_COMPILER` + `CMAKE_CXX_FLAGS`. Thanks for reminding me that var exists.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] tkonolige commented on pull request #12834: Improved recompilation times by utilizing CCache.

Posted by GitBox <gi...@apache.org>.
tkonolige commented on PR #12834:
URL: https://github.com/apache/tvm/pull/12834#issuecomment-1251385109

   Actually I've created a PR to re-enable ccache here: #12839


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] KOLANICH commented on pull request #12834: Improved recompilation times by utilizing CCache.

Posted by GitBox <gi...@apache.org>.
KOLANICH commented on PR #12834:
URL: https://github.com/apache/tvm/pull/12834#issuecomment-1251598325

   >If you want to use cmake with your builds you can run cmake -DCMAKE_CXX_COMPILER_LAUNCHER=ccache ... when you configure cmake.
   
   I have tried this first (but not when configuring, I have edited using `cmake-gui`), but I got some errors of interaction between CMake and ninja (that have forced me into cleaning CMake cacheand starting from scratch several times), so I resorted to this way.
   
   >Actually I've created a PR to re-enable ccache here: #12839
   
   Thanks, I have left my comment there.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [tvm] KOLANICH closed pull request #12834: Improved recompilation times by utilizing CCache.

Posted by GitBox <gi...@apache.org>.
KOLANICH closed pull request #12834: Improved recompilation times by utilizing CCache.
URL: https://github.com/apache/tvm/pull/12834


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org