Skip to content

Commit a802cc4

Browse files
author
Artiom N.
committed
CUDA build fixed: #21
1 parent c712f34 commit a802cc4

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docker/base-image/start.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
set -e
2424

25-
CUDA_VERSION="12.9"
25+
CUDA_MAJOR_VERSION="12"
26+
CUDA_MINOR_VERSION="9"
27+
CUDA_VERSION="${CUDA_MAJOR_VERSION}.${CUDA_MINOR_VERSION}"
2628

2729

2830
function install_cuda_debian() {
@@ -40,7 +42,9 @@ function install_cuda_debian() {
4042
gpg --dearmor | tee /etc/apt/keyrings/cuda.gpg > /dev/null \
4143
&& apt-get update \
4244
&& apt-get install -y \
43-
cuda-minimal-build-${CUDA_PKG_VERSION} cuda-nvcc-${CUDA_PKG_VERSION} cuda-cudart-dev-${CUDA_PKG_VERSION} cuda-nvtx-${CUDA_PKG_VERSION} cuda-nvml-dev-${CUDA_PKG_VERSION}
45+
cuda-minimal-build-${CUDA_PKG_VERSION} cuda-nvcc-${CUDA_PKG_VERSION} cuda-cudart-dev-${CUDA_PKG_VERSION} cuda-nvtx-${CUDA_PKG_VERSION} cuda-nvml-dev-${CUDA_PKG_VERSION} \
46+
&& echo "/usr/local/cuda-${CUDA_MAJOR_VERSION}/targets/x86_64-linux/lib/stubs" > /etc/ld.so.conf.d/988_cuda-${MAJOR_VERSION}-stubs.conf \
47+
&& ldconfg
4448

4549
echo "[INFO] CUDA installation complete."
4650
}

0 commit comments

Comments
 (0)