Skip to content

Commit eebefa3

Browse files
committed
docs: update build instruction
1 parent 9649fe3 commit eebefa3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -453,20 +453,20 @@ mkdir build
453453
cd build
454454
```
455455

456-
Currently, vulkan backend is not working for embedding, don't add the `-DLLAMA_VULKAN=1` flag
457-
458456
Run `cmake`.
459457

460458
On Windows:
461459
```
462-
cmake .. -GNinja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLLAMA_NATIVE=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release
460+
cmake .. -GNinja -DCMAKE_C_COMPILER=clang-cl -DCMAKE_CXX_COMPILER=clang-cl -DLLAMA_NATIVE=OFF -DLLAMA_VULKAN=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release
463461
```
464462

465463
On Linux:
466464
```
467-
cmake .. -GNinja -DLLAMA_NATIVE=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCMAKE_BUILD_TYPE=Release
465+
cmake .. -GNinja -DLLAMA_NATIVE=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DLLAMA_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
468466
```
469467

468+
Vulkan build works for Windows and Linux, if you want a cpu build, set `-DLLAMA_VULKAN=OFF` instead.
469+
470470
For Android, set `$NDK_PATH` to your android ndk directory, then:
471471
```
472472
cmake .. -GNinja -DCMAKE_TOOLCHAIN_FILE=$NDK_PATH\cmake\android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23 -DCMAKE_C_FLAGS="-mcpu=generic" -DCMAKE_CXX_FLAGS="-mcpu=generic" -DCMAKE_BUILD_TYPE=Release
@@ -480,4 +480,4 @@ ninja -j4
480480
ninja install
481481
```
482482

483-
The folder `../install/addons/godot_llm` can be copy directly to the `addons` folder of your godot project.
483+
The folder `../install/vulkan/addons/godot_llm` (`cpu` instead of `vulkan` for cpu build) can be copy directly to the `addons` folder of your godot project.

0 commit comments

Comments
 (0)