Skip to content

Commit

Permalink
Use lib64 ucx if it exists (#1005)
Browse files Browse the repository at this point in the history
Due to rapidsai/shared-workflows#151 the arm builds are now on Rockylinux 8 instead of Ubuntu 20.04. On Rockylinux 8 the ucx library is installed to the /usr/lib64 directory instead of /usr/lib. This PR updates the wheel building script to support the alternate location.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - AJ Schmidt (https://github.com/ajschmidt8)
  - Peter Andreas Entschev (https://github.com/pentschev)

URL: #1005
  • Loading branch information
vyasr authored Oct 30, 2023
1 parent c34aad0 commit 412b1e3
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,14 @@ popd

# Now copy in all the extra libraries that are only ever loaded at runtime
pushd repair_dist/${underscore_package_name}_${RAPIDS_PY_CUDA_SUFFIX}.libs/ucx
cp -P /usr/lib/ucx/* .
if [[ -d /usr/lib64/ucx ]]; then
cp -P /usr/lib64/ucx/* .
elif [[ -d /usr/lib/ucx ]]; then
cp -P /usr/lib/ucx/* .
else
echo "Could not find ucx libraries"
exit 1
fi

# we link against <python>/lib/site-packages/${underscore_package_name}_${RAPIDS_PY_CUDA_SUFFIX}.lib/libuc{ptsm}
# we also amend the rpath to search one directory above to *find* libuc{tsm}
Expand Down

0 comments on commit 412b1e3

Please sign in to comment.