Do not include ggml-impl.h in ggml-cuda.cu

This commit is contained in:
Kawrakow
2026-08-06 11:45:44 +00:00
parent cf1aa57e1a
commit 18fe89a003
5 changed files with 20 additions and 5 deletions
+2
View File
@@ -1305,6 +1305,8 @@ add_library(ggml
ggml-moe-prefetch.h
ggml-quants.c
ggml-quants.h
ggml-utils.h
ggml-impl.h
${GGML_SOURCES_CUDA} ${GGML_HEADERS_CUDA}
${GGML_SOURCES_METAL} ${GGML_HEADERS_METAL}
${GGML_SOURCES_RPC} ${GGML_HEADERS_RPC}
+2 -1
View File
@@ -8,7 +8,8 @@
#include "ggml-cuda.h"
#include "ggml.h"
#include "ggml-backend-impl.h"
#include "ggml-impl.h"
//#include "ggml-impl.h"
#include "ggml-utils.h"
#include "ggml-cuda/common.cuh"
#include "ggml-cuda/acc.cuh"
-4
View File
@@ -766,10 +766,6 @@ static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct g
GGML_ABORT("fatal error");
}
// Finds the copy the delta-net fusion can skip: the CPY that writes this node's new recurrent
// state back into the slot it was read from. Its index in cgraph, or -1 if there is none.
int ggml_delta_net_find_state_cpy(const struct ggml_cgraph * cgraph, int i);
static int32_t ggml_get_op_params_i32(const struct ggml_tensor * tensor, uint32_t i) {
assert(i < GGML_MAX_OP_PARAMS / sizeof(int32_t));
return ((const int32_t *)(tensor->op_params))[i];
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
struct ggml_cgraph;
// Finds the copy the delta-net fusion can skip: the CPY that writes this node's new recurrent
// state back into the slot it was read from. Its index in cgraph, or -1 if there is none.
int ggml_delta_net_find_state_cpy(const struct ggml_cgraph * cgraph, int i);
#ifdef __cplusplus
}
#endif
+1
View File
@@ -8,6 +8,7 @@
#define _USE_MATH_DEFINES // For M_PI on MSVC
#include "ggml-impl.h"
#include "ggml-utils.h"
#include "ggml-quants.h"
#include "ggml.h"
#include "ggml-aarch64.h"