From d0d2116a26390eb0bb4a30061c98e9f5f7eac202 Mon Sep 17 00:00:00 2001 From: Max Krasnyansky Date: Wed, 4 Feb 2026 18:22:08 -0800 Subject: [PATCH] hexagon: argsort reject tensors with huge rows for now --- ggml/src/ggml-hexagon/ggml-hexagon.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ggml/src/ggml-hexagon/ggml-hexagon.cpp b/ggml/src/ggml-hexagon/ggml-hexagon.cpp index 2f92c76150..2583b33865 100644 --- a/ggml/src/ggml-hexagon/ggml-hexagon.cpp +++ b/ggml/src/ggml-hexagon/ggml-hexagon.cpp @@ -2123,6 +2123,11 @@ static bool ggml_hexagon_supported_argsort(const struct ggml_hexagon_session * s return false; } + if (src0->ne[0] > (16*1024)) { + // reject tensors with huge rows for now + return false; + } + return true; }