Skip to content
This repository was archived by the owner on Oct 19, 2025. It is now read-only.

Commit fb647b0

Browse files
committed
Update IPEX to v2.1.40 and do some cleanup.
1 parent 2850b0c commit fb647b0

File tree

2 files changed

+19
-20
lines changed

2 files changed

+19
-20
lines changed

Dockerfile

Lines changed: 16 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ RUN wget --progress=dot:giga -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-
2222
| tee /etc/apt/sources.list.d/oneAPI.list
2323

2424
# Define and install oneAPI runtime libraries for less space.
25-
ARG DPCPP_VER=2024.1.0-963
26-
ARG MKL_VER=2024.1.0-691
27-
ARG CMPLR_COMMON_VER=2024.1
25+
ARG DPCPP_VER=2024.2.1-1079
26+
ARG MKL_VER=2024.2.1-103
27+
ARG CMPLR_COMMON_VER=2024.2
2828
# intel-oneapi-compiler-shared-common provides `sycl-ls`
2929
RUN apt-get update && \
3030
apt-get install -y --no-install-recommends --fix-missing \
@@ -48,7 +48,7 @@ FROM ubuntu:${UBUNTU_VERSION}
4848
# Copy all the files from the oneAPI runtime libraries image into the actual final image.
4949
RUN mkdir -p /oneapi-lib
5050
COPY --from=oneapi-lib-installer /opt/intel/oneapi/redist/lib/ /oneapi-lib/
51-
ARG CMPLR_COMMON_VER=2024.1
51+
ARG CMPLR_COMMON_VER=2024.2
5252
COPY --from=oneapi-lib-installer /opt/intel/oneapi/compiler/${CMPLR_COMMON_VER}/bin/sycl-ls /bin/
5353
COPY --from=oneapi-lib-installer /usr/share/keyrings/intel-graphics.gpg /usr/share/keyrings/intel-graphics.gpg
5454
COPY --from=oneapi-lib-installer /etc/apt/sources.list.d/intel.gpu.jammy.list /etc/apt/sources.list.d/intel.gpu.jammy.list
@@ -76,8 +76,6 @@ RUN apt-get update && \
7676
# Sets versions of Level-Zero, OpenCL and memory allocator chosen.
7777
ARG ICD_VER=23.17.26241.33-647~22.04
7878
ARG LEVEL_ZERO_GPU_VER=1.3.26241.33-647~22.04
79-
ARG LEVEL_ZERO_VER=1.11.0-647~22.04
80-
ARG LEVEL_ZERO_DEV_VER=1.11.0-647~22.04
8179
ARG ALLOCATOR=tcmalloc
8280
ENV ALLOCATOR=${ALLOCATOR}
8381
ARG ALLOCATOR_PACKAGE=libgoogle-perftools-dev
@@ -98,13 +96,13 @@ RUN apt-get update && \
9896
# Getting the latest versions of Intel's Compute Runtime and associated packages on Github and installing it will update everything we installed before.
9997
RUN mkdir neo
10098
WORKDIR /neo
101-
RUN wget --progress=dot:giga https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16695.4/intel-igc-core_1.0.16695.4_amd64.deb && \
102-
wget --progress=dot:giga https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.16695.4/intel-igc-opencl_1.0.16695.4_amd64.deb && \
103-
wget --progress=dot:giga https://github.com/intel/compute-runtime/releases/download/24.17.29377.6/intel-level-zero-gpu_1.3.29377.6_amd64.deb && \
104-
wget --progress=dot:giga https://github.com/intel/compute-runtime/releases/download/24.17.29377.6/intel-opencl-icd_24.17.29377.6_amd64.deb && \
105-
wget --progress=dot:giga https://github.com/intel/compute-runtime/releases/download/24.17.29377.6/libigdgmm12_22.3.19_amd64.deb && \
106-
wget --progress=dot:giga https://github.com/oneapi-src/level-zero/releases/download/v1.16.14/level-zero_1.16.14+u20.04_amd64.deb && \
107-
wget --progress=dot:giga https://github.com/oneapi-src/level-zero/releases/download/v1.16.14/level-zero-devel_1.16.14+u20.04_amd64.deb && \
99+
RUN wget --progress=dot:giga https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17193.4/intel-igc-core_1.0.17193.4_amd64.deb && \
100+
wget --progress=dot:giga https://github.com/intel/intel-graphics-compiler/releases/download/igc-1.0.17193.4/intel-igc-opencl_1.0.17193.4_amd64.deb && \
101+
wget --progress=dot:giga https://github.com/intel/compute-runtime/releases/download/24.26.30049.6/intel-level-zero-gpu_1.3.30049.6_amd64.deb && \
102+
wget --progress=dot:giga https://github.com/intel/compute-runtime/releases/download/24.26.30049.6/intel-opencl-icd_24.26.30049.6_amd64.deb && \
103+
wget --progress=dot:giga https://github.com/intel/compute-runtime/releases/download/24.26.30049.6/libigdgmm12_22.3.20_amd64.deb && \
104+
wget --progress=dot:giga https://github.com/oneapi-src/level-zero/releases/download/v1.17.6/level-zero_1.17.6+u22.04_amd64.deb && \
105+
wget --progress=dot:giga https://github.com/oneapi-src/level-zero/releases/download/v1.17.6/level-zero-devel_1.17.6+u22.04_amd64.deb && \
108106
dpkg -i -- *.deb
109107
WORKDIR /
110108

