File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1173,11 +1173,11 @@ struct ggml_cuda_graph {
11731173 std::vector<cudaGraphNode_t> nodes;
11741174 bool disable_due_to_gpu_arch = false ;
11751175 bool warmup_complete = false ;
1176- struct node_property {
1176+ struct node_properties {
11771177 ggml_tensor node;
11781178 void * node_src_data_ptrs[GGML_MAX_SRC];
11791179 };
1180- std::vector<node_property> nodes_props ;
1180+ std::vector<node_properties> node_props ;
11811181
11821182 bool is_enabled () const {
11831183 static const bool disable_cuda_graphs_due_to_env = (getenv (" GGML_CUDA_DISABLE_GRAPHS" ) != nullptr );
Original file line number Diff line number Diff line change @@ -2979,13 +2979,13 @@ static bool ggml_cuda_graph_update_required(ggml_backend_cuda_context * cuda_ctx
29792979 ggml_cuda_graph * graph = cuda_ctx->cuda_graph (graph_key);
29802980
29812981 // Check if the graph size has changed
2982- if ((int )graph->nodes_props .size () != cgraph->n_nodes ) {
2982+ if ((int )graph->node_props .size () != cgraph->n_nodes ) {
29832983 res = true ;
2984- graph->nodes_props .resize (cgraph->n_nodes );
2984+ graph->node_props .resize (cgraph->n_nodes );
29852985 }
29862986
29872987 for (int i = 0 ; i < cgraph->n_nodes ; i++) {
2988- ggml_cuda_graph::node_property prop = {};
2988+ ggml_cuda_graph::node_properties prop = {};
29892989 memcpy (&prop.node , cgraph->nodes [i], sizeof (ggml_tensor));
29902990
29912991 // src->data being same is enough to guarantee that node->srcs are consistent. ref:
@@ -2994,10 +2994,10 @@ static bool ggml_cuda_graph_update_required(ggml_backend_cuda_context * cuda_ctx
29942994 prop.node_src_data_ptrs [j] = cgraph->nodes [i]->src [j] ? cgraph->nodes [i]->src [j]->data : nullptr ;
29952995 }
29962996
2997- if (!res && memcmp (&graph->nodes_props [i], &prop, sizeof (prop)) != 0 ) {
2997+ if (!res && memcmp (&graph->node_props [i], &prop, sizeof (prop)) != 0 ) {
29982998 res = true ;
29992999 }
3000- graph->nodes_props [i] = prop;
3000+ graph->node_props [i] = prop;
30013001 }
30023002
30033003 return res;
You can’t perform that action at this time.
0 commit comments