File tree Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Expand file tree Collapse file tree 1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ ARG ONEAPI_VERSION=2025.1.1-0-devel-ubuntu24.04
2
+
3
+ FROM intel/oneapi-basekit:$ONEAPI_VERSION AS build
4
+ WORKDIR /app
5
+
6
+ RUN apt-get update && \
7
+ apt-get install -y build-essential libsdl2-dev wget cmake git \
8
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
9
+
10
+ COPY .. .
11
+ # Enable SYCL
12
+ ARG GGML_SYCL_F16=OFF
13
+ RUN if [ "${GGML_SYCL_F16}" = "ON" ]; then \
14
+ echo "GGML_SYCL_F16 is set" \
15
+ && export OPT_SYCL_F16="-DGGML_SYCL_F16=ON" ; \
16
+ fi && \
17
+ make base.en CMAKE_ARGS="-DGGML_SYCL=1 -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx ${OPT_SYCL_F16}"
18
+
19
+ FROM intel/oneapi-basekit:$ONEAPI_VERSION AS runtime
20
+ WORKDIR /app
21
+
22
+ RUN apt-get update && \
23
+ apt-get install -y curl ffmpeg libsdl2-dev wget cmake git \
24
+ && rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*
25
+
26
+ COPY --from=build /app /app
27
+ ENV PATH=/app/build/bin:$PATH
28
+ ENTRYPOINT [ "bash" , "-c" ]
You can’t perform that action at this time.
0 commit comments