@@ -37,10 +37,10 @@ RUN NVIDIA_GPGKEY_SUM=d0664fbbdb8c32356d45de36c5984617217b2d0bef41b93ccecd326ba3
37
37
ENV CUDA_VERSION=12.6.3
38
38
39
39
# For libraries in the cuda-compat-* package: https://docs.nvidia.com/cuda/eula/index.html#attachment-a
40
- RUN yum upgrade -y && yum install -y \
40
+ RUN dnf upgrade -y && dnf install -y \
41
41
cuda-cudart-12-6-${NV_CUDA_CUDART_VERSION} \
42
42
cuda-compat-12-6 \
43
- && yum clean all \
43
+ && dnf clean all \
44
44
&& rm -rf /var/cache/yum/*
45
45
46
46
# nvidia-docker 1.0
@@ -67,20 +67,20 @@ ENV NV_LIBNCCL_VERSION=2.23.4
67
67
ENV NCCL_VERSION=2.23.4
68
68
ENV NV_LIBNCCL_PACKAGE=${NV_LIBNCCL_PACKAGE_NAME}-${NV_LIBNCCL_PACKAGE_VERSION}+cuda12.6
69
69
70
- RUN yum install -y \
70
+ RUN dnf install -y \
71
71
cuda-libraries-12-6-${NV_CUDA_LIB_VERSION} \
72
72
cuda-nvtx-12-6-${NV_NVTX_VERSION} \
73
73
${NV_LIBNPP_PACKAGE} \
74
74
libcublas-12-6-${NV_LIBCUBLAS_VERSION} \
75
75
${NV_LIBNCCL_PACKAGE} \
76
- && yum clean all \
76
+ && dnf clean all \
77
77
&& rm -rf /var/cache/yum/*
78
78
79
79
# Install devel tools
80
- RUN yum install -y \
80
+ RUN dnf install -y \
81
81
make \
82
82
findutils \
83
- && yum clean all \
83
+ && dnf clean all \
84
84
&& rm -rf /var/cache/yum/*
85
85
86
86
# Install CUDA cudnn9 from:
@@ -90,17 +90,17 @@ ENV NV_CUDNN_PACKAGE=libcudnn9-cuda-12-${NV_CUDNN_VERSION}
90
90
91
91
LABEL com.nvidia.cudnn.version="${NV_CUDNN_VERSION}"
92
92
93
- RUN yum install -y \
93
+ RUN dnf install -y \
94
94
${NV_CUDNN_PACKAGE} \
95
- && yum clean all \
95
+ && dnf clean all \
96
96
&& rm -rf /var/cache/yum/*
97
97
98
98
# Set this flag so that libraries can find the location of CUDA
99
99
ENV XLA_FLAGS=--xla_gpu_cuda_data_dir=/usr/local/cuda
100
100
101
101
# Install CUDA toolkit 12.6
102
- RUN yum -y install cuda-toolkit-12-6 && \
103
- yum -y clean all --enablerepo="*"
102
+ RUN dnf -y install cuda-toolkit-12-6 && \
103
+ dnf -y clean all --enablerepo="*"
104
104
105
105
# Restore user workspace
106
106
USER 1001
0 commit comments