-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[FEATURE] Hardcode build-time branch and commit hash into the library #20755
Conversation
Hey @matteosal , Thanks for submitting the PR
CI supported jobs: [unix-gpu, edge, unix-cpu, website, sanity, windows-gpu, miscellaneous, centos-gpu, centos-cpu, clang, windows-cpu] Note: |
1855ef3
to
5ba0c6a
Compare
@mxnet-bot run ci [centos-cpu] |
Jenkins CI successfully triggered : [centos-cpu] |
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 for the contribution! It looks like a very useful feature that could help simplify the debugging and issue tracing.
Jenkins CI successfully triggered : [unix-cpu, windows-gpu] |
@mxnet-bot run ci [unix-cpu] |
Jenkins CI successfully triggered : [unix-cpu] |
@mxnet-bot run ci [unix-cpu] |
Jenkins CI successfully triggered : [unix-cpu] |
@mxnet-bot run ci [unix-cpu] |
1 similar comment
@mxnet-bot run ci [unix-cpu] |
Jenkins CI successfully triggered : [unix-cpu] |
@szha can this be merged now? |
Description
In our fork we have this little feature which might be useful to add here as well. At build time, CMake grabs branch name and commit hash and stores them in macros. The macros are exposed via functions in the C API. I have also removed an old system which was dumping the commit hash into a text file
Checklist
Essentials