koboldcpp/examples/sycl
Neo Zhang eddd7a13a5
[SYCL] Optimize Q4_0 mul_mat for Arc770, add scripts (#22291)
* opt arc770 for Q4_0

* add for Q4_0

* update the script

* add help script for windows

* update guide

* fix format issue

* convert from dos to unix for format issue

* fix missed -sm parameter
2026-04-25 09:20:14 +03:00
..
build.sh [SYCL] Enhance build script to use half cores to build, avoid OS hang (#21093) 2026-03-29 09:02:45 +08:00
CMakeLists.txt libs : rename libcommon -> libllama-common (#21936) 2026-04-17 11:11:46 +03:00
ls-sycl-device.cpp Fix locale-dependent float printing in GGUF metadata (#17331) 2026-03-04 09:30:40 +01:00
README.md chore : correct typos [no ci] (#20041) 2026-03-05 08:50:21 +01:00
run-llama2.sh [SYCL] Enhance build script to use half cores to build, avoid OS hang (#21093) 2026-03-29 09:02:45 +08:00
start-svr.sh [SYCL] Optimize Q4_0 mul_mat for Arc770, add scripts (#22291) 2026-04-25 09:20:14 +03:00
test.sh [SYCL] Optimize Q4_0 mul_mat for Arc770, add scripts (#22291) 2026-04-25 09:20:14 +03:00
win-build-sycl.bat refactor : remove libcurl, use OpenSSL when available (#18828) 2026-01-14 18:02:47 +01:00
win-run-llama2.bat create test.sh to enhance the parameters for testing, update the guide, rm useless script (#19243) 2026-02-01 18:24:00 +08:00
win-start-svr.bat [SYCL] Optimize Q4_0 mul_mat for Arc770, add scripts (#22291) 2026-04-25 09:20:14 +03:00
win-test.bat [SYCL] Optimize Q4_0 mul_mat for Arc770, add scripts (#22291) 2026-04-25 09:20:14 +03:00

llama.cpp/example/sycl

This example program provides the tools for llama.cpp for SYCL on Intel GPU.

Tool

Tool Name Function Status
llama-ls-sycl-device List all SYCL devices with ID, compute capability, max work group size, etc. Support

llama-ls-sycl-device

List all SYCL devices with ID, compute capability, max work group size, etc.

  1. Build the llama.cpp for SYCL for the specified target (using GGML_SYCL_TARGET).

  2. Enable oneAPI running environment (if GGML_SYCL_TARGET is set to INTEL -default-)

source /opt/intel/oneapi/setvars.sh
  1. Execute
./build/bin/llama-ls-sycl-device

Check the ID in startup log, like:

found 2 SYCL devices:
|  |                   |                                       |       |Max    |        |Max  |Global |                     |
|  |                   |                                       |       |compute|Max work|sub  |mem    |                     |
|ID|        Device Type|                                   Name|Version|units  |group   |group|size   |       Driver version|
|--|-------------------|---------------------------------------|-------|-------|--------|-----|-------|---------------------|
| 0| [level_zero:gpu:0]|                Intel Arc A770 Graphics|    1.3|    512|    1024|   32| 16225M|            1.3.29138|
| 1| [level_zero:gpu:1]|                 Intel UHD Graphics 750|    1.3|     32|     512|   32| 62631M|            1.3.29138|