From c6f20c86a7ebd9934c9e780fb66fe60cad9d63ad Mon Sep 17 00:00:00 2001 From: Richard Palethorpe Date: Mon, 7 Apr 2025 16:25:53 +0100 Subject: [PATCH] feat: Add SYCL Dockerfile --- Dockerfile.sycl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Dockerfile.sycl diff --git a/Dockerfile.sycl b/Dockerfile.sycl new file mode 100644 index 000000000..1b855d6e4 --- /dev/null +++ b/Dockerfile.sycl @@ -0,0 +1,19 @@ +ARG SYCL_VERSION=2025.1.0-0 + +FROM intel/oneapi-basekit:${SYCL_VERSION}-devel-ubuntu24.04 AS build + +RUN apt-get update && apt-get install -y cmake + +WORKDIR /sd.cpp + +COPY . . + +RUN mkdir build && cd build && \ + cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSD_SYCL=ON -DCMAKE_BUILD_TYPE=Release && \ + cmake --build . --config Release -j$(nproc) + +FROM intel/oneapi-basekit:${SYCL_VERSION}-devel-ubuntu24.04 AS runtime + +COPY --from=build /sd.cpp/build/bin/sd /sd + +ENTRYPOINT [ "/sd" ]