-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix ccache #11189
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
fix ccache #11189
Conversation
3fc0f39 to
d305099
Compare
0e3d99d to
f49e714
Compare
areusch
left a comment
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.
thanks @cconvey , one comment here
adstraw
left a comment
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.
Overall LGTM. A few nits.
- Remove TVM's `USE_CCACHE` option in favor
of CMake's built-in `CMAKE_C_COMPILER_LAUNCHER`
and `CMAKE_CXX_COMPILER_LAUNCHER` variables.
This eliminates a significant source of
complexity, especially:
- TVM's CI scripts, which use `sccache`
instead of `ccache`, and
- calls to `ExternalProject_add` in TVM's CMake logic.
- Ensure that `CMAKE_C[XX]_COMPILER_LAUNCHER` variables
are passed through in all `ExternalProject_add` calls.
- Update user documentation.
|
@mehrdadh : Ready for merge if/when you're happy. |
mehrdadh
left a comment
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.
LGTM! Waiting for @areusch to take another look.
areusch
left a comment
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.
thanks @cconvey ! left one suggestion which could be a follow-on for sure
| export TVM_LOG_DEBUG="ir/transform.cc=1;relay/ir/transform.cc=1" | ||
|
|
||
| - TVM requires LLVM for for CPU codegen. We highly recommend you to build with the LLVM support on. | ||
| - TVM requires LLVM for CPU codegen. We highly recommend you to build with the LLVM support on. |
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.
can fix this in a follow-on, but suggest:
| - TVM requires LLVM for CPU codegen. We highly recommend you to build with the LLVM support on. | |
| - TVM requires LLVM for CPU codegen. When building for compilation purposes, we highly recommend you to build with the LLVM support on. |
- Remove TVM's `USE_CCACHE` option in favor
of CMake's built-in `CMAKE_C_COMPILER_LAUNCHER`
and `CMAKE_CXX_COMPILER_LAUNCHER` variables.
This eliminates a significant source of
complexity, especially:
- TVM's CI scripts, which use `sccache`
instead of `ccache`, and
- calls to `ExternalProject_add` in TVM's CMake logic.
- Ensure that `CMAKE_C[XX]_COMPILER_LAUNCHER` variables
are passed through in all `ExternalProject_add` calls.
- Update user documentation.
[build] Fix
ccachelogic in build system.Fix several bugs in existing ccache logic.
When building for Hexagon, ensure that
related CMake variables propagate through
CMake
ExternalProject_addcalls.Add user documentation for enabling ccache
in TVM builds.