@@ -7,9 +7,10 @@ PYTORCH_DEPENDENCY_GROUP=${PYTORCH_DEPENDENCY_GROUP:-pin_pytorch_cpu}
77PYTORCH_TORCH_BACKEND=${PYTORCH_TORCH_BACKEND:- cpu}
88TENSORFLOW_DEPENDENCY_GROUP=${TENSORFLOW_DEPENDENCY_GROUP:- pin_tensorflow_cpu}
99# CUDA version tag (e.g. "12-9") parsed from the manylinux CUDA image name. It
10- # selects the cuBLAS/cuSPARSE development packages installed inside the
11- # container: the fused PyTorch CUDA operators pull in ATen CUDA headers that
12- # require cublas and cusparse headers absent from the base image.
10+ # selects the cuBLAS/cuSPARSE/cuSOLVER development packages installed inside the
11+ # container: the fused PyTorch CUDA operators pull in ATen CUDA headers
12+ # (CUDAContextLight.h) that include cublas_v2.h, cusparse.h and cusolverDn.h,
13+ # none of which ship in the base image.
1314CUDA_VERSION_DASH=$( printf ' %s' " ${MANYLINUX_CUDA_IMAGE} " | sed -n ' s/.*cuda\([0-9][0-9]*\)_\([0-9][0-9]*\).*/\1-\2/p' )
1415
1516docker run --rm -v " ${SCRIPT_PATH} /../.." :/root/deepmd-kit -w /root/deepmd-kit \
@@ -27,8 +28,8 @@ docker run --rm -v "${SCRIPT_PATH}/../..":/root/deepmd-kit -w /root/deepmd-kit \
2728 " ${MANYLINUX_CUDA_IMAGE} " \
2829 /bin/bash -lc ' set -euo pipefail
2930 if [ -n "${CUDA_VERSION_DASH:-}" ]; then
30- yum config-manager --add-repo http ://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
31- yum install -y "libcublas-devel-${CUDA_VERSION_DASH}" "libcusparse-devel-${CUDA_VERSION_DASH}"
31+ yum config-manager --add-repo https ://developer.download.nvidia.com/compute/cuda/repos/rhel8/x86_64/cuda-rhel8.repo
32+ yum install -y "libcublas-devel-${CUDA_VERSION_DASH}" "libcusparse-devel-${CUDA_VERSION_DASH}" "libcusolver-devel-${CUDA_VERSION_DASH}"
3233 fi
3334 export PATH="$(dirname "${PYTHON_BIN}"):${PATH}"
3435 "${PYTHON_BIN}" -m pip install uv
0 commit comments