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
You can use Visual Studio solution to build and work on llama.cpp on Windows. You need to convert the CMake Project into a `.sln` file.
570
570
571
-
- Using Intel C++ Compiler for the Entire Project
572
-
573
571
If you want to use the Intel C++ Compiler for the entire `llama.cpp` project, run the following command:
574
572
575
573
```Powershell
576
574
cmake -B build -G "Visual Studio 17 2022" -T "Intel C++ Compiler 2025" -A x64 -DGGML_SYCL=ON -DCMAKE_BUILD_TYPE=Release
577
575
```
578
576
579
-
- Using Intel C++ Compiler Only for ggml-sycl
580
-
581
577
If you prefer to use the Intel C++ Compiler only for `ggml-sycl`, ensure that `ggml` and its backend libraries are built as shared libraries ( i.e. `-DBUILD_SHARED_LIBRARIES=ON`, this is default behaviour):
582
578
583
579
```Powershell
@@ -616,9 +612,9 @@ Once it is completed, final results will be in **build/Release/bin**
616
612
617
613
- You can avoid specifying `SYCL_INCLUDE_DIR` and `SYCL_LIBRARY_DIR` in the CMake command by setting the environment variables:
618
614
619
-
- `SYCL_INCLUDE_DIR_HINT`
615
+
-`SYCL_INCLUDE_DIR_HINT`
620
616
621
-
- `SYCL_LIBRARY_DIR_HINT`
617
+
-`SYCL_LIBRARY_DIR_HINT`
622
618
623
619
- Above instruction has been tested with Visual Studio 17 Community edition and oneAPI 2025.0. We expect them to work also with future version if the instructions are adapted accordingly.
0 commit comments