ggml : limit get_rows threads to the number of rows
This commit is contained in:
parent
16e12ab734
commit
940c01eb09
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -16394,7 +16394,7 @@ static int ggml_get_n_tasks(struct ggml_tensor * node, int n_threads) {
|
|||
} break;
|
||||
case GGML_OP_GET_ROWS:
|
||||
{
|
||||
n_tasks = n_threads;
|
||||
n_tasks = MIN(n_threads, ggml_nelements(node->src[1]));
|
||||
} break;
|
||||
case GGML_OP_SCALE:
|
||||
case GGML_OP_SET:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue