Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

notes

Manav Rathi76c1c31f819d
diff --git a/mobile/native/darwin/Apps/Ensu/README.md b/mobile/native/darwin/Apps/Ensu/README.md
index 56b5d410b5..2ab3580e31 100644
--- a/mobile/native/darwin/Apps/Ensu/README.md
+++ b/mobile/native/darwin/Apps/Ensu/README.md
@@ -27,6 +27,8 @@ Run `./build.sh --help` or `./run.sh --help` for full options.
The helper scripts default release outputs to `build/Archive/Ensu.xcarchive` and `build/Export/`
unless you override them.
+cmake is a prerequisite (e.g. `brew install cmake`).
+
## Generated bindings & dependencies
- SwiftMath is fetched via SwiftPM (`https://github.com/mgriebling/SwiftMath.git`).
diff --git a/rust/ensu/inference/Cargo.toml b/rust/ensu/inference/Cargo.toml
index 314b16bdb3..d718fc4275 100644
--- a/rust/ensu/inference/Cargo.toml
+++ b/rust/ensu/inference/Cargo.toml
@@ -14,6 +14,20 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "1"
+# llama-cpp-2's default features are "openmp" and "android-shared-stdcxx".
+#
+# - "openmp" enables OpenMP CPU parallelism. It requires libomp, which usually
+# ships with Linux/Windows toolchains but not Apple's clang. Without it,
+# llama.cpp falls back to its built-in thread pool.
+#
+# - "android-shared-stdcxx" is a no-op everywhere except Android (where it
+# enables the NDK's shared C++ runtime).
+#
+# On Apple platforms, Accelerate is auto-linked by llama-cpp-sys-2 for CPU
+# SIMD helpers. llama-cpp-2 additionally enables the "metal" feature on arm64,
+# which causes Metal to be used for GPU inference.
+#
+# "mtmd" is used on all platforms for enabling multimodal support.
[target.'cfg(target_os = "macos")'.dependencies]
llama-cpp-2 = { version = "=0.1.138", default-features = false, features = ["mtmd"] }