diff --git a/runtime/starpu/control/runtime_control.c b/runtime/starpu/control/runtime_control.c index a0f05c04518651390f95060778f051d973fee36b..d455238b7e26a5192a57ab69f658d2200d2ffea9 100644 --- a/runtime/starpu/control/runtime_control.c +++ b/runtime/starpu/control/runtime_control.c @@ -44,7 +44,7 @@ static int chameleon_starpu_init( starpu_conf_t *conf ) starpu_fxt_autostart_profiling(0); #endif -# ifdef HAVE_STARPU_MPI_INIT_CONF +# if defined(HAVE_STARPU_MPI_INIT_CONF) hres = starpu_mpi_init_conf(NULL, NULL, !flag, MPI_COMM_WORLD, conf); # else hres = starpu_init(conf); @@ -52,9 +52,8 @@ static int chameleon_starpu_init( starpu_conf_t *conf ) return hres; } starpu_mpi_init(NULL, NULL, !flag); - } # endif - + } #else hres = starpu_init(conf); diff --git a/runtime/starpu/include/chameleon_starpu.h.in b/runtime/starpu/include/chameleon_starpu.h.in index 223e5d045d9c671d84e8a42ca252c1c1982db6ab..7fb15f321ab21ad2c9bfb17a8e93771bbb0d0b2e 100644 --- a/runtime/starpu/include/chameleon_starpu.h.in +++ b/runtime/starpu/include/chameleon_starpu.h.in @@ -35,6 +35,7 @@ #cmakedefine HAVE_STARPU_MPI_COMM_RANK #cmakedefine HAVE_STARPU_MPI_CACHED_RECEIVE #cmakedefine HAVE_STARPU_MPI_COMM_GET_ATTR +#cmakedefine HAVE_STARPU_MPI_INIT_CONF #if defined(CHAMELEON_USE_MPI) #include <starpu_mpi.h>