From: Georgi Gerganov Date: Thu, 15 Jan 2026 18:53:01 +0000 (+0200) Subject: cuda : print less debug logs when disabling cuda graphs (#18868) X-Git-Tag: upstream/0.0.8067~317 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=6e7fc8a146556fe20be36906e1b1b7e03bc36d44;p=pkg%2Fggml%2Fsources%2Fllama.cpp cuda : print less debug logs when disabling cuda graphs (#18868) --- diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu index 553623fbd..ed1021469 100644 --- a/ggml/src/ggml-cuda/ggml-cuda.cu +++ b/ggml/src/ggml-cuda/ggml-cuda.cu @@ -3730,8 +3730,10 @@ static bool ggml_cuda_graph_set_enabled(ggml_backend_cuda_context * cuda_ctx) { if (cuda_ctx->cuda_graph->graph == nullptr) { if (ggml_cuda_info().devices[cuda_ctx->device].cc < GGML_CUDA_CC_AMPERE) { + if (!cuda_ctx->cuda_graph->disable_due_to_gpu_arch) { + GGML_LOG_DEBUG("%s: disabling CUDA graphs due to GPU architecture\n", __func__); + } cuda_ctx->cuda_graph->disable_due_to_gpu_arch = true; - GGML_LOG_DEBUG("%s: disabling CUDA graphs due to GPU architecture\n", __func__); } }