]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
vulkan: fix wrong index variable in inner loop (#23665)
authorWinston Ma <redacted>
Thu, 28 May 2026 10:48:34 +0000 (18:48 +0800)
committerGitHub <redacted>
Thu, 28 May 2026 10:48:34 +0000 (12:48 +0200)
ggml/src/ggml-vulkan/ggml-vulkan.cpp

index b8ac4a9c26c99ac854f16a33c3806d746f88cbf3..238ee822397ed9459025649896d321277e81811f 100644 (file)
@@ -7233,7 +7233,7 @@ static void ggml_vk_buffer_write_nc_async(ggml_backend_vk_context * ctx, vk_cont
                             const uint64_t s_off = buf_offset + i3*nb3 + i2*nb2 + i1*nb1;
                             const uint64_t d_off = offset + i3*dstnb3 + i2*dstnb2 + i1*dstnb1;
                             for (uint64_t i0 = 0; i0 < ne0; i0++) {
-                                slices.push_back({ s_off + i1*nb0, d_off + i0*dstnb0, dstnb0 });
+                                slices.push_back({ s_off + i0*nb0, d_off + i0*dstnb0, dstnb0 });
                             }
                         }
                     }