Skip to content

Commit 06fe2ca

Browse files
committed
Move oneMath documentation to Nvidia and AMD sections
1 parent 6af33c9 commit 06fe2ca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/backend/SYCL.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ For AMD GPUs we should expect at least one SYCL-HIP device [`hip:gpu`]:
280280

281281
### II. Build llama.cpp
282282

283-
The SYCL backend depends on [oneMath](https://github.com/uxlfoundation/oneMath). By default it is automatically built along with the project. A specific build can be provided by setting the CMake flag `-DoneMath_DIR=/path/to/oneMath/install/lib/cmake/oneMath`.
284-
285283
#### Intel GPU
286284

287285
```
@@ -306,6 +304,9 @@ cmake --build build --config Release -j -v
306304

307305
#### Nvidia GPU
308306

307+
The SYCL backend depends on [oneMath](https://github.com/uxlfoundation/oneMath) for Nvidia and AMD devices.
308+
By default it is automatically built along with the project. A specific build can be provided by setting the CMake flag `-DoneMath_DIR=/path/to/oneMath/install/lib/cmake/oneMath`.
309+
309310
```sh
310311
# Build LLAMA with Nvidia BLAS acceleration through SYCL
311312
# Setting GGML_SYCL_DEVICE_ARCH is optional but can improve performance
@@ -323,6 +324,9 @@ cmake --build build --config Release -j -v
323324

324325
#### AMD GPU
325326

327+
The SYCL backend depends on [oneMath](https://github.com/uxlfoundation/oneMath) for Nvidia and AMD devices.
328+
By default it is automatically built along with the project. A specific build can be provided by setting the CMake flag `-DoneMath_DIR=/path/to/oneMath/install/lib/cmake/oneMath`.
329+
326330
```sh
327331
# Build LLAMA with rocBLAS acceleration through SYCL
328332

0 commit comments

Comments
 (0)