CUDA: also store node->src->data ptrs for equality check (#21635)

* CUDA: also store node->src->data ptrs for equality check

* address review comments
This commit is contained in:
Aman Gupta
2026-04-09 01:01:56 +08:00
committed by GitHub
parent 2dcb7f74ed
commit d12cc3d1ca
2 changed files with 19 additions and 8 deletions
+5 -1
View File
@@ -1173,7 +1173,11 @@ struct ggml_cuda_graph {
std::vector<cudaGraphNode_t> nodes;
bool disable_due_to_gpu_arch = false;
bool warmup_complete = false;
std::vector<ggml_tensor> nodes_copy;
struct node_properties {
ggml_tensor node;
void * node_src_data_ptrs[GGML_MAX_SRC];
};
std::vector<node_properties> node_props;
bool is_enabled() const {
static const bool disable_cuda_graphs_due_to_env = (getenv("GGML_CUDA_DISABLE_GRAPHS") != nullptr);