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 2020/08/14 21:34:14 UTC
[GitHub] [incubator-tvm] junrushao1994 opened a new pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
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:
users@infra.apache.org
[GitHub] [incubator-tvm] tqchen merged pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
tqchen merged pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] tqchen commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674402663
Thanks @junrushao1994 @jroesch !
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] tqchen commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674299602
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).
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] junrushao1994 commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674305020
I see. We should set it to something like “git-not-found” then
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] junrushao1994 commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674300008
@tqchen If so, we don't have a git commit id, is that correct?
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] junrushao1994 commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674344661
@tqchen I updated the script accordingly. Now if it is not in a git repo, the result will be:
```
> python -c "import tvm; print(tvm.support.libinfo())"
{"GIT_COMMIT_HASH": "NOT-FOUND"}
```
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] junrushao1994 commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
junrushao1994 commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674363125
CI is green now. Could you take another look @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:
users@infra.apache.org
[GitHub] [incubator-tvm] junrushao1994 edited a comment on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
junrushao1994 edited a comment on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674344661
@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:
```
> python -c "import tvm; print(tvm.support.libinfo())"
{"GIT_COMMIT_HASH": "NOT-FOUND"}
```
----------------------------------------------------------------
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:
users@infra.apache.org
[GitHub] [incubator-tvm] tqchen commented on pull request #6280: [Build] Reflect Compile-Time CMake Options into libtvm.so
Posted by GitBox <gi...@apache.org>.
tqchen commented on pull request #6280:
URL: https://github.com/apache/incubator-tvm/pull/6280#issuecomment-674302138
Yes, we can skip the info if that is the case
----------------------------------------------------------------
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:
users@infra.apache.org