]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
cuda : fix unused variable compile warning (whisper/0)
authorGeorgi Gerganov <redacted>
Thu, 24 Apr 2025 15:59:06 +0000 (18:59 +0300)
committerGeorgi Gerganov <redacted>
Thu, 1 May 2025 06:58:44 +0000 (09:58 +0300)
ggml-ci

ggml/src/ggml-cuda/cpy.cu

index 2d46176eab344ccf4a5402f45dc642e232fefac4..d027271fcd932d895bdda98cd52a7293ae262ca3 100644 (file)
@@ -592,6 +592,8 @@ void ggml_cuda_cpy(ggml_backend_cuda_context & ctx, const ggml_tensor * src0, gg
         dest_ptrs_d = ctx.cuda_graph->dest_ptrs_d;
         graph_cpynode_index = ctx.cuda_graph->graph_cpynode_index;
     }
+#else
+    GGML_UNUSED(disable_indirection_for_this_node);
 #endif
     if (src0->type == src1->type && ggml_is_contiguous(src0) && ggml_is_contiguous(src1)) {
         GGML_ASSERT(ggml_nbytes(src0) == ggml_nbytes(src1));