mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-02-24 07:04:11 +00:00
Add disagnostics
This commit is contained in:
@@ -253,7 +253,14 @@ void ggml_cuda_op_fused_mul_mat_vec_q_id(ggml_backend_cuda_context & ctx,
|
||||
GGML_ASSERT(ne10 % QK8_1 == 0);
|
||||
GGML_ASSERT(src0->ne[3] == 1 && src1->ne[3] == 1 && dst->ne[3] == 1);
|
||||
GGML_ASSERT(src1->ne[1] == 1 && src1->ne[2] == 1);
|
||||
GGML_ASSERT(!ids || ids->ne[0] == dst->ne[2]);
|
||||
if (ids && ids->ne[0] != dst->ne[2]) {
|
||||
printf("%s(%s->%s): unexpected situation\n", __func__, src0->name, dst->name);
|
||||
printf(" src0 = %ld x %ld x %ld x %ld\n", src0->ne[0], src0->ne[1], src0->ne[2], src0->ne[3]);
|
||||
printf(" src1 = %ld x %ld x %ld x %ld\n", src1->ne[0], src1->ne[1], src1->ne[2], src1->ne[3]);
|
||||
printf(" ids = %ld x %ld x %ld x %ld\n", ids->ne[0], ids->ne[1], ids->ne[2], ids->ne[3]);
|
||||
printf(" dst = %ld x %ld x %ld x %ld\n", dst->ne[0], dst->ne[1], dst->ne[2], dst->ne[3]);
|
||||
GGML_ABORT("Fatal error");
|
||||
}
|
||||
|
||||
const int64_t ne0 = dst->ne[0];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user