Skip to content

Commit

Permalink
[CI] Rework DPCPP Docker image creation
Browse files Browse the repository at this point in the history
Signed-off-by: Sarnie, Nick <[email protected]>
  • Loading branch information
sarnex authored and bader committed Jan 15, 2025
1 parent 4b0b671 commit 7e4c4a3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cts_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
matrix:
include:
- sycl-impl: dpcpp
version: df9fba6d524b59459b1a98eea1339f0c1e492bc9
version: 2025-01-14
- sycl-impl: adaptivecpp
version: 061e2d6ffe1084021d99f22ac1f16e28c6dab899
steps:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
matrix:
include:
- sycl-impl: dpcpp
version: df9fba6d524b59459b1a98eea1339f0c1e492bc9
version: 2025-01-14
- sycl-impl: adaptivecpp
version: 061e2d6ffe1084021d99f22ac1f16e28c6dab899
env:
Expand Down
23 changes: 17 additions & 6 deletions docker/dpcpp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,28 @@
# DPC++ build version (git revision) to install
# Go to https://github.com/intel/llvm/pkgs/container/llvm%2Fsycl_ubuntu2204_nightly to see avilable docker image tags
ARG IMPL_VERSION
FROM ubuntu:22.04

FROM ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:no-drivers-$IMPL_VERSION
# DPC++ nightly to install
# Go to https://github.com/intel/llvm/releases to see avilable nightly builds.
ARG IMPL_VERSION

# Make sure that apt is executed with root previlegies
USER root

RUN export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt install -y --no-install-recommends \
ccache && \
apt install -y --no-install-recommends wget ca-certificates build-essential \
cmake ninja-build ccache git python3 python3-psutil python-is-python3 python3-pip \
zstd ocl-icd-opencl-dev vim libffi-dev libva-dev libtool wget sudo zstd zip \
unzip jq curl libhwloc-dev libzstd-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists*

RUN mkdir -p /opt/sycl && \
cd /opt/sycl && \
wget https://github.com/intel/llvm/releases/download/nightly-${IMPL_VERSION}/sycl_linux.tar.gz && \
tar xf sycl_linux.tar.gz && \
rm sycl_linux.tar.gz

ENV PATH="/opt/sycl/bin:$PATH"
ENV LD_LIBRARY_PATH="/opt/sycl/lib:$LD_LIBRARY_PATH"

COPY configure.sh /scripts/

0 comments on commit 7e4c4a3

Please sign in to comment.