From 936796bff35e5ee1913e58f16d93bc08f0a116ad Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 17 Sep 2024 16:34:58 +0200 Subject: [PATCH] Revert "Remove unused function" This reverts commit 7ca65422ee5590b1905c0f9ff14329145f50d376. This function can still be useful for debugging. --- src/sched_policies/darts.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/sched_policies/darts.c b/src/sched_policies/darts.c index ca7c14a2a..6cd384af6 100644 --- a/src/sched_policies/darts.c +++ b/src/sched_policies/darts.c @@ -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;