Skip to content

Commit

Permalink
Set _GLIBCXX_USE_CXX11_ABI=1 for ROCm since RHEL8 ROCm packages refer…
Browse files Browse the repository at this point in the history
… to cxx11-abi symbols, so PyTorch build fails if _GLIBCXX_USE_CXX11_ABI=0
  • Loading branch information
jithunnair-amd committed Jul 17, 2024
1 parent 92c00a6 commit 9daa4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manywheel/build_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ case ${DESIRED_PYTHON} in
;;
esac

if [[ "$DESIRED_DEVTOOLSET" == *"cxx11-abi"* ]]; then
if [[ "$DESIRED_DEVTOOLSET" == *"cxx11-abi"* || "$DESIRED_CUDA" == *"rocm"* ]]; then
export _GLIBCXX_USE_CXX11_ABI=1
else
export _GLIBCXX_USE_CXX11_ABI=0
Expand Down

0 comments on commit 9daa4e4

Please sign in to comment.