ggml-quants : fix Zig and Swift builds + quantize tool

ggml-ci
This commit is contained in:
Georgi Gerganov 2023-10-28 17:21:36 +03:00
parent 3412be728b
commit ee37e35dc5
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 9 additions and 17 deletions

View file

@ -42,13 +42,12 @@ let package = Package(
"llama.cpp",
"ggml-alloc.c",
"ggml-backend.c",
"k_quants.c",
"ggml-quants.c",
] + additionalSources,
resources: resources,
publicHeadersPath: "spm-headers",
cSettings: [
.unsafeFlags(["-Wno-shorten-64-to-32", "-O3", "-DNDEBUG"]),
.define("GGML_USE_K_QUANTS"),
.define("GGML_USE_ACCELERATE")
// NOTE: NEW_LAPACK will required iOS version 16.4+
// We should consider add this in the future when we drop support for iOS 14