-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Rework DPCPP Docker image creation
Signed-off-by: Sarnie, Nick <[email protected]>
- Loading branch information
Showing
2 changed files
with
19 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |