-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add initial macos notes for llama.cpp
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## Macos notes for llama.cpp | ||
|
||
### Building with xcodebuild | ||
We need to install an iOS platform install to build which can be installed using: | ||
```console | ||
$ xcodebuild -downloadPlatform iOS | ||
``` | ||
|
||
To build the project with xcodebuild, use the following command: | ||
```console | ||
$ xcodebuild -scheme llama -destination "generic/platform=iOS" | ||
``` | ||
|
||
### multiple resources named 'ggml-metal.metal' in target 'llama' | ||
I ran into this issue when trying to build the project with xcodebuild. The error message is: | ||
```console | ||
$ xcodebuild -scheme llama -destination "generic/platform=iOS" | ||
Command line invocation: | ||
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -scheme llama -destination generic/platform=iOS | ||
|
||
User defaults from command line: | ||
IDEPackageSupportUseBuiltinSCM = YES | ||
|
||
Resolve Package Graph | ||
multiple resources named 'ggml-metal.metal' in target 'llama'multiple resources named 'ggml-metal-embed.metal' in target 'llama' | ||
|
||
Resolved source packages: | ||
llama: /Users/danbev/work/llama.cpp | ||
|
||
2024-11-01 07:02:29.107 xcodebuild[45972:9437010] Writing error result bundle to /var/folders/7h/g216wj3x0qldxw27twph8mwr0000gn/T/ResultBundle_2024-01-11_07-02-0029.xcresult | ||
xcodebuild: error: Could not resolve package dependencies: | ||
multiple resources named 'ggml-metal.metal' in target 'llama' | ||
multiple resources named 'ggml-metal-embed.metal' in target 'llama' | ||
``` | ||
This was due to there being a `ggml-metal.metal` file in the build directory: | ||
```console | ||
$ find . -name ggml-metal.metal | ||
./build/bin/ggml-metal.metal | ||
./ggml/src/ggml-metal.metal | ||
``` | ||
Removing this file allowed the build to progress. |