Skip to content

Commit

Permalink
Revert "Remove unused function"
Browse files Browse the repository at this point in the history
This reverts commit 7ca65422ee5590b1905c0f9ff14329145f50d376.

This function can still be useful for debugging.
  • Loading branch information
sthibaul committed Sep 17, 2024
1 parent 1d33a79 commit 936796b
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/sched_policies/darts.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,19 @@ static void print_data_not_used_yet()
#endif
}

#ifdef PRINT
static void print_pulled_task_one_gpu(struct _starpu_darts_gpu_pulled_task *g, int current_gpu)
{
(void)g; (void)current_gpu;
printf("Pulled task for GPU %d:\n", current_gpu); fflush(stdout);
struct _starpu_darts_pulled_task *p;
for (p = _starpu_darts_pulled_task_list_begin(tab_gpu_pulled_task[current_gpu].ptl); p != _starpu_darts_pulled_task_list_end(tab_gpu_pulled_task[current_gpu].ptl); p = _starpu_darts_pulled_task_list_next(p))
{
printf("%p\n", p->pointer_to_pulled_task); fflush(stdout);
}
}
#endif

static void print_data_not_used_yet_one_gpu(struct _starpu_darts_gpu_planned_task *g, int current_gpu)
{
(void)g; (void)current_gpu;
Expand Down

0 comments on commit 936796b

Please sign in to comment.