From 78d98e861f3ec94852c30d301274ab4279b2b0bc Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Tue, 12 Mar 2024 20:18:33 +0100
Subject: [PATCH] starpu/control: restore (void)chamctxt for non mpi case

---
 runtime/starpu/control/runtime_control.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c
index d06751c64..94031382b 100644
--- a/runtime/starpu/control/runtime_control.c
+++ b/runtime/starpu/control/runtime_control.c
@@ -300,11 +300,11 @@ void RUNTIME_barrier( CHAM_context_t *chamctxt )
 
 #if defined(CHAMELEON_USE_MPI)
 #  if defined(HAVE_STARPU_MPI_WAIT_FOR_ALL)
-    starpu_mpi_wait_for_all(chamctxt->comm);
-    starpu_mpi_barrier(chamctxt->comm);
+    starpu_mpi_wait_for_all( chamctxt->comm );
+    starpu_mpi_barrier( chamctxt->comm );
 #  else
     starpu_task_wait_for_all();
-    starpu_mpi_barrier(chamctxt->comm);
+    starpu_mpi_barrier( chamctxt->comm );
 #  endif
 #else
     starpu_task_wait_for_all();
@@ -386,6 +386,7 @@ int RUNTIME_comm_rank( CHAM_context_t *chamctxt )
 #  endif
 #endif
 
+    (void)chamctxt;
     return rank;
 }
 
@@ -405,6 +406,7 @@ int RUNTIME_comm_size( CHAM_context_t *chamctxt )
     size = 1;
 #endif
 
+    (void)chamctxt;
     return size;
 }
 
-- 
GitLab