-
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.
- Loading branch information
Showing
3 changed files
with
48 additions
and
0 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 |
---|---|---|
@@ -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/ |
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 |
---|---|---|
@@ -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 \ | ||
$@ |