[BUG] The batch_manage.a choice error in --cpp-only
when torch's cxx_abi version is different with gcc
#151
Labels
triaged
Issue has been triaged by maintainers
Bug Report
The cpp benchmark will compile error when
python -c "import torch; print(torch.compiled_with_cxx11_abi(),end='');"
echo '#include <string>' | g++ -x c++ -E -dM - | fgrep _GLIBCXX_USE_CXX11_ABI
--cpp-only
Bug Reason
The bug was caused by:
--cpp-only
, the cmake optionBUILD_PYT
will be False, that means, the code ofadd_compile_options(${TORCH_CXX_FLAGS})
in cpp/CMakeLists.txt#L284 will not run, in other word, the trt-llm will compile with the gcc's default cxx11 abi version.In a word, the trt-llm is compile by gcc's default cxx11 abi version, but the batch_manage.a is choiced by pytorch's cxx11 abi version when trt-llm was compiled by
--cpp-only
.The text was updated successfully, but these errors were encountered: