Skip to content

Commit 189cdfc

Browse files
authored
ipex 2.1.40+xpu docker (#4475)
* update stack initial version * update driver,oneapi stack and validate on rc2 * Update README.md
1 parent 9b529d4 commit 189cdfc

File tree

3 files changed

+25
-27
lines changed

3 files changed

+25
-27
lines changed

docker/Dockerfile.prebuilt

+12-11
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ ARG DEBIAN_FRONTEND=noninteractive
2323
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
2424

2525
RUN apt-get update && \
26-
apt-get install -y --no-install-recommends --fix-missing \
26+
apt-get install -y --no-install-recommends \
2727
apt-utils \
2828
build-essential \
2929
ca-certificates \
@@ -40,8 +40,8 @@ RUN apt-get update && \
4040
rm -rf /var/lib/apt/lists/*
4141

4242
RUN wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
43-
gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg
44-
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy/lts/2350 unified" | \
43+
gpg --dearmor --yes --output /usr/share/keyrings/intel-graphics.gpg
44+
RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy unified" | \
4545
tee /etc/apt/sources.list.d/intel-gpu-jammy.list
4646

4747
ARG ICD_VER
@@ -50,11 +50,11 @@ ARG LEVEL_ZERO_VER
5050
ARG LEVEL_ZERO_DEV_VER
5151

5252
RUN apt-get update && \
53-
apt-get install -y --no-install-recommends --fix-missing \
53+
apt-get install -y --no-install-recommends \
5454
intel-opencl-icd=${ICD_VER} \
5555
intel-level-zero-gpu=${LEVEL_ZERO_GPU_VER} \
56-
level-zero=${LEVEL_ZERO_VER} \
57-
level-zero-dev=${LEVEL_ZERO_DEV_VER} && \
56+
libze1=${LEVEL_ZERO_VER} \
57+
libze-dev=${LEVEL_ZERO_DEV_VER} && \
5858
apt-get clean && \
5959
rm -rf /var/lib/apt/lists/*
6060

@@ -68,7 +68,7 @@ ARG MKL_VER
6868
ARG CCL_VER
6969

7070
RUN apt-get update && \
71-
apt-get install -y --no-install-recommends --fix-missing \
71+
apt-get install -y --no-install-recommends \
7272
intel-oneapi-runtime-dpcpp-cpp=${DPCPP_VER} \
7373
intel-oneapi-runtime-mkl=${MKL_VER} \
7474
intel-oneapi-runtime-ccl=${CCL_VER} && \
@@ -80,10 +80,10 @@ RUN apt-get update && apt install -y software-properties-common
8080
RUN add-apt-repository -y ppa:deadsnakes/ppa
8181

8282
RUN apt-cache policy $PYTHON && apt-get update && apt-get install -y \
83-
--no-install-recommends --fix-missing $PYTHON
83+
--no-install-recommends $PYTHON
8484

85-
RUN apt-get update && apt-get install -y --no-install-recommends --fix-missing \
86-
${PYTHON} lib${PYTHON} python3-pip ${PYTHON}-distutils && \
85+
RUN apt-get update && apt-get install -y --no-install-recommends \
86+
${PYTHON} lib${PYTHON} python3-pip ${PYTHON}-distutils && \
8787
apt-get clean && \
8888
rm -rf /var/lib/apt/lists/*
8989

@@ -107,7 +107,8 @@ ARG TORCHVISION_WHL_URL
107107
ARG TORCHAUDIO_WHL_URL
108108
ARG ONECCL_BIND_PT_WHL_URL
109109

110-
RUN python -m pip install numpy
110+
RUN python -m pip install setuptools==69.5.1 \
111+
numpy==1.26.4
111112

112113
RUN python -m pip install torch==${TORCH_VERSION} --extra-index-url ${TORCH_WHL_URL} && \
113114
python -m pip install intel_extension_for_pytorch==${IPEX_VERSION} --extra-index-url ${IPEX_WHL_URL} && \

docker/README.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ export IMAGE_TYPE="xpu"
3434
To pull docker images use the following command:
3535

3636
```bash
37-
docker pull intel/intel-extension-for-pytorch:2.1.40-xpu
37+
docker pull intel/intel-extension-for-pytorch:2.1.40-xpu-pip-base
3838
```
3939
### Running container:
4040

4141
Run the following commands to start Intel® Extension for PyTorch\* GPU container. You can use `-v` option to mount your
4242
local directory into the container. The `-v` argument can be omitted if you do not need
4343
access to a local directory in the container.
4444

45-
```
45+
```bash
4646
IMAGE_NAME=intel/intel-extension-for-pytorch:2.1.40-xpu
4747
```
4848
```bash
@@ -98,5 +98,3 @@ Sample output looks like below:
9898

9999
Now you are inside container with Python 3.10, PyTorch, and Intel® Extension for PyTorch\* preinstalled. You can run your own script
100100
to run on Intel GPU.
101-
102-

docker/build.sh

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
#!/bin/bash
22

33
if [[ ${IMAGE_TYPE} = "xpu" ]]; then
4-
IMAGE_NAME=intel/intel-extension-for-pytorch:2.1.40-$IMAGE_TYPE
4+
IMAGE_NAME=intel/intel-extension-for-pytorch:2.1.40-$IMAGE_TYPE-pip-base
55
docker build --build-arg http_proxy=$http_proxy \
66
--build-arg https_proxy=$https_proxy \
77
--build-arg no_proxy=" " \
88
--build-arg NO_PROXY=" " \
99
--build-arg UBUNTU_VERSION=22.04 \
1010
--build-arg PYTHON=python3.10 \
11-
--build-arg ICD_VER=23.43.27642.40-803~22.04 \
12-
--build-arg LEVEL_ZERO_GPU_VER=1.3.27642.40-803~22.04 \
13-
--build-arg LEVEL_ZERO_VER=1.14.0-744~22.04 \
14-
--build-arg LEVEL_ZERO_DEV_VER=1.14.0-744~22.04 \
15-
--build-arg DPCPP_VER=2024.1.0-963 \
16-
--build-arg MKL_VER=2024.1.0-691 \
17-
--build-arg CCL_VER=2021.12.0-309 \
18-
--build-arg TORCH_VERSION=2.1.0.post2+cxx11.abi \
11+
--build-arg ICD_VER=24.22.29735.27-914~22.04 \
12+
--build-arg LEVEL_ZERO_GPU_VER=1.3.29735.27-914~22.04 \
13+
--build-arg LEVEL_ZERO_VER=1.17.6-914~22.04 \
14+
--build-arg LEVEL_ZERO_DEV_VER=1.17.6-914~22.04 \
15+
--build-arg DPCPP_VER=2024.2.1-1079 \
16+
--build-arg MKL_VER=2024.2.1-103 \
17+
--build-arg CCL_VER=2021.13.1-31 \
18+
--build-arg TORCH_VERSION=2.1.0.post3+cxx11.abi \
1919
--build-arg IPEX_VERSION=2.1.40+xpu \
20-
--build-arg TORCHVISION_VERSION=0.16.0.post2+cxx11.abi \
21-
--build-arg TORCHAUDIO_VERSION=2.1.0.post2+cxx11.abi \
20+
--build-arg TORCHVISION_VERSION=0.16.0.post3+cxx11.abi \
21+
--build-arg TORCHAUDIO_VERSION=2.1.0.post3+cxx11.abi \
2222
--build-arg ONECCL_BIND_PT_VERSION=2.1.400+xpu \
2323
--build-arg TORCH_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
2424
--build-arg IPEX_WHL_URL=https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
@@ -28,4 +28,3 @@ if [[ ${IMAGE_TYPE} = "xpu" ]]; then
2828
-t ${IMAGE_NAME} \
2929
-f Dockerfile.prebuilt .
3030
fi
31-

0 commit comments

Comments
 (0)