[CPU] Enable tcmalloc for s390x (#50841)
Signed-off-by: Rehan Khan <Rehan.Khan7@ibm.com> Co-authored-by: Li, Jiang <jiang1.li@intel.com>
This commit is contained in:
co-authored by
Li, Jiang <jiang1.li@intel.com>
parent
2cb3ff88cc
commit
0187f4c88e
@@ -59,6 +59,15 @@ RUN curl -LO https://github.com/numactl/numactl/archive/refs/tags/v2.0.19.tar.gz
|
||||
# Set include path
|
||||
ENV C_INCLUDE_PATH="/usr/local/include:$C_INCLUDE_PATH"
|
||||
|
||||
FROM base AS gperftools-build
|
||||
WORKDIR /tmp
|
||||
ARG GPERFTOOLS_VERSION=2.16
|
||||
RUN curl -LO https://github.com/gperftools/gperftools/releases/download/gperftools-${GPERFTOOLS_VERSION}/gperftools-${GPERFTOOLS_VERSION}.tar.gz && \
|
||||
tar -xzf gperftools-${GPERFTOOLS_VERSION}.tar.gz && \
|
||||
cd gperftools-${GPERFTOOLS_VERSION} && \
|
||||
./configure --enable-minimal && \
|
||||
make -j"$(nproc)"
|
||||
|
||||
FROM python-install AS torch-vision
|
||||
# Install torchvision
|
||||
ARG TORCH_VISION_VERSION=v0.28.0
|
||||
@@ -168,6 +177,12 @@ WORKDIR /workspace/vllm
|
||||
RUN --mount=type=bind,from=numa-build,src=/tmp/numactl-2.0.19,target=/numactl \
|
||||
make -C /numactl install
|
||||
|
||||
RUN --mount=type=bind,from=gperftools-build,src=/tmp/gperftools-2.16,target=/gperftools \
|
||||
make -C /gperftools install-libLTLIBRARIES && \
|
||||
/sbin/ldconfig
|
||||
|
||||
ENV LD_PRELOAD=/usr/local/lib/libtcmalloc_minimal.so.4
|
||||
|
||||
# Install dependencies, including PyTorch and Apache Arrow
|
||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||
--mount=type=bind,from=rust,source=/root/.cargo,target=/root/.cargo,rw \
|
||||
|
||||
Reference in New Issue
Block a user