Skip to content

Commit e26313a

Browse files
authored
Update Dockerfile.xpu (#3147)
1 parent 4367c09 commit e26313a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

dockerfiles/Dockerfile.xpu

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ RUN apt-get update && apt-get install -y libibverbs-dev librdmacm-dev cmake pybi
1616

1717
# uninstall existing package
1818
RUN python -m pip uninstall paddlepaddle-gpu paddlepaddle-xpu -y
19-
# install paddlepaddle
19+
# install paddlepaddle-xpu
2020
RUN python -m pip install --no-cache-dir --progress-bar off paddlepaddle-xpu==${PADDLE_VERSION} -i https://www.paddlepaddle.org.cn/packages/stable/xpu-p800/
2121

2222
RUN python -m pip install --no-cache-dir fastdeploy-xpu==${FD_VERSION} -i https://www.paddlepaddle.org.cn/packages/stable/fastdeploy-xpu-p800/ --extra-index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
2323

24+
RUN mkdir -p /workspace/deps && cd /workspace/deps && \
25+
wget https://klx-sdk-release-public.su.bcebos.com/xre/kl3-release/5.0.21.21/xre-Linux-x86_64-5.0.21.21.tar.gz && \
26+
tar -zxf xre-Linux-x86_64-5.0.21.21.tar.gz && mv xre-Linux-x86_64-5.0.21.21 xre
27+
28+
ENV PATH=/workspace/deps/xre/bin:$PATH
29+
2430
ENV http_proxy=""
2531
ENV https_proxy=""
2632
ENV no_proxy=""

0 commit comments

Comments
 (0)