From 14e7c9e917652eaff916a3f4883b634b8669d502 Mon Sep 17 00:00:00 2001 From: Samuel Thibault <samuel.thibault@inria.fr> Date: Tue, 22 Sep 2015 12:34:08 +0000 Subject: [PATCH] Fix build with starpu1.1 which doesn't have starpu_mpi_comm_{rank,size}: let's just call RUNTIME_comm_{rank,size} which already do things properly --- runtime/starpu/control/runtime_control.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c index 480437f57..390a676c5 100644 --- a/runtime/starpu/control/runtime_control.c +++ b/runtime/starpu/control/runtime_control.c @@ -109,8 +109,8 @@ int RUNTIME_init_scheduler( MORSE_context_t *morse, int ncpus, int ncudas, int n MPI_Initialized( &flag ); #endif starpu_mpi_init(NULL, NULL, !flag); - starpu_mpi_comm_rank(MPI_COMM_WORLD, &(morse->my_mpi_rank)); - starpu_mpi_comm_size(MPI_COMM_WORLD, &(morse->mpi_comm_size)); + RUNTIME_comm_rank(&(morse->my_mpi_rank)); + RUNTIME_comm_size(&(morse->mpi_comm_size)); } #endif -- GitLab