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 : fix build on Windows with Snapdragon X (ggml-org#8531)
* Improvements for Windows with Snapdragon X
* Revert "Improvements for Windows with Snapdragon X"
This reverts commit bf21397.
* Improvements for Windows with Snapdragon X
* WOA build clarifications
* WIndows on ARM build clarifications
* cmake build for Windows clarifications
* Update docs/build.md
Co-authored-by: Georgi Gerganov <[email protected]>
---------
Co-authored-by: AndreasKunar <andreaskmsn.com>
Co-authored-by: Georgi Gerganov <[email protected]>
Copy file name to clipboardExpand all lines: docs/build.md
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In order to build llama.cpp you have four different options.
16
16
make
17
17
```
18
18
19
-
- On Windows:
19
+
- On Windows (x86/x64 only, arm64 requires cmake):
20
20
21
21
1. Download the latest fortran version of [w64devkit](https://github.com/skeeto/w64devkit/releases).
22
22
2. Extract `w64devkit` on your pc.
@@ -60,6 +60,17 @@ In order to build llama.cpp you have four different options.
60
60
cmake -B build -G "Xcode"
61
61
cmake --build build --config Debug
62
62
```
63
+
- Building for Windows (x86, x64 and arm64) with MSVC or clang as compilers:
64
+
- Install Visual Studio 2022, e.g. via the [Community Edition](https://visualstudio.microsoft.com/de/vs/community/). In the installer, selectat least the following options (this also automatically installs the required additional tools like CMake,...):
65
+
- Tab Workload: Desktop-development with C++
66
+
- Tab Components (select quickly via search): C++-_CMake_ Tools for Windows, _Git_ for Windows, C++-_Clang_ Compiler for Windows, MS-Build Support for LLVM-Toolset (clang)
67
+
- Please remember to always use a Developer Command Prompt / PowerShell for VS2022 for git, build, test
Note: Building for arm64 could also be done just with MSVC (with the build-arm64-windows-MSVC preset, or the standard CMake build instructions). But MSVC does not support inline ARM assembly-code, used e.g. for the accelerated Q4_0_4_8 CPU kernels.
0 commit comments