You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/backend/SYCL.md
+12-24Lines changed: 12 additions & 24 deletions
Original file line number
Diff line number
Diff line change
@@ -293,31 +293,26 @@ Similar to the native `sycl-ls`, available SYCL devices can be queried as follow
293
293
```sh
294
294
./build/bin/llama-ls-sycl-device
295
295
```
296
-
A example of such log in a system with 1*intel CPU* and 1 *intel GPU*can look like the following:
296
+
This command will only display the selected backend that is supported by SYCL. The default backend is level_zero. For example, in a system with 2*intel GPU*it would look like the following:
297
297
```
298
-
found 6 SYCL devices:
298
+
found 2 SYCL devices:
299
+
299
300
| | | |Compute |Max compute|Max work|Max sub| |
300
301
|ID| Device Type| Name|capability|units |group |group |Global mem size|
| compute capability 3.0 | OpenCL driver/runtime, slower than level-zero in most cases |
314
307
315
308
4. Launch inference
316
309
317
310
There are two device selection modes:
318
311
319
312
- Single device: Use one device target specified by the user.
320
-
- Multiple devices: Automatically select the devices with the same largest Max compute-units.
313
+
- Multiple devices: Automatically choose the devices with the same backend.
314
+
315
+
In two device selection modes, the default SYCL backend is level_zero, you can choose other backend supported by SYCL by setting environment variable ONEAPI_DEVICE_SELECTOR.
@@ -474,33 +469,26 @@ Similar to the native `sycl-ls`, available SYCL devices can be queried as follow
474
469
build\bin\ls-sycl-device.exe
475
470
```
476
471
477
-
The output of this command in a system with 1*intel CPU* and 1 *intel GPU* would look like the following:
472
+
This command will only display the selected backend that is supported by SYCL. The default backend is level_zero. For example, in a system with 2*intel GPU* it would look like the following:
478
473
```
479
-
found 6 SYCL devices:
474
+
found 2 SYCL devices:
480
475
| | | |Compute |Max compute|Max work|Max sub| |
481
476
|ID| Device Type| Name|capability|units |group |group |Global mem size|
| compute capability 1.3 | Level-zero running time, recommended |
495
-
| compute capability 3.0 | OpenCL running time, slower than level-zero in most cases |
496
-
497
483
498
484
4. Launch inference
499
485
500
486
There are two device selection modes:
501
487
502
-
- Single device: Use one device assigned by user.
503
-
- Multiple devices: Automatically choose the devices with the same biggest Max compute units.
488
+
- Single device: Use one device assigned by user. Default device id is 0.
489
+
- Multiple devices: Automatically choose the devices with the same backend.
490
+
491
+
In two device selection modes, the default SYCL backend is level_zero, you can choose other backend supported by SYCL by setting environment variable ONEAPI_DEVICE_SELECTOR.
0 commit comments