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

Commit 21ae861

Browse files
committed
Update oneAPI dependencies to 2024.1, add some SYCL runtime variables, change default device to 'arc' and documentation updates.
1 parent a61185c commit 21ae861

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

Dockerfile

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ RUN no_proxy=$no_proxy wget --progress=dot:giga -O- https://apt.repos.intel.com/
2121
| tee /etc/apt/sources.list.d/oneAPI.list
2222

2323
# Define and install oneAPI runtime libraries for less space.
24-
ARG DPCPP_VER=2024.0.0-49819
25-
ARG MKL_VER=2024.0.0-49656
26-
ARG CMPLR_COMMON_VER=2024.0
24+
ARG DPCPP_VER=2024.1.0-963
25+
ARG MKL_VER=2024.1.0-691
26+
ARG CMPLR_COMMON_VER=2024.1
2727
# intel-oneapi-compiler-shared-common provides `sycl-ls`
2828
RUN apt-get update && \
2929
apt-get install -y --no-install-recommends --fix-missing \
@@ -34,7 +34,7 @@ RUN apt-get update && \
3434
rm -rf /var/lib/apt/lists/*
3535

3636
# Add and prepare Intel Graphics driver index. This is dependent on being able to pass your GPU with a working driver on the host side where the image will run.
37-
ARG DEVICE=flex
37+
ARG DEVICE=arc
3838
# hadolint ignore=DL4006
3939
RUN no_proxy=$no_proxy wget --progress=dot:giga -qO - https://repositories.intel.com/graphics/intel-graphics.key | \
4040
gpg --dearmor --output /usr/share/keyrings/intel-graphics.gpg
@@ -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.0
51+
ARG CMPLR_COMMON_VER=2024.1
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
@@ -64,6 +64,7 @@ ENV LD_LIBRARY_PATH=/oneapi-lib:/oneapi-lib/intel64:$LD_LIBRARY_PATH
6464
RUN apt-get update && \
6565
apt-get install -y --no-install-recommends --fix-missing \
6666
ca-certificates \
67+
fonts-noto \
6768
gnupg2 \
6869
gpg-agent \
6970
software-properties-common && \
@@ -153,12 +154,17 @@ ENV LD_PRELOAD=${ALLOCATOR_LD_PRELOAD}
153154
ENV NEOReadDebugKeys=1
154155
ENV ClDeviceGlobalMemSizeAvailablePercent=100
155156

157+
# Enable SYCL variables for cache reuse and single threaded mode.
158+
# See https://github.com/intel/llvm/blob/sycl/sycl/doc/EnvironmentVariables.md
159+
ENV SYCL_CACHE_PERSISTENT=1
160+
ENV SYCL_PI_LEVEL_ZERO_SINGLE_THREAD_MODE=1
161+
156162
# Enable double precision emulation just in case.
157163
# See https://github.com/intel/compute-runtime/blob/master/opencl/doc/FAQ.md#feature-double-precision-emulation-fp64
158164
ENV OverrideDefaultFP64Settings=1
159165
ENV IGC_EnableDPEmulation=1
160166

161-
# Set variable for better training performance
167+
# Set variable for better training performance in case.
162168
# See https://github.com/intel/intel-extension-for-pytorch/issues/296#issuecomment-1461118993
163169
ENV IPEX_XPU_ONEDNN_LAYOUT=1
164170

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ cd Docker_IPEX_ComfyUI
3535
docker build -t ipex-arc-comfy:latest -f Dockerfile .
3636
```
3737
#### Temporary workaround with Intel Extension for Pytorch
38-
Go to the releases page and download either Python 3.10 or 3.11 packages versions for intel_extension_for_pytorch, intel_extension_for_pytorch_deepspeed, torch, torchaudio, and torchvision and put the package files in your ComfyUI directory. The startup script will pick them up and install them the first time you start the container.
38+
Go to the releases page and download the Python 3.11 packages versions for intel_extension_for_pytorch, intel_extension_for_pytorch_deepspeed, torch, torchaudio, and torchvision and put the package files in your ComfyUI directory. This will replace installation of these packages from Intel's repositories until a new version of IPEX releases. The startup script will pick them up and install them the first time you start the container.
3939

4040
Once the image build is complete, then run the following if using Linux in terminal or Docker Desktop.
4141
```console
@@ -92,4 +92,4 @@ docker:
9292
* `ipexrun` is a launcher script to use Intel's Extension For Pytorch without code changes with optimizations enabled. There may be issues running ComfyUI through the launcher with some of the arguments you can use so it is not enabled by default. To use the XPU path that uses your GPU, add in `-e UseIPEXRUN=true` to the argument string above. Additionally, if one wants to run it in CPU mode, you should additionally add in `-e UseXPU=false` to that list. You should also then set the environment variable for passing arguments to `ipexrun` adding `-e IPEXRUNArgs=<Your arguments here>`. A reference to all the `ipexrun` arguments can be found [here](https://intel.github.io/intel-extension-for-pytorch/xpu/latest/tutorials/performance_tuning/launch_script.html)
9393
* You can change between `tcmalloc` (default) and `jemalloc` if using CPU `ipexrun`, add in `--build-arg="ALLOCATOR=jemalloc"` when building the image in the first step to switch between the two allocators for `ipexrun`.
9494

95-
Please refer to the [Dockerfile](./Dockerfile) for all available build arguments and environment variables not mentioned here and documented.
95+
Please refer to the [Dockerfile](./Dockerfile) for all available build arguments and environment variables not mentioned here and documented.

0 commit comments

Comments
 (0)