Skip to content

Commit

Permalink
Add Accelerate/BLAS when using Swift (ggerganov#765)
Browse files Browse the repository at this point in the history
  • Loading branch information
a10y committed Apr 5, 2023
1 parent 53dbba7 commit 58c438c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ let package = Package(
path: ".",
sources: ["ggml.c", "llama.cpp"],
publicHeadersPath: "spm-headers",
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"])]
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE")],
linkerSettings: [
.linkedFramework("Accelerate")
]
),
],
cxxLanguageStandard: .cxx11
Expand Down

0 comments on commit 58c438c

Please sign in to comment.