Adapt to latest main

This commit is contained in:
Iwan Kawrakow
2025-11-07 09:19:45 +02:00
parent 906a3bffd9
commit 54848a4c7e

View File

@@ -3082,7 +3082,7 @@ static bool ggml_cuda_compute_forward(ggml_backend_cuda_context & ctx, struct gg
ggml_cuda_dup(ctx, dst);
break;
case GGML_OP_CPY:
if (GGML_CUDA_FUSION && i + 2 < cgraph->n_nodes &&
if (fusion && i + 2 < cgraph->n_nodes &&
cgraph->nodes[i+1]->op == GGML_OP_VIEW &&
cgraph->nodes[i+2]->op == GGML_OP_CPY &&
ggml_cuda_cpy_2(ctx, dst->src[0], cgraph->nodes[i+2]->src[0], dst->src[1], cgraph->nodes[i+2]->src[1])) {