From 7856a3aa651c2b3ce28d0f02d79960d18a2587b8 Mon Sep 17 00:00:00 2001 From: Philippe SWARTVAGHER <philippe.swartvagher@inria.fr> Date: Mon, 16 Sep 2024 18:05:26 +0200 Subject: [PATCH] Use starpu_execute_on_each_worker_ex() instead of starpu_execute_on_each_worker() The _ex() version allows to provide a task name, which is useful when using StarPU's profiling interface. --- runtime/starpu/control/runtime_workspace.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/starpu/control/runtime_workspace.c b/runtime/starpu/control/runtime_workspace.c index 751c55b37..5625bb876 100644 --- a/runtime/starpu/control/runtime_workspace.c +++ b/runtime/starpu/control/runtime_workspace.c @@ -131,7 +131,7 @@ int RUNTIME_starpu_ws_alloc(CHAMELEON_starpu_ws_t **workspace, descr->memory_location = memory_location; descr->which_workers = which_workers; - starpu_execute_on_each_worker(RUNTIME_allocate_workspace_on_workers, descr, which_workers); + starpu_execute_on_each_worker_ex(RUNTIME_allocate_workspace_on_workers, descr, which_workers, "chameleon_ws_alloc"); return 0; } @@ -141,7 +141,7 @@ int RUNTIME_starpu_ws_free(CHAMELEON_starpu_ws_t *workspace) if (!workspace) return -EINVAL; - starpu_execute_on_each_worker(RUNTIME_free_workspace_on_workers, workspace, workspace->which_workers); + starpu_execute_on_each_worker_ex(RUNTIME_free_workspace_on_workers, workspace, workspace->which_workers, "chameleon_ws_free"); free(workspace); -- GitLab