Daniel Bevenius 29f538ac63 examples : remove references to `make` in examples [no ci] (#15457) 4 ماه پیش
..
CMakeLists.txt 1c641e6aac `build`: rename main → llama-cli, server → llama-server, llava-cli → llama-llava-cli, etc... (#7809) 1 سال پیش
README.md 0478174d59 [SYCL] Updated SYCL device filtering (#8901) 1 سال پیش
build.sh e9b6350e61 scripts : make the shell scripts cross-platform (#14341) 6 ماه پیش
ls-sycl-device.cpp 715641391d Support multiple GPUs (split mode) on SYCL backend (#5806) 1 سال پیش
run-llama2.sh e9b6350e61 scripts : make the shell scripts cross-platform (#14341) 6 ماه پیش
run-llama3.sh e9b6350e61 scripts : make the shell scripts cross-platform (#14341) 6 ماه پیش
win-build-sycl.bat 29f538ac63 examples : remove references to `make` in examples [no ci] (#15457) 4 ماه پیش
win-run-llama2.bat 725f23f1f3 sycl : backend documentation review (#13544) 8 ماه پیش
win-run-llama3.bat 725f23f1f3 sycl : backend documentation review (#13544) 8 ماه پیش

README.md

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, ect.|Support|

llama-ls-sycl-device

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

  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
    
  3. 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|