+ ggml-opencl.c

This commit is contained in:
Jed Fox 2023-05-06 21:35:00 -04:00
parent dc61b7c682
commit 2dc7fc9491
No known key found for this signature in database
GPG Key ID: 0B61D18EA54B47E1

View File

@ -11,7 +11,7 @@ let package = Package(
.target(
name: "llama",
path: ".",
sources: ["ggml.c", "llama.cpp"],
sources: ["ggml.c", "llama.cpp", "ggml-opencl.c"],
publicHeadersPath: "spm-headers",
cSettings: [.unsafeFlags(["-Wno-shorten-64-to-32"]), .define("GGML_USE_ACCELERATE"), .define("GGML_USE_CLBLAST")],
linkerSettings: [.linkedFramework("Accelerate"), .linkedFramework("OpenCL")]