sycl : reduce the build threads to half (#30236)

This commit is contained in:
Neo Zhang authored and GitHub committed 2026-10-16 09:44:24 +03:00
1 parent 13de11e78f
commit c0083e3052
1 file changed
+1 -1
+1 -1
View File
@@ -50,7 +50,7 @@ RUN if [ "${GGML_SYCL_F16}" = "ON" ]; then \
fi && \ fi && \
echo "Building with dynamic libs" && \ echo "Building with dynamic libs" && \
cmake -B build -DGGML_NATIVE=OFF -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DLLAMA_BUILD_TESTS=OFF ${OPT_SYCL_F16} && \ cmake -B build -DGGML_NATIVE=OFF -DGGML_SYCL=ON -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON -DLLAMA_BUILD_TESTS=OFF ${OPT_SYCL_F16} && \
cmake --build build --config Release -j$(nproc) cmake --build build --config Release -j$((($(nproc)+1)/2))
RUN mkdir -p /app/lib && \ RUN mkdir -p /app/lib && \
find build -name "*.so*" -exec cp -P {} /app/lib \; find build -name "*.so*" -exec cp -P {} /app/lib \;