@@ -123,7 +121,7 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
123121

124122
# Update pip
125123
# hadolint ignore=DL3013
126-
RUN pip --no-cache-dir install --upgrade \
124+
RUN python3 -m pip install -U \
127125
pip \
128126
setuptools
129127

@@ -176,10 +174,10 @@ ENV ZES_ENABLE_SYSMAN=1
176174
ENV NEOReadDebugKeys=1
177175
ENV ClDeviceGlobalMemSizeAvailablePercent=100
178176

179-
# Enable double precision emulation just in case.
177+
# Enable double precision emulation. Turned off by default to enable attention slicing to address the 4GB single allocation limit with Intel Xe GPUs and lower.
180178
# See https://github.com/intel/compute-runtime/blob/master/opencl/doc/FAQ.md#feature-double-precision-emulation-fp64
181-
ENV OverrideDefaultFP64Settings=1
182-
ENV IGC_EnableDPEmulation=1
179+
#ENV OverrideDefaultFP64Settings=1
180+
#ENV IGC_EnableDPEmulation=1
183181

184182
# Enable SYCL variables for cache reuse and single threaded mode.
185183
# See https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md
@@ -190,7 +188,7 @@ ENV SYCL_PI_LEVEL_ZERO_SINGLE_THREAD_MODE=1
190188
#ENV BIGDL_LLM_XMX_DISABLED=1
191189
# FIXME: The below variables are optimal for running LLMs but not Stable Diffusion which setting these makes it slower. Figure out why.
192190
#ENV SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1
193-
#ENV USE_XETLA=OFF
191+
ENV USE_XETLA=OFF
194192

195193
# Set variable for better training performance in case.
196194
# See https://github.com/intel/intel-extension-for-pytorch/issues/296#issuecomment-1461118993

startup.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@ fi
2727
if [ "$FirstLaunch" = "true" ]
2828
then
2929
echo "Installing ComfyUI Python dependencies."
30-
python -m pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30+xpu oneccl_bind_pt==2.1.300+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
30+
python -m pip install torch==2.1.0.post3 torchvision==0.16.0.post3 torchaudio==2.1.0.post3 intel-extension-for-pytorch==2.1.40+xpu oneccl_bind_pt==2.1.400+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/
3131
# Comment out the above command and uncomment the following one instead if you are a user from the PRC.
32-
# python -m pip install torch==2.1.0.post2 torchvision==0.16.0.post2 torchaudio==2.1.0.post2 intel-extension-for-pytorch==2.1.30+xpu oneccl_bind_pt==2.1.300+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
32+
#python -m pip install torch==2.1.0.post3 torchvision==0.16.0.post3 torchaudio==2.1.0.post3 intel-extension-for-pytorch==2.1.40+xpu oneccl_bind_pt==2.1.400+xpu --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/
33+
python -m pip install numpy==1.26.4
3334
pip install -r requirements.txt
3435
fi
3536

0 commit comments

Comments
 (0)