mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-25 02:44:36 +00:00
ggml : fix -Warray-bounds warning with gcc (#4231)
This commit is contained in:
parent
3e73d31d9c
commit
f3b269813f
11
ggml.c
11
ggml.c
@ -15689,13 +15689,14 @@ static int ggml_get_n_tasks(struct ggml_tensor * node, int n_threads) {
|
|||||||
{
|
{
|
||||||
n_tasks = 1;
|
n_tasks = 1;
|
||||||
} break;
|
} break;
|
||||||
case GGML_OP_COUNT:
|
|
||||||
{
|
|
||||||
GGML_ASSERT(false);
|
|
||||||
} break;
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
printf("%s: op %s not implemented\n", __func__, ggml_op_name(node->op));
|
fprintf(stderr, "%s: op not implemented: ", __func__);
|
||||||
|
if (node->op < GGML_OP_COUNT) {
|
||||||
|
fprintf(stderr, "%s\n", ggml_op_name(node->op));
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "%d\n", node->op);
|
||||||
|
}
|
||||||
GGML_ASSERT(false);
|
GGML_ASSERT(false);
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user