Update ggml/src/ggml-cuda/ggml-cuda.cu

Co-authored-by: Aman Gupta <amangupta052@gmail.com>
This commit is contained in:
Oliver Simons 2026-02-13 10:34:24 +01:00 committed by GitHub
parent 17717f3fc6
commit d812b6955b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 4 deletions

View File

@ -3641,10 +3641,6 @@ static void ggml_cuda_graph_evaluate_and_capture(ggml_backend_cuda_context * cud
if (n_fuse > 1) {
ggml_tensor fused_add_node;
// Let's ensure compilation fails should ggml_tensor at one point no-longer be trivially copyable.
static_assert(
std::is_trivially_copyable_v<ggml_tensor>,
"ggml_tensor must be trivially copyable for memcpy usage in fused-add node-creation");
memcpy(&fused_add_node, node, sizeof(ggml_tensor));
for (int j = 0; j < n_fuse - 1; ++j) {
fused_add_node.src[j + 2] = cgraph->nodes[i + j + 1]->src[1];