-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix android not building on root llama.cpp repo
- Loading branch information
1 parent
a1417e3
commit fb902f8
Showing
3 changed files
with
9 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
set(BUILD_SHARED_LIBS ON) | ||
|
||
if(ANDROID) | ||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DANDROID_ARM_NEON=TRUE -DANDROID_TOOLCHAIN=clang -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23") | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DANDROID_ARM_NEON=TRUE -DANDROID_TOOLCHAIN=clang -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-23") | ||
endif() | ||
|
||
add_subdirectory(./llama.cpp) | ||
add_subdirectory(./butler) |
Submodule llama.cpp
updated
4 files
+44 −3 | ggml-metal.m | |
+162 −1 | ggml-metal.metal | |
+23 −52 | ggml-opencl.cpp | |
+0 −18 | llama.cpp |