File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed
Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff 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 \
6868make \
69+ bison \
70+ gawk \
6971ninja \
7072aria2 \
7173findutils \
@@ -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
Original file line number Diff line number Diff 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 \
6868make \
69+ bison \
70+ gawk \
6971ninja \
7072aria2 \
7173findutils \
@@ -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
Original file line number Diff line number Diff 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 \
6969make \
70+ bison \
71+ gawk \
7072ninja \
7173aria2 \
7274findutils \
@@ -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
You can’t perform that action at this time.
0 commit comments