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
GGML_SYCL_DEVICE=0 ./build/bin/main -m models/llama-2-7b.Q4_0.gguf -p "Building a website can be done in 10 simple steps:" -n 400 -e -ngl 33
292
+
ZES_ENABLE_SYSMAN=1 ./build/bin/main -m models/llama-2-7b.Q4_0.gguf -p "Building a website can be done in 10 simple steps:" -n 400 -e -ngl 33 -sm none -mg 0
293
+
```
294
+
or run by script:
295
+
296
+
```sh
297
+
./examples/sycl/run_llama2.sh 0
298
+
```
299
+
300
+
- Use multiple devices:
301
+
302
+
```sh
303
+
ZES_ENABLE_SYSMAN=1 ./build/bin/main -m models/llama-2-7b.Q4_0.gguf -p "Building a website can be done in 10 simple steps:" -n 400 -e -ngl 33 -sm layer
280
304
```
281
305
or run by script:
282
306
@@ -289,13 +313,19 @@ Note:
289
313
- By default, mmap is used to read model file. In some cases, it leads to the hang issue. Recommend to use parameter **--no-mmap** to disable mmap() to skip this issue.
290
314
291
315
292
-
5. Check the device ID in output
316
+
5. Verify the device ID in output
317
+
318
+
Verify to see if the selected GPU is shown in the output, like:
293
319
294
-
Like:
295
320
```
296
-
Using device **0** (Intel(R) Arc(TM) A770 Graphics) as main device
321
+
detect 1 SYCL GPUs: [0] with top Max compute units:512
322
+
```
323
+
Or
324
+
```
325
+
use 1 SYCL GPUs: [0] with Max compute units:512
297
326
```
298
327
328
+
299
329
## Windows
300
330
301
331
### Setup Environment
@@ -355,7 +385,7 @@ a. Download & install cmake for Windows: https://cmake.org/download/
355
385
356
386
b. Download & install mingw-w64 make for Windows provided by w64devkit
357
387
358
-
- Download the latest fortran version of [w64devkit](https://github.com/skeeto/w64devkit/releases).
388
+
- Download the 1.19.0 version of [w64devkit](https://github.com/skeeto/w64devkit/releases/download/v1.19.0/w64devkit-1.19.0.zip).
build\bin\main.exe -m models\llama-2-7b.Q4_0.gguf -p "Building a website can be done in 10 simple steps:\nStep 1:" -n 400 -e -ngl 33 -s 0
499
+
build\bin\main.exe -m models\llama-2-7b.Q4_0.gguf -p "Building a website can be done in 10 simple steps:\nStep 1:" -n 400 -e -ngl 33 -s 0 -sm none -mg 0
500
+
```
501
+
502
+
- Use multiple devices:
503
+
504
+
```
505
+
build\bin\main.exe -m models\llama-2-7b.Q4_0.gguf -p "Building a website can be done in 10 simple steps:\nStep 1:" -n 400 -e -ngl 33 -s 0 -sm layer
457
506
```
458
507
or run by script:
459
508
@@ -466,11 +515,17 @@ Note:
466
515
- By default, mmap is used to read model file. In some cases, it leads to the hang issue. Recommend to use parameter **--no-mmap** to disable mmap() to skip this issue.
467
516
468
517
469
-
5. Check the device ID in output
470
518
471
-
Like:
519
+
5. Verify the device ID in output
520
+
521
+
Verify to see if the selected GPU is shown in the output, like:
522
+
472
523
```
473
-
Using device **0** (Intel(R) Arc(TM) A770 Graphics) as main device
524
+
detect 1 SYCL GPUs: [0] with top Max compute units:512
525
+
```
526
+
Or
527
+
```
528
+
use 1 SYCL GPUs: [0] with Max compute units:512
474
529
```
475
530
476
531
## Environment Variable
@@ -489,7 +544,6 @@ Using device **0** (Intel(R) Arc(TM) A770 Graphics) as main device
489
544
490
545
|Name|Value|Function|
491
546
|-|-|-|
492
-
|GGML_SYCL_DEVICE|0 (default) or 1|Set the device id used. Check the device ids by default running output|
493
547
|GGML_SYCL_DEBUG|0 (default) or 1|Enable log function by macro: GGML_SYCL_DEBUG|
494
548
|ZES_ENABLE_SYSMAN| 0 (default) or 1|Support to get free memory of GPU by sycl::aspect::ext_intel_free_memory.<br>Recommended to use when --split-mode = layer|
495
549
@@ -507,6 +561,9 @@ Using device **0** (Intel(R) Arc(TM) A770 Graphics) as main device
507
561
508
562
## Q&A
509
563
564
+
Note: please add prefix **[SYCL]** in issue title, so that we will check it as soon as possible.
565
+
566
+
510
567
- Error: `error while loading shared libraries: libsycl.so.7: cannot open shared object file: No such file or directory`.
511
568
512
569
Miss to enable oneAPI running environment.
@@ -538,4 +595,4 @@ Using device **0** (Intel(R) Arc(TM) A770 Graphics) as main device
0 commit comments