From 54848a4c7e7f1c9c8b6a53c30b6c6907cec98d50 Mon Sep 17 00:00:00 2001 From: Iwan Kawrakow Date: Fri, 7 Nov 2025 09:19:45 +0200 Subject: [PATCH] Adapt to latest main --- ggml/src/ggml-cuda.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml/src/ggml-cuda.cu b/ggml/src/ggml-cuda.cu index 96f541c0..9179f562 100644 --- a/ggml/src/ggml-cuda.cu +++ b/ggml/src/ggml-cuda.cu @@ -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])) {