ggml-cuda : fix cpy transposed path corrupting non-contiguous dst (llama/27663)

This commit is contained in:
Yash Raj Pandey
2026-10-06 10:38:18 +03:00
committed by Georgi Gerganov
parent 6b704713cc
commit d7682b5814
+2 -1
View File
@@ -459,7 +459,8 @@ void ggml_cuda_cpy(ggml_backend_cuda_context & ctx, const ggml_tensor * src0, gg
const bool contiguous_srcs = ggml_is_contiguous(src0) && ggml_is_contiguous(src1);
const bool can_be_transposed = nb01 == (int64_t)ggml_element_size(src0) &&
src0->ne[3] == 1 && nb02 == ne00 * ne01 * (int64_t)ggml_element_size(src0);
src0->ne[3] == 1 && nb02 == ne00 * ne01 * (int64_t)ggml_element_size(src0) &&
ggml_is_contiguous(src1);
size_t mc_width = 0, mc_height = 0, mc_spitch = 0, mc_dpitch = 0;