Skip to content

Commit 58c438c

Browse files
authored
Add Accelerate/BLAS when using Swift (ggml-org#765)
1 parent 53dbba7 commit 58c438c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Package.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ let package = Package(
1313
path: ".",
1414
sources: ["ggml.c", "llama.cpp"],
1515
publicHeadersPath: "spm-headers",
16-
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])]
16+
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],
17+
linkerSettings: [
18+
.linkedFramework("Accelerate")
19+
]
1720
),
1821
],
1922
cxxLanguageStandard: .cxx11

0 commit comments

Comments
 (0)