Commit 17580c6f2 for llama.cpp

commit 17580c6f2bda674f7490279725ad916f10ac45da
Author: Lucas Matheson <mathesonlj16@gmail.com>
Date:   Sat Nov 28 07:26:02 2026 -0500

    CUDA: fix dp4a MMQ compiler hint for CUDA 13 (#33064)

    [no ci]

    Co-authored-by: Lucas Matheson <319162180+mathesonlj16-eng@users.noreply.github.com>

diff --git a/ggml/src/ggml-cuda/ggml-cuda.cu b/ggml/src/ggml-cuda/ggml-cuda.cu
index 3c3d1dfd0..8bae60133 100644
--- a/ggml/src/ggml-cuda/ggml-cuda.cu
+++ b/ggml/src/ggml-cuda/ggml-cuda.cu
@@ -483,8 +483,14 @@ static ggml_cuda_device_info ggml_cuda_init() {
             GGML_LOG_INFO(
                 "  Device %d: %s\n", turing_devices_without_mma[device_pos].first, turing_devices_without_mma[device_pos].second.c_str());
         }
+#if !defined(GGML_USE_HIP) && !defined(GGML_USE_MUSA) && CUDART_VERSION >= 13000
+        // CUDA 13 dropped compute_61, so the Pascal code can only be compiled with an older toolkit
         GGML_LOG_INFO(
-            "Consider compiling with CMAKE_CUDA_ARCHITECTURES=61-virtual;80-virtual and DGGML_CUDA_FORCE_MMQ to force the use of the Pascal code for Turing.\n");
+            "Consider compiling with CUDA 12, -DCMAKE_CUDA_ARCHITECTURES=\"61-virtual;80-virtual\" and -DGGML_CUDA_FORCE_MMQ=ON to force the use of the Pascal code for Turing (CUDA 13 cannot compile for compute_61).\n");
+#else
+        GGML_LOG_INFO(
+            "Consider compiling with -DCMAKE_CUDA_ARCHITECTURES=\"61-virtual;80-virtual\" and -DGGML_CUDA_FORCE_MMQ=ON to force the use of the Pascal code for Turing.\n");
+#endif // !defined(GGML_USE_HIP) && !defined(GGML_USE_MUSA) && CUDART_VERSION >= 13000
     }

     for (int id = 0; id < info.device_count; ++id) {