I find it was not so convenient for debug with developing branch, should we add github commit number to tvm.__version__
This is doable. We may reflect all build-time options into a single .cc file, and then expose them via packed function. @tqchen
1 Like
Something like this
set_property(
SOURCE ${CMAKE_CURRENT_LIST_DIR}/build_info.cc
APPEND
PROPERTY COMPILE_DEFINITIONS
MNM_GIT_VERSION="${MNM_GIT_VERSION}"
MNM_USE_CUDA="${MNM_USE_CUDA}"
MNM_USE_LLVM="${MNM_USE_LLVM}"
MNM_USE_CUDNN="${MNM_USE_CUDNN}"
)
Want tvm.__version__
to show the commit number (at least) too. Although most Python packages only show the release version number, it is insufficient for the current TVM as most users now build TVM from scratch by pulling the upstream instead of pip install
, which is unavailable yet.
personally, I think we can easily get those info form cmake and write to build_info .cc then compile into dynamic lib for other language api use
Yup, that’s exactly what I propose