Skip to content

Commit

Permalink
Better initialize scheduling mutex inside data initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed Nov 27, 2024
1 parent 84063da commit 8a14e6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/sched_policies/component_mct.c
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ struct starpu_sched_component * starpu_sched_component_mct_create(struct starpu_
struct _starpu_mct_data *data = starpu_mct_init_parameters(params);

component->data = data;
STARPU_PTHREAD_MUTEX_INIT(&data->scheduling_mutex, NULL);

component->push_task = mct_push_task;
component->deinit_data = mct_component_deinit_data;
Expand Down
1 change: 1 addition & 0 deletions src/sched_policies/helper_mct.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ struct _starpu_mct_data *starpu_mct_init_parameters(struct starpu_sched_componen
data->_gamma = starpu_getenv_float_default("STARPU_SCHED_GAMMA", _STARPU_SCHED_GAMMA_DEFAULT);
data->idle_power = starpu_getenv_float_default("STARPU_IDLE_POWER", 0.0);
}
STARPU_PTHREAD_MUTEX_INIT(&data->scheduling_mutex, NULL);

return data;
}
Expand Down

0 comments on commit 8a14e6b

Please sign in to comment.