-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[Build] Reflect Compile-Time CMake Options into libtvm.so #6280
Conversation
Thanks @junrushao1994 we will need also to support the build where the code base is not part of a git repo(e.g. in a tarball during release). |
@tqchen If so, we don't have a git commit id, is that correct? |
Yes, we can skip the info if that is the case |
I see. We should set it to something like “git-not-found” then |
@tqchen I updated the script accordingly. Now if it is not in a git repo, or git executable is not found, the result will be:
|
CI is green now. Could you take another look @tqchen? |
Thanks @junrushao1994 @jroesch ! |
* Initial comit * Address comments from @tqchen
* Initial comit * Address comments from @tqchen
* Initial comit * Address comments from @tqchen
* Initial comit * Address comments from @tqchen
* Initial comit * Address comments from @tqchen
Reflecting build time info (git commit hash, cmake flags and options, etc) is very helpful in TVM development, packaging, and especially trouble shooting. This PR showcases how to incorporate compile-time information into TVM library, specifically, git commit hash in this PR. Other flags can be done in similar fashion, by just appending lines like "TVM_USE_CUDA=${USE_CUDA}" in the CMakeList.txt.
How to use this functionality. Run the command below:
Per discussion with @jroesch. CC: @jwfromm @tqchen.