[Build] Add CUDA_VERSION and GIT_COMMIT_TIME#8372
Conversation
|
Just curious, if a TVM binary fails at loading time due to inconsistent CUDA versions, I imagine we cannot query via libinfo because loading has already failed. Do we have to consider this particular case? |
Reasonable. The cuda version linked at build time and the cuda version in runtime environment when using tvm python package may be different. |
It seems out of scope to me. It's more like an environment issue if the binary is incompatible and results in loading failure. The only goal of libinfo is reporting the information of the current binary as a part of the environment logging. If we want to provide the information when failed to load, we should do that in other places such as dlopen.
I would prefer to keep the current one for 2 reasons. First, this is under support.libinfo, which already clearly says this is for the TVM lib instead of the runtime. Second, it consists with LLVM_VERSION. |
* [Build] Add CUDA_VERSION to libinfo * add git commit time
* [Build] Add CUDA_VERSION to libinfo * add git commit time
cc @junrushao1994