From: Georgi Gerganov Date: Mon, 10 Nov 2025 13:38:42 +0000 (+0200) Subject: metal : enable tensor API for A19 (#17087) X-Git-Tag: upstream/0.0.7011~1 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=c27efd2bd1f27b1ad2f0b7cb417dbb9b62b57d44;p=pkg%2Fggml%2Fsources%2Fllama.cpp metal : enable tensor API for A19 (#17087) --- diff --git a/ggml/src/ggml-metal/ggml-metal-device.m b/ggml/src/ggml-metal/ggml-metal-device.m index 606cfd0a..3471225a 100644 --- a/ggml/src/ggml-metal/ggml-metal-device.m +++ b/ggml/src/ggml-metal/ggml-metal-device.m @@ -564,8 +564,10 @@ ggml_metal_device_t ggml_metal_device_init(void) { // TODO: try to update the tensor API kernels to at least match the simdgroup performance if (getenv("GGML_METAL_TENSOR_ENABLE") == NULL && ![[dev->mtl_device name] containsString:@"M5"] && - ![[dev->mtl_device name] containsString:@"M6"]) { - GGML_LOG_WARN("%s: tensor API disabled for pre-M5 device\n", __func__); + ![[dev->mtl_device name] containsString:@"M6"] && + ![[dev->mtl_device name] containsString:@"A19"] && + ![[dev->mtl_device name] containsString:@"A20"]) { + GGML_LOG_WARN("%s: tensor API disabled for pre-M5 and pre-A19 devices\n", __func__); dev->props.has_tensor = false; }