Skip to content

Commit ced036a

Browse files
committed
Update torch._C._PYBIND11_BUILD_ABI version check
* Skip tests for manywheel with _GLIBCXX_USE_CXX11_ABI=1
1 parent b7c47c5 commit ced036a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

check_binary.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,8 +435,13 @@ fi
435435
###############################################################################
436436
# Check for C++ ABI compatibility between gcc7 and gcc9 compiled binaries
437437
###############################################################################
438-
if [[ "$(uname)" == 'Linux' && ("$PACKAGE_TYPE" == 'conda' || "$PACKAGE_TYPE" == 'manywheel') && GLIBCXX_USE_CXX11_ABI=0 ]]; then
439-
pushd /tmp
440-
python -c "import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1)"
441-
popd
438+
if [[ "$(uname)" == 'Linux' && ("$PACKAGE_TYPE" == 'conda' || "$PACKAGE_TYPE" == 'manywheel')]]; then
439+
if [[ "$DESIRED_DEVTOOLSET" == *"cxx11-abi"* ]]; then
440+
echo "Skip tests for manywheel with _GLIBCXX_USE_CXX11_ABI=1"
441+
exit 0
442+
else
443+
pushd /tmp
444+
python -c "import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1011' else 1)"
445+
popd
446+
fi
442447
fi

0 commit comments

Comments
 (0)