mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
Signed-off-by: Yoray Zack <yorayz@nvidia.com> Signed-off-by: Yoray Zack <62789610+zackyoray@users.noreply.github.com>
36 lines
993 B
Bash
36 lines
993 B
Bash
#!/bin/bash
|
|
set -ex
|
|
|
|
UCX_VERSION="v1.20.x"
|
|
UCX_COMMIT="f656dbdf93e72e60b5d6ca78b9e3d9e744e789bd"
|
|
UCX_INSTALL_PATH="/usr/local/ucx/"
|
|
CUDA_PATH="/usr/local/cuda"
|
|
UCX_REPO="https://github.com/openucx/ucx.git"
|
|
|
|
mkdir -p /third-party-source
|
|
|
|
rm -rf ${UCX_INSTALL_PATH}
|
|
git clone -b ${UCX_VERSION} ${UCX_REPO}
|
|
cd ucx
|
|
git checkout ${UCX_COMMIT}
|
|
cd ..
|
|
tar -czf /third-party-source/ucx-${UCX_VERSION}.tar.gz ucx
|
|
cd ucx
|
|
./autogen.sh
|
|
./contrib/configure-release \
|
|
--prefix=${UCX_INSTALL_PATH} \
|
|
--enable-shared \
|
|
--disable-static \
|
|
--disable-doxygen-doc \
|
|
--enable-optimizations \
|
|
--enable-cma \
|
|
--enable-devel-headers \
|
|
--with-cuda=${CUDA_PATH} \
|
|
--with-verbs \
|
|
--with-dm \
|
|
--enable-mt
|
|
make install -j$(nproc)
|
|
cd ..
|
|
rm -rf ucx # Remove UCX source to save space
|
|
echo "export LD_LIBRARY_PATH=${UCX_INSTALL_PATH}/lib:\$LD_LIBRARY_PATH" >> "${ENV}"
|