]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
cuda : print less debug logs when disabling cuda graphs (llama/18868)
authorGeorgi Gerganov <redacted>
Thu, 15 Jan 2026 18:53:01 +0000 (20:53 +0200)
committerGeorgi Gerganov <redacted>
Fri, 30 Jan 2026 13:56:40 +0000 (15:56 +0200)
ggml/src/ggml-cuda/ggml-cuda.cu

index 553623fbd42fb4458a98eb82c6d3336037305578..ed1021469a7b058f0c9b5166ec58ccef23fecff6 100644 (file)
@@ -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__);
         }
     }