Change graph key

This commit is contained in:
Kawrakow
2026-01-20 15:35:53 +00:00
parent c307525cb2
commit a6651d017a

View File

@@ -3664,7 +3664,7 @@ GGML_CALL static void ggml_backend_cuda_synchronize(ggml_backend_t backend) {
#ifdef USE_CUDA_GRAPH #ifdef USE_CUDA_GRAPH
static inline const void * ggml_cuda_graph_get_key(ggml_cgraph * cgraph) { static inline const void * ggml_cuda_graph_get_key(ggml_cgraph * cgraph) {
return cgraph->nodes[0]->data; return cgraph->nodes[0];
} }
static inline ggml_cuda_graph * ggml_cuda_get_graph(ggml_backend_cuda_context & ctx, const void * key) { static inline ggml_cuda_graph * ggml_cuda_get_graph(ggml_backend_cuda_context & ctx, const void * key) {