]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
sycl : add build instruction (#870)
authorYilong Guo <redacted>
Sun, 30 Jun 2024 16:05:44 +0000 (09:05 -0700)
committerGitHub <redacted>
Sun, 30 Jun 2024 16:05:44 +0000 (18:05 +0200)
README.md

index af7ac97c53b7c5581872f2eb09e49b5b1951cac0..1a255440567da5ce94e218094afac887888dd0fd 100644 (file)
--- a/README.md
+++ b/README.md
@@ -114,6 +114,18 @@ cmake -DGGML_CUDA=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda-12.1/bin/nvcc ..
 cmake -DCMAKE_C_COMPILER="$(hipconfig -l)/clang" -DCMAKE_CXX_COMPILER="$(hipconfig -l)/clang++" -DGGML_HIPBLAS=ON
 ```
 
+## Using SYCL
+
+```bash
+# linux
+source /opt/intel/oneapi/setvars.sh
+cmake -G "Ninja" -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DGGML_SYCL=ON ..
+
+# windows
+"C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
+cmake -G "Ninja" -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=icx -DGGML_SYCL=ON ..
+```
+
 ## Compiling for Android
 
 Download and unzip the NDK from this download [page](https://developer.android.com/ndk/downloads). Set the NDK_ROOT_PATH environment variable or provide the absolute path to the CMAKE_ANDROID_NDK in the command below.