This overlay adds a tiny Objective‑C helper that:
-
Lets you specify Metal device(s) via
GGML_METAL_DEVICES="3,4,5"- If
GGML_METAL_DEVICE_INDEXis not set, it will be derived from the first index inGGML_METAL_DEVICES - Example log:
[metal-env-shim] derived GGML_METAL_DEVICE_INDEX='3' from GGML_METAL_DEVICES='3,4'
- If
-
Provides weak optional hooks: