Skip to content

Commit

Permalink
keep the so number for xpu dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chuanqi129 committed Sep 16, 2024
1 parent ab63f3e commit c861a31
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion manywheel/build_common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,11 @@ for pkg in /$WHEELHOUSE_DIR/torch_no_python*.whl /$WHEELHOUSE_DIR/torch*linux*.w
fi

# ROCm workaround for roctracer dlopens
if [[ "$DESIRED_CUDA" == *"rocm"* || "$DESIRED_CUDA" == *"xpu"* ]]; then
if [[ "$DESIRED_CUDA" == *"rocm"* ]]; then
patchedpath=$(fname_without_so_number $destpath)
# Keep the so number for XPU dependencies
elif [[ "$DESIRED_CUDA" == *"xpu"* ]]; then
patchedpath=$destpath
else
patchedpath=$(fname_with_sha256 $destpath)
fi
Expand Down

0 comments on commit c861a31

Please sign in to comment.