From d04f97d13145c3c81afe064fd5768adc725b4563 Mon Sep 17 00:00:00 2001 From: Matthieu Kuhn <matthieu.kuhn@atos.net> Date: Fri, 23 Feb 2024 11:17:28 +0100 Subject: [PATCH] MPI reduction: ifdef prepro outside if statement --- runtime/starpu/control/runtime_descriptor_ipiv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/starpu/control/runtime_descriptor_ipiv.c b/runtime/starpu/control/runtime_descriptor_ipiv.c index 69eb5d75f..d3a3d82c5 100644 --- a/runtime/starpu/control/runtime_descriptor_ipiv.c +++ b/runtime/starpu/control/runtime_descriptor_ipiv.c @@ -304,14 +304,14 @@ void RUNTIME_ipiv_reducek( const RUNTIME_option_t *options, starpu_data_handle_t nextpiv = RUNTIME_pivot_getaddr( ipiv, k, h ); starpu_data_handle_t prevpiv = RUNTIME_pivot_getaddr( ipiv, k, h-1 ); - if ( h < ipiv->n ) { #if defined(HAVE_STARPU_MPI_REDUX) && defined(CHAMELEON_USE_MPI) #if !defined(HAVE_STARPU_MPI_REDUX_WRAPUP) + if ( h < ipiv->n ) { starpu_mpi_redux_data_prio_tree( MPI_COMM_WORLD, nextpiv, options->priority, 2 /* Binary tree */ ); + } #endif #endif - } /* Invalidate the previous pivot structure for correct initialization in later reuse */ if ( h > 0 ) { -- GitLab