Skip to content

Commit 71775d6

Browse files
committed
feat: Add SYCL Dockerfile
1 parent 23031ef commit 71775d6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Dockerfile.sycl

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
ARG SYCL_VERSION=2025.1.0-0
2+
3+
FROM intel/oneapi-basekit:${SYCL_VERSION}-devel-ubuntu24.04 AS build
4+
5+
RUN apt-get update && apt-get install -y cmake
6+
7+
WORKDIR /sd.cpp
8+
9+
COPY . .
10+
11+
RUN mkdir build && cd build && \
12+
cmake .. -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DSD_SYCL=ON -DCMAKE_BUILD_TYPE=Release && \
13+
cmake --build . --config Release -j$(nproc)
14+
15+
FROM intel/oneapi-basekit:${SYCL_VERSION}-devel-ubuntu24.04 AS runtime
16+
17+
COPY --from=build /sd.cpp/build/bin/sd /sd
18+
19+
ENTRYPOINT [ "/sd" ]

0 commit comments

Comments
 (0)