Skip to content

Commit 5c89e8d

Browse files
committed
Fix wording.
1 parent d6e97a0 commit 5c89e8d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ggml/src/ggml-backend.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ struct ggml_backend_sched {
732732
struct ggml_backend_sched_plan * plans;
733733
int n_plans;
734734
int plans_capacity;
735-
bool plan_dirty;
735+
bool plan_needs_update;
736736

737737
// pipeline parallelism support
738738
int n_copies;
@@ -1412,7 +1412,7 @@ void ggml_backend_sched_split_graph(ggml_backend_sched_t sched, struct ggml_cgra
14121412
assert(graph_copy->size > graph_copy->n_leafs);
14131413
graph_copy->leafs[graph_copy->n_leafs++] = leaf;
14141414
}
1415-
sched->plan_dirty = true;
1415+
sched->plan_needs_update = true;
14161416
}
14171417

14181418
static bool ggml_backend_sched_alloc_splits(ggml_backend_sched_t sched) {
@@ -1456,7 +1456,7 @@ static bool ggml_backend_sched_alloc_splits(ggml_backend_sched_t sched) {
14561456

14571457
static void ggml_backend_sched_update_plans(ggml_backend_sched_t sched) {
14581458
// create graph plans
1459-
if (sched->plan_dirty) {
1459+
if (sched->plan_needs_update) {
14601460
bool create_new_plans;
14611461
if (sched->n_plans == sched->n_splits) {
14621462
create_new_plans = false;
@@ -1506,7 +1506,7 @@ static void ggml_backend_sched_update_plans(ggml_backend_sched_t sched) {
15061506
}
15071507
}
15081508
}
1509-
sched->plan_dirty = false;
1509+
sched->plan_needs_update = false;
15101510
}
15111511
}
15121512

0 commit comments

Comments
 (0)