Skip to content

Commit b5e8efb

Browse files
author
Alexander Batashev
authored
[Docker] Add workarounds for two SYCL issues (#5143)
First issue is that SYCL runtime requires libOpenCL.so for correct functioning, which is typically built with the rest of compiler toolchain, but never gets deployed to installation directory. Second issue is described in #5142, which breaks SYCL toolchain if it's installed to `/usr`. Also add vim to the image for convenience of local work/debugging.
1 parent 510b243 commit b5e8efb

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

devops/containers/ubuntu2004_preinstalled.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ ARG base_image=ghcr.io/intel/llvm/ubuntu2004_intel_drivers
44
FROM $base_image:$base_tag
55

66
COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh
7-
ADD llvm_sycl.tar.xz /usr
7+
RUN mkdir -p /opt/sycl
8+
ADD llvm_sycl.tar.xz /opt/sycl
9+
10+
ENV PATH /opt/sycl/bin:$PATH
11+
ENV LD_LIBRARY_PATH /opt/sycl/lib:$LD_LIBRARY_PATH
812

913
ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"]
1014

devops/scripts/install_build_tools.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ apt update && apt install -yqq \
88
git \
99
python3 \
1010
python3-distutils \
11-
python-is-python3
11+
python-is-python3 \
12+
ocl-icd-libopencl1 \
13+
vim

0 commit comments

Comments
 (0)