Skip to content

Commit

Permalink
Add CI build step for SimSYCL
Browse files Browse the repository at this point in the history
  • Loading branch information
fknorr committed Jan 13, 2025
1 parent ba4e270 commit 8518e9a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cts_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ jobs:
version: df00dcb50e4ce07dc475dd0bf176acc323e0a240
- sycl-impl: adaptivecpp
version: 061e2d6ffe1084021d99f22ac1f16e28c6dab899
- sycl-impl: simsycl
version: 39368b9a54f1b6a5d9d583497dbf56e5bb8b5543
steps:
- name: Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -117,6 +119,8 @@ jobs:
version: df00dcb50e4ce07dc475dd0bf176acc323e0a240
- sycl-impl: adaptivecpp
version: 061e2d6ffe1084021d99f22ac1f16e28c6dab899
- sycl-impl: simsycl
version: 39368b9a54f1b6a5d9d583497dbf56e5bb8b5543
env:
container-workspace: /__w/${{ github.event.repository.name }}/${{ github.event.repository.name }}
parallel-build-jobs: 2
Expand Down
30 changes: 30 additions & 0 deletions docker/simsycl/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# SimSYCL version (git revision) to install
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 export DEBIAN_FRONTEND=noninteractive && \
apt update && \
apt install -y --no-install-recommends \
libboost-context-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists*

RUN git clone https://github.com/celerity/SimSYCL.git \
--branch=master --single-branch --shallow-since=2024-12-01 \
--recurse-submodules /tmp/SimSYCL && \
cd /tmp/SimSYCL && \
git checkout $IMPL_VERSION && \
cmake /tmp/SimSYCL -G Ninja -B /tmp/build \
-DSIMSYCL_ANNOTATE_SYCL_DEPRECATIONS=OFF \
-DSIMSYCL_ENABLE_ASAN=ON \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DCMAKE_INSTALL_PREFIX=/sycl && \
cmake --build /tmp/build --target install && \
rm -rf /tmp/SimSYCL /tmp/build

COPY configure.sh /scripts/
14 changes: 14 additions & 0 deletions docker/simsycl/configure.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -o errexit -o pipefail -o noclobber -o nounset

cmake . -G Ninja -B build \
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \
-DSYCL_IMPLEMENTATION=SimSYCL \
-DCMAKE_PREFIX_PATH=/sycl \
-DCMAKE_BUILD_TYPE=Debug \
-DSYCL_CTS_ENABLE_OPENCL_INTEROP_TESTS=0 \
-DSYCL_CTS_ENABLE_HALF_TESTS=0 \
-DSYCL_CTS_ENABLE_FULL_CONFORMANCE=0 \
-DSYCL_CTS_ENABLE_DEPRECATED_FEATURES_TESTS=1 \
$@

0 comments on commit 8518e9a

Please sign in to comment.