Skip to content

Commit

Permalink
darts: Fix spurious allocation
Browse files Browse the repository at this point in the history
  • Loading branch information
sthibaul committed May 3, 2024
1 parent e9fb920 commit 14b3a9f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sched_policies/darts.c
Original file line number Diff line number Diff line change
Expand Up @@ -2874,14 +2874,13 @@ static starpu_data_handle_t _starpu_darts_least_used_data_on_planned_task(starpu
int min_nb_task_in_planned_task = INT_MAX;
starpu_data_handle_t returned_handle = NULL;

struct _starpu_darts_handle_user_data *hud = malloc(sizeof(struct _starpu_darts_handle_user_data));
int i;
for (i = 0; i < nb_data_on_node; i++)
{
STARPU_IGNORE_UTILITIES_HANDLES_FROM_DATA(data_tab[i]);
if (nb_task_in_pulled_task[i] == 0)
{
hud = data_tab[i]->user_data;
struct _starpu_darts_handle_user_data *hud = data_tab[i]->user_data;

if (hud->nb_task_in_planned_task[current_gpu] < min_nb_task_in_planned_task)
{
Expand Down

0 comments on commit 14b3a9f

Please sign in to comment.