]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
vulkan: fix warnings (llama/13626)
authorEve <redacted>
Tue, 20 May 2025 21:35:16 +0000 (21:35 +0000)
committerGeorgi Gerganov <redacted>
Tue, 27 May 2025 15:03:00 +0000 (18:03 +0300)
* small fixes

* remove ifdef

ggml/src/ggml-vulkan/ggml-vulkan.cpp
ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq1_m.comp
ggml/src/ggml-vulkan/vulkan-shaders/mul_mm.comp

index 5fcda10a9fbe2bf008f3f991d4a7e6fc9a95e1da..c160a9984075fffc782ce6bdbd591a7e451ba20d 100644 (file)
@@ -4513,6 +4513,8 @@ static vk_pipeline ggml_vk_guess_matmul_pipeline(ggml_backend_vk_context * ctx,
         return aligned ? mmp->a_m : mmp->m;
     }
     return aligned ? mmp->a_l : mmp->l;
+
+    GGML_UNUSED(src1_type);
 }
 
 static uint32_t ggml_vk_guess_matmul_pipeline_align(ggml_backend_vk_context * ctx, vk_matmul_pipeline& mmp, int m, int n, ggml_type src0_type, ggml_type src1_type) {
index 39184ef58235508a767576c74fa4990b40bbeba3..b604c1881a5eae903e0b86cb38ed591468f3f6b0 100644 (file)
@@ -1,6 +1,6 @@
 #version 450
 
-#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
+#extension GL_EXT_shader_explicit_arithmetic_types_int16 : require
 
 #include "dequant_head.comp"
 
index 7859a1a60e27fec61abbc17ecb4013f61d5e93ce..26163b167c7ed712f98439ee260e4056e999ff2e 100644 (file)
@@ -7,7 +7,7 @@
 #extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
 #endif
 #if defined(DATA_A_IQ1_M)
-#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
+#extension GL_EXT_shader_explicit_arithmetic_types_int16 : require
 #endif
 
 #if defined(DATA_A_BF16) && defined(COOPMAT)