Spaces:
Running
Running
Eve
commited on
Commit
·
8602d10
1
Parent(s):
e1f825c
vulkan: fix warnings (llama/13626)
Browse files* small fixes
* remove ifdef
ggml/src/ggml-vulkan/ggml-vulkan.cpp
CHANGED
|
@@ -4513,6 +4513,8 @@ static vk_pipeline ggml_vk_guess_matmul_pipeline(ggml_backend_vk_context * ctx,
|
|
| 4513 |
return aligned ? mmp->a_m : mmp->m;
|
| 4514 |
}
|
| 4515 |
return aligned ? mmp->a_l : mmp->l;
|
|
|
|
|
|
|
| 4516 |
}
|
| 4517 |
|
| 4518 |
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) {
|
|
|
|
| 4513 |
return aligned ? mmp->a_m : mmp->m;
|
| 4514 |
}
|
| 4515 |
return aligned ? mmp->a_l : mmp->l;
|
| 4516 |
+
|
| 4517 |
+
GGML_UNUSED(src1_type);
|
| 4518 |
}
|
| 4519 |
|
| 4520 |
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) {
|
ggml/src/ggml-vulkan/vulkan-shaders/dequant_iq1_m.comp
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
#version 450
|
| 2 |
|
| 3 |
-
#extension
|
| 4 |
|
| 5 |
#include "dequant_head.comp"
|
| 6 |
|
|
|
|
| 1 |
#version 450
|
| 2 |
|
| 3 |
+
#extension GL_EXT_shader_explicit_arithmetic_types_int16 : require
|
| 4 |
|
| 5 |
#include "dequant_head.comp"
|
| 6 |
|
ggml/src/ggml-vulkan/vulkan-shaders/mul_mm.comp
CHANGED
|
@@ -7,7 +7,7 @@
|
|
| 7 |
#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
|
| 8 |
#endif
|
| 9 |
#if defined(DATA_A_IQ1_M)
|
| 10 |
-
#extension
|
| 11 |
#endif
|
| 12 |
|
| 13 |
#if defined(DATA_A_BF16) && defined(COOPMAT)
|
|
|
|
| 7 |
#extension GL_EXT_shader_explicit_arithmetic_types_float16 : require
|
| 8 |
#endif
|
| 9 |
#if defined(DATA_A_IQ1_M)
|
| 10 |
+
#extension GL_EXT_shader_explicit_arithmetic_types_int16 : require
|
| 11 |
#endif
|
| 12 |
|
| 13 |
#if defined(DATA_A_BF16) && defined(COOPMAT)
|