Lunderberg opened a new pull request, #16412:
URL: https://github.com/apache/tvm/pull/16412

   Currently, the pytorch wheels available through `pip install` use the 
pre-C++11 ABI by setting `-DUSE_CXX11_ABI=0` [0].  If TVM were to user the 
pre-C++11 ABI, this would cause breakages with dynamically-linked LLVM 
environments.
   
   This commit adds a lint check to search for use of `#include <regex>` in any 
C++ files.  Use of this header should be avoided, as its implementation is not 
supported by gcc's dual ABI.  This ABI incompatibility results in runtime 
errors either when `std::regex` is called from TVM, or when `std::regex` is 
called from pytorch, depending on which library was loaded first.
   
   This restriction can be removed when a version of pytorch compiled using 
`-DUSE_CXX11_ABI=1` is available from PyPI.
   
   [0] https://github.com/pytorch/pytorch/issues/51039


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to