-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #712 from KhronosGroup/dpcpp-container
Base DPC++ docker container on the image from intel/llvm.
- Loading branch information
Showing
3 changed files
with
7 additions
and
24 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,24 +1,7 @@ | ||
# DPC++ version (git revision) to install | ||
# 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 khronosgroup/sycl-cts-ci:common | ||
|
||
ARG IMPL_VERSION | ||
RUN test -n "$IMPL_VERSION" || ( echo "Error: IMPL_VERSION is not set"; exit 1 ) | ||
|
||
RUN git clone https://github.com/intel/llvm.git \ | ||
--branch=sycl --single-branch --shallow-since=2021-09-01 \ | ||
--recurse-submodules /tmp/dpcpp && \ | ||
cd /tmp/dpcpp && \ | ||
git checkout $IMPL_VERSION && \ | ||
python3 /tmp/dpcpp/buildbot/configure.py \ | ||
--src-dir=/tmp/dpcpp \ | ||
--obj-dir=/tmp/build \ | ||
--build-type=Release \ | ||
--cmake-opt=-DCMAKE_INSTALL_PREFIX=/sycl && \ | ||
python3 /tmp/dpcpp/buildbot/compile.py \ | ||
--src-dir=/tmp/dpcpp \ | ||
--obj-dir=/tmp/build && \ | ||
rm -rf /tmp/dpcpp /tmp/build | ||
FROM ghcr.io/intel/llvm/sycl_ubuntu2204_nightly:no-drivers-$IMPL_VERSION | ||
|
||
COPY configure.sh /scripts/ |
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