@@ -8,8 +8,8 @@ FROM registry.access.redhat.com/ubi9/ubi-minimal:${BASE_UBI_IMAGE_TAG} AS openbl
88
99ARG MAX_JOBS
1010ARG OPENBLAS_VERSION=0.3.30
11- RUN microdnf install -y dnf && dnf install -y gcc-toolset-13 make wget unzip \
12- && source /opt/rh/gcc-toolset-13 /enable \
11+ RUN microdnf install -y dnf && dnf install -y gcc-toolset-14 make wget unzip \
12+ && source /opt/rh/gcc-toolset-14 /enable \
1313 && wget https://github.com/OpenMathLib/OpenBLAS/releases/download/v$OPENBLAS_VERSION/OpenBLAS-$OPENBLAS_VERSION.zip \
1414 && unzip OpenBLAS-$OPENBLAS_VERSION.zip \
1515 && cd OpenBLAS-$OPENBLAS_VERSION \
@@ -57,7 +57,7 @@ COPY --from=openblas-builder /tmp/control /dev/null
5757RUN --mount=type=bind,from=openblas-builder,source=/OpenBLAS-$OPENBLAS_VERSION/,target=/openblas/,rw \
5858 dnf install -y openssl-devel \
5959 && dnf install -y \
60- git tar gcc-toolset-13 automake libtool \
60+ git tar gcc-toolset-14 automake libtool \
6161 pkgconfig xsimd zeromq-devel kmod findutils protobuf* \
6262 libtiff-devel libjpeg-devel zlib-devel freetype-devel libwebp-devel \
6363 harfbuzz-devel libraqm-devel libimagequant-devel libxcb-devel \
@@ -84,7 +84,7 @@ ARG _GLIBCXX_USE_CXX11_ABI=1
8484ARG OPENBLAS_VERSION=0.3.30
8585
8686RUN --mount=type=cache,target=/root/.cache/uv \
87- source /opt/rh/gcc-toolset-13 /enable && \
87+ source /opt/rh/gcc-toolset-14 /enable && \
8888 git clone --recursive https://github.com/pytorch/pytorch.git -b v${TORCH_VERSION} && \
8989 cd pytorch && \
9090 uv pip install -r requirements.txt && \
@@ -97,7 +97,7 @@ ARG TORCHVISION_VERSION=0.22.0
9797ARG TORCHVISION_USE_NVJPEG=0
9898ARG TORCHVISION_USE_FFMPEG=0
9999RUN --mount=type=cache,target=/root/.cache/uv \
100- source /opt/rh/gcc-toolset-13 /enable && \
100+ source /opt/rh/gcc-toolset-14 /enable && \
101101 git clone --recursive https://github.com/pytorch/vision.git -b v${TORCHVISION_VERSION} && \
102102 cd vision && \
103103 MAX_JOBS=${MAX_JOBS:-$(nproc)} \
@@ -113,7 +113,7 @@ ARG USE_ROCM=0
113113ARG USE_CUDA=0
114114ARG TORCHAUDIO_TEST_ALLOW_SKIP_IF_NO_FFMPEG=1
115115RUN --mount=type=cache,target=/root/.cache/uv \
116- source /opt/rh/gcc-toolset-13 /enable && \
116+ source /opt/rh/gcc-toolset-14 /enable && \
117117 git clone --recursive https://github.com/pytorch/audio.git -b v${TORCHAUDIO_VERSION} && \
118118 cd audio && \
119119 MAX_JOBS=${MAX_JOBS:-$(nproc)} \
@@ -130,7 +130,7 @@ ARG MAX_JOBS
130130ARG PYARROW_PARALLEL
131131ARG PYARROW_VERSION=21.0.0
132132RUN --mount=type=cache,target=/root/.cache/uv \
133- source /opt/rh/gcc-toolset-13 /enable && \
133+ source /opt/rh/gcc-toolset-14 /enable && \
134134 git clone --recursive https://github.com/apache/arrow.git -b apache-arrow-${PYARROW_VERSION} && \
135135 cd arrow/cpp && \
136136 mkdir build && cd build && \
@@ -162,7 +162,7 @@ ARG OPENCV_VERSION=86
162162ARG OPENCV_PATCH=97f3f39
163163ARG ENABLE_HEADLESS=1
164164RUN --mount=type=cache,target=/root/.cache/uv \
165- source /opt/rh/gcc-toolset-13 /enable && \
165+ source /opt/rh/gcc-toolset-14 /enable && \
166166 git clone --recursive https://github.com/opencv/opencv-python.git -b ${OPENCV_VERSION} && \
167167 cd opencv-python && \
168168 sed -i -E -e 's/"setuptools.+",/"setuptools",/g' pyproject.toml && \
@@ -196,7 +196,7 @@ ARG MAX_JOBS
196196ARG NUMBA_VERSION=0.61.2
197197
198198# Clone all required dependencies
199- RUN dnf install ninja-build llvm15 llvm15-devel -y && source /opt/rh/gcc-toolset-13 /enable && export PATH=$PATH:/usr/lib64/llvm15/bin && \
199+ RUN dnf install ninja-build llvm15 llvm15-devel -y && source /opt/rh/gcc-toolset-14 /enable && export PATH=$PATH:/usr/lib64/llvm15/bin && \
200200 git clone --recursive https://github.com/numba/numba.git -b ${NUMBA_VERSION} && \
201201 cd ./numba && \
202202 if ! grep '#include "dynamic_annotations.h"' numba/_dispatcher.cpp; then \
@@ -211,6 +211,9 @@ RUN dnf install ninja-build llvm15 llvm15-devel -y && source /opt/rh/gcc-toolset
211211
212212FROM base-builder AS vllmcache-builder
213213
214+ ENV LLVM_CONFIG=/usr/lib64/llvm15/bin/llvm-config
215+ ENV PATH=/usr/lib64/llvm15/bin:$PATH
216+
214217COPY --from=torch-builder /tmp/control /dev/null
215218COPY --from=arrow-builder /tmp/control /dev/null
216219COPY --from=cv-builder /tmp/control /dev/null
@@ -225,18 +228,21 @@ ARG GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
225228RUN --mount=type=cache,target=/root/.cache/uv \
226229 dnf install llvm15 llvm15-devel -y && \
227230 rpm -ivh --nodeps https://mirror.stream.centos.org/9-stream/CRB/ppc64le/os/Packages/protobuf-lite-devel-3.14.0-16.el9.ppc64le.rpm && \
228- source /opt/rh/gcc-toolset-13 /enable && \
231+ source /opt/rh/gcc-toolset-14 /enable && \
229232 git clone https://github.com/huggingface/xet-core.git && cd xet-core/hf_xet/ && \
230233 uv pip install maturin && \
231234 uv build --wheel --out-dir /hf_wheels/
235+
236+ ENV CXXFLAGS="-fno-lto -Wno-error=free-nonheap-object" \
237+ CFLAGS="-fno-lto"
232238RUN --mount=type=cache,target=/root/.cache/uv \
233239 --mount=type=bind,from=torch-builder,source=/torchwheels/,target=/torchwheels/,ro \
234240 --mount=type=bind,from=arrow-builder,source=/arrowwheels/,target=/arrowwheels/,ro \
235241 --mount=type=bind,from=cv-builder,source=/opencvwheels/,target=/opencvwheels/,ro \
236242 --mount=type=bind,from=numa-builder,source=/numactl/,target=/numactl/,rw \
237243 --mount=type=bind,from=numba-builder,source=/numbawheels/,target=/numbawheels/,ro \
238244 --mount=type=bind,src=.,dst=/src/,rw \
239- source /opt/rh/gcc-toolset-13 /enable && \
245+ source /opt/rh/gcc-toolset-14 /enable && \
240246 export PATH=$PATH:/usr/lib64/llvm15/bin && \
241247 uv pip install /opencvwheels/*.whl /arrowwheels/*.whl /torchwheels/*.whl /numbawheels/*.whl && \
242248 sed -i -e 's/.*torch.*//g' /src/pyproject.toml /src/requirements/*.txt && \
@@ -260,7 +266,7 @@ FROM base-builder AS lapack-builder
260266ARG MAX_JOBS
261267ARG LAPACK_VERSION=3.12.1
262268RUN git clone --recursive https://github.com/Reference-LAPACK/lapack.git -b v${LAPACK_VERSION} \
263- && cd lapack && source /opt/rh/gcc-toolset-13 /enable \
269+ && cd lapack && source /opt/rh/gcc-toolset-14 /enable \
264270 && cmake -B build -S . \
265271 && cmake --build build -j ${MAX_JOBS:-$(nproc)}
266272
@@ -299,7 +305,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
299305 --mount=type=bind,from=openblas-builder,source=/OpenBLAS-$OPENBLAS_VERSION/,target=/openblas/,rw \
300306 rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
301307 microdnf install --nodocs -y \
302- libomp tar findutils openssl llvm15 llvm15-devel \
308+ libomp libicu tar findutils openssl llvm15 llvm15-devel \
303309 pkgconfig xsimd g++ gcc-fortran libsndfile \
304310 libtiff libjpeg openjpeg2 zlib zeromq \
305311 freetype lcms2 libwebp tcl tk utf8proc \
0 commit comments