Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/scripts/install-cuda-aarch64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,27 @@ install_cuda_aarch64() {
CU_VER=${CU_VERSION:2:2}-${CU_VERSION:4:1}
# CU_VERSION: cu129 --> CU_DOT_VER: 12.9
CU_DOT_VER=${CU_VERSION:2:2}.${CU_VERSION:4:1}
# CUDA_MAJOR_VERSION: cu128 --> 12
CUDA_MAJOR_VERSION=${CU_VERSION:2:2}
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/sbsa/cuda-rhel8.repo
# nccl version must match libtorch_cuda.so was built with https://github.com/pytorch/pytorch/blob/main/.ci/docker/ci_commit_pins/nccl-cu12.txt
dnf -y install cuda-compiler-${CU_VER}.aarch64 \
cuda-libraries-${CU_VER}.aarch64 \
cuda-libraries-devel-${CU_VER}.aarch64 \
libnccl-2.27.3-1+cuda${CU_DOT_VER} libnccl-devel-2.27.3-1+cuda${CU_DOT_VER} libnccl-static-2.27.3-1+cuda${CU_DOT_VER}
dnf clean all
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/lib64:$LD_LIBRARY_PATH

nvshmem_version=3.3.9
nvshmem_path="https://developer.download.nvidia.com/compute/redist/nvshmem/${nvshmem_version}/builds/cuda${CUDA_MAJOR_VERSION}/txz/agnostic/aarch64"
nvshmem_filename="libnvshmem_cuda12-linux-sbsa-${nvshmem_version}.tar.gz"
curl -L ${nvshmem_path}/${nvshmem_filename} -o nvshmem.tar.gz
tar -xzf nvshmem.tar.gz
cp -a libnvshmem/lib/* /usr/local/cuda/lib64/
cp -a libnvshmem/include/* /usr/local/cuda/include/
rm -rf nvshmem.tar.gz nvshmem
echo "nvshmem ${nvshmem_version} for cuda ${CUDA_MAJOR_VERSION} installed successfully"

export LD_LIBRARY_PATH=/usr/local/cuda/lib64:/usr/local/cuda/include:/usr/lib64:$LD_LIBRARY_PATH
ls -lart /usr/local/
nvcc --version
echo "cuda ${CU_VER} installed successfully"
Expand Down
Loading