]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
vulkan: correctly report support for OP_CONT (ggml/946)
authorSalvatore Mesoraca <redacted>
Fri, 6 Sep 2024 12:34:07 +0000 (14:34 +0200)
committerGeorgi Gerganov <redacted>
Tue, 24 Sep 2024 16:45:08 +0000 (19:45 +0300)
test-backend-ops fails because ggml_cont aborts
when invoked passing an unsupported type.

This commit makes ggml_cont tests pass

Signed-off-by: Salvatore Mesoraca <redacted>
ggml/src/ggml-vulkan.cpp

index ca4f44cf75615afdd710c6c077fdd89b758df9e2..e64d739dcf7976723184aeea2ac24e62f820816f 100644 (file)
@@ -6602,6 +6602,7 @@ GGML_CALL static bool ggml_backend_vk_supports_op(ggml_backend_t backend, const
                         return false;
                 }
             } break;
+        case GGML_OP_CONT:
         case GGML_OP_CPY:
         case GGML_OP_DUP:
             {
@@ -6642,7 +6643,6 @@ GGML_CALL static bool ggml_backend_vk_supports_op(ggml_backend_t backend, const
         case GGML_OP_COS:
         case GGML_OP_CLAMP:
         case GGML_OP_PAD:
-        case GGML_OP_CONT:
         case GGML_OP_DIAG_MASK_INF:
         case GGML_OP_SOFT_MAX:
         case GGML_OP_ARGSORT: