summaryrefslogtreecommitdiff
path: root/ggml/src/iqk/iqk_quantize.cpp
diff options
context:
space:
mode:
authorKawrakow <iwankawrakow@gmail.com>2024-09-17 14:31:29 +0300
committerGitHub <noreply@github.com>2024-09-17 14:31:29 +0300
commit12bbdb8ce7517455e03e6483828e90a475ff0d7e (patch)
tree245451bc81d50bac2c4aefcf2dfb6ea5ee96967b /ggml/src/iqk/iqk_quantize.cpp
parent4ee889f15891b6e8785c88c932ec27f129cae285 (diff)
Fix compiler warnings (#58)
* Fix C++ compilation warnings caused by ggml-common.h * Disable c99-extensions warning I get tons of those on macOS due to the arm_neon.h header. * Disable c99-extensions warning only for APPLE * Fix warnings in iqk_quantize.cpp Also add GGML_ABORT when implementation is missing. --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Diffstat (limited to 'ggml/src/iqk/iqk_quantize.cpp')
-rw-r--r--ggml/src/iqk/iqk_quantize.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/ggml/src/iqk/iqk_quantize.cpp b/ggml/src/iqk/iqk_quantize.cpp
index 9b39a490..42441584 100644
--- a/ggml/src/iqk/iqk_quantize.cpp
+++ b/ggml/src/iqk/iqk_quantize.cpp
@@ -698,10 +698,8 @@ void vec_dot_iq2_k_q8_k(int n, float * GGML_RESTRICT s, size_t bs, const void *
}
#endif
- const int nb = n / QK_K;
+ GGML_ABORT("not implemented");
- const block_iq2_k * x = (const block_iq2_k *)vx;
- const block_q8_K * y = (const block_q8_K *)vy;
}
//
@@ -971,10 +969,7 @@ void vec_dot_iq3_k_q8_k(int n, float * GGML_RESTRICT s, size_t bs, const void *
}
#endif
- const int nb = n / QK_K;
-
- const block_iq2_k * x = (const block_iq2_k *)vx;
- const block_q8_K * y = (const block_q8_K *)vy;
+ GGML_ABORT("not implemented");
}
//
@@ -1664,6 +1659,8 @@ void vec_dot_iq6_k_q8_k(int n, float * s, size_t bs, const void * vx, size_t bx,
}
#endif
+ GGML_ABORT("not implemented");
+
// TODO
//const int nb = n / QK_K;
@@ -2030,6 +2027,10 @@ void dequantize_row_iq2_tn(const block_iq2_tn * x, float * y, int64_t k) {
}
void vec_dot_iq2_tn_q8_k(int n, float * s, size_t bs, const void * vx, size_t bx, const void * vy, size_t by, int nrc) {
+ GGML_UNUSED(bs);
+ GGML_UNUSED(bx);
+ GGML_UNUSED(by);
+ GGML_UNUSED(nrc);
#if GGML_USE_IQK_MULMAT
if (iqk_mul_mat(1, 1, n, GGML_TYPE_IQ2_TN, vx, 0, GGML_TYPE_Q8_K, vy, 0, s, 0, 0, 1)) {
return;