Skip to content

Commit 1f8d3c6

Browse files
committed
{slims} Add opt glibc
1 parent 4bf0337 commit 1f8d3c6

File tree

3 files changed

+63
-0
lines changed

3 files changed

+63
-0
lines changed

cu126-slim/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ RUN --mount=type=cache,target=/var/cache/zypp \
6666
zypper --gpg-auto-import-keys \
6767
install --no-confirm --auto-agree-with-licenses \
6868
make \
69+
bison \
70+
gawk \
6971
ninja \
7072
aria2 \
7173
findutils \
@@ -108,6 +110,25 @@ cpp13 \
108110
&& update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-13 90 \
109111
&& update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-13 90
110112

113+
################################################################################
114+
# glibc 2.39
115+
# CUDA 12.x does not support glibc >2.41
116+
# 2.39 is also used by RHEL 10 / Ubuntu 24.04
117+
118+
WORKDIR /tmp
119+
RUN curl -LO https://ftp.gnu.org/gnu/glibc/glibc-2.39.tar.xz \
120+
&& tar xf glibc-2.39.tar.xz
121+
122+
WORKDIR /tmp/glibc-2.39/build
123+
RUN ../configure \
124+
--prefix=/opt/glibc-2.39 \
125+
--disable-werror \
126+
&& make -j$(nproc) \
127+
&& make install
128+
129+
ENV PATH="/opt/glibc-2.39/bin:${PATH}" \
130+
LD_LIBRARY_PATH="/opt/glibc-2.39${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
131+
111132
################################################################################
112133
# Python Packages
113134

cu128-slim/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ RUN --mount=type=cache,target=/var/cache/zypp \
6666
zypper --gpg-auto-import-keys \
6767
install --no-confirm --auto-agree-with-licenses \
6868
make \
69+
bison \
70+
gawk \
6971
ninja \
7072
aria2 \
7173
findutils \
@@ -108,6 +110,25 @@ cpp14 \
108110
&& update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-14 90 \
109111
&& update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-14 90
110112

113+
################################################################################
114+
# glibc 2.39
115+
# CUDA 12.x does not support glibc >2.41
116+
# 2.39 is also used by RHEL 10 / Ubuntu 24.04
117+
118+
WORKDIR /tmp
119+
RUN curl -LO https://ftp.gnu.org/gnu/glibc/glibc-2.39.tar.xz \
120+
&& tar xf glibc-2.39.tar.xz
121+
122+
WORKDIR /tmp/glibc-2.39/build
123+
RUN ../configure \
124+
--prefix=/opt/glibc-2.39 \
125+
--disable-werror \
126+
&& make -j$(nproc) \
127+
&& make install
128+
129+
ENV PATH="/opt/glibc-2.39/bin:${PATH}" \
130+
LD_LIBRARY_PATH="/opt/glibc-2.39${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
131+
111132
################################################################################
112133
# Python Packages
113134

cu130-slim/Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ RUN --mount=type=cache,target=/var/cache/zypp \
6767
zypper --gpg-auto-import-keys \
6868
install --no-confirm --auto-agree-with-licenses \
6969
make \
70+
bison \
71+
gawk \
7072
ninja \
7173
aria2 \
7274
findutils \
@@ -109,6 +111,25 @@ cpp15 \
109111
&& update-alternatives --install /usr/bin/gcov-dump gcov-dump /usr/bin/gcov-dump-15 90 \
110112
&& update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-tool-15 90
111113

114+
################################################################################
115+
# glibc 2.41
116+
# Currently CUDA 13.0 supports max to glibc 2.41
117+
# 2.41 is also used by Fedora 42
118+
119+
WORKDIR /tmp
120+
RUN curl -LO https://ftp.gnu.org/gnu/glibc/glibc-2.41.tar.xz \
121+
&& tar xf glibc-2.41.tar.xz
122+
123+
WORKDIR /tmp/glibc-2.41/build
124+
RUN ../configure \
125+
--prefix=/opt/glibc-2.41 \
126+
--disable-werror \
127+
&& make -j$(nproc) \
128+
&& make install
129+
130+
ENV PATH="/opt/glibc-2.41/bin:${PATH}" \
131+
LD_LIBRARY_PATH="/opt/glibc-2.41${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}"
132+
112133
################################################################################
113134
# Python Packages
114135

0 commit comments

Comments
 (0)