Skip to content

Commit be018c1

Browse files
author
Alberto Cabrera
committed
sycl: Improved docs
1 parent 38e7664 commit be018c1

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

docs/backend/SYCL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ sycl-ls
252252

253253
- **Intel GPU**
254254

255-
When targeting an intel GPU, the user should expect one or more level-zero devices among the available SYCL devices. Please make sure that at least one GPU is present, for instance `[level_zero:gpu]` in the sample output below:
255+
When targeting an intel GPU, the user should expect one or more devices among the available SYCL devices. Please make sure that at least one GPU is present via `sycl-ls`, for instance `[level_zero:gpu]` in the sample output below:
256256

257257
```
258258
[opencl:acc][opencl:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2023.16.10.0.17_160000]
@@ -767,7 +767,7 @@ use 1 SYCL GPUs: [0] with Max compute units:512
767767

768768
## Q&A
769769

770-
- Error: `error while loading shared libraries: libsycl.so.8: cannot open shared object file: No such file or directory`.
770+
- Error: `error while loading shared libraries: libsycl.so: cannot open shared object file: No such file or directory`.
771771

772772
- Potential cause: Unavailable oneAPI installation or not set ENV variables.
773773
- Solution: Install *oneAPI base toolkit* and enable its ENV through: `source /opt/intel/oneapi/setvars.sh`.

examples/sycl/run-llama3.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
# Copyright (C) 2025 Intel Corporation
55
# SPDX-License-Identifier: MIT
66

7-
export ONEAPI_DEVICE_SELECTOR="level_zero:0"
7+
# If you want more control, DPC++ Allows selecting a specific device through the
8+
# following environment variable
9+
#export ONEAPI_DEVICE_SELECTOR="level_zero:0"
810
source /opt/intel/oneapi/setvars.sh
911

1012
#export GGML_SYCL_DEBUG=1

examples/sycl/win-run-llama3.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ set INPUT2="Building a website can be done in 10 simple steps:\nStep 1:"
66
@call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat" intel64 --force
77

88

9-
.\build\bin\llama-cli.exe -m models\Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf -p %INPUT2% -n 400 -e -ngl 33
9+
.\build\bin\llama-cli.exe -m models\Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf -p %INPUT2% -n 400 -e -ngl 99

0 commit comments

Comments
 (0)