From b333b06772c89d96aacb5490d6a219fba7c09cc6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 12 Feb 2026 20:57:17 +0100 Subject: Engage! --- llama.cpp/examples/sycl/win-build-sycl.bat | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 llama.cpp/examples/sycl/win-build-sycl.bat (limited to 'llama.cpp/examples/sycl/win-build-sycl.bat') diff --git a/llama.cpp/examples/sycl/win-build-sycl.bat b/llama.cpp/examples/sycl/win-build-sycl.bat new file mode 100644 index 0000000..fc8b33b --- /dev/null +++ b/llama.cpp/examples/sycl/win-build-sycl.bat @@ -0,0 +1,31 @@ + +:: MIT license +:: Copyright (C) 2024 Intel Corporation +:: SPDX-License-Identifier: MIT + + +IF not exist build (mkdir build) +cd build +if %errorlevel% neq 0 goto ERROR + +@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force +if %errorlevel% neq 0 goto ERROR + +:: for FP16 +:: faster for long-prompt inference +:: cmake -G "MinGW Makefiles" .. -DLLAMA_OPENSSL=OFF -DGGML_SYCL=ON -DCMAKE_CXX_COMPILER=icx -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DGGML_SYCL_F16=ON + +:: for FP32 +cmake -G "Ninja" .. -DLLAMA_OPENSSL=OFF -DGGML_SYCL=ON -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=icx -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release +if %errorlevel% neq 0 goto ERROR + +:: build all binary +cmake --build . -j +if %errorlevel% neq 0 goto ERROR + +cd .. +exit /B 0 + +:ERROR +echo comomand error: %errorlevel% +exit /B %errorlevel% -- cgit v1.2.3