From: Georgi Gerganov Date: Thu, 24 Apr 2025 15:59:06 +0000 (+0300) Subject: cuda : fix unused variable compile warning (#0) X-Git-Tag: upstream/1.7.5+170~64 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6c0d843f9da78d3d320aea14c8a7b7606306c669;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp cuda : fix unused variable compile warning (#0) ggml-ci --- diff --git a/ggml/src/ggml-cuda/cpy.cu b/ggml/src/ggml-cuda/cpy.cu index ed25646e..eca48052 100644 --- a/ggml/src/ggml-cuda/cpy.cu +++ b/ggml/src/ggml-cuda/cpy.cu @@ -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));