From 6211158005152d31e46e346f5117c048f03a0b17 Mon Sep 17 00:00:00 2001 From: zhuhong61 Date: Sat, 11 Feb 2023 02:00:07 +0000 Subject: [PATCH] Update torch._C._PYBIND11_BUILD_ABI version check * Skip tests for manywheel built with _GLIBCXX_USE_CXX11_ABI=1 --- check_binary.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_binary.sh b/check_binary.sh index 58a19fffa..eaf29a1fe 100755 --- a/check_binary.sh +++ b/check_binary.sh @@ -435,8 +435,8 @@ fi ############################################################################### # Check for C++ ABI compatibility between gcc7 and gcc9 compiled binaries ############################################################################### -if [[ "$(uname)" == 'Linux' && ("$PACKAGE_TYPE" == 'conda' || "$PACKAGE_TYPE" == 'manywheel') && GLIBCXX_USE_CXX11_ABI=0 ]]; then +if [[ "$(uname)" == 'Linux' && ("$PACKAGE_TYPE" == 'conda' || "$PACKAGE_TYPE" == 'manywheel')]]; then pushd /tmp - python -c "import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1)" + python -c "import torch; exit(0 if torch.compiled_with_cxx11_abi() else (0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1))" popd fi