junrushao1994 opened a new pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280


   Reflecting those info 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:
   ```
   > python -c "import tvm; print(tvm.support.libinfo())"
   {"GIT_COMMIT_HASH": "921d4e0efea280c149940669bb23ef8c4de366e9"}
   ```
   
   Per discussion with @jroesch. CC: @jwfromm @tqchen.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to