Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1ae29301 authored by Philippe SWARTVAGHER's avatar Philippe SWARTVAGHER
Browse files

Really use starpu_mpi_init_conf if detected

parent 082e9f68
No related branches found
No related tags found
1 merge request!193Really use starpu_mpi_init_conf if detected
...@@ -44,7 +44,7 @@ static int chameleon_starpu_init( starpu_conf_t *conf ) ...@@ -44,7 +44,7 @@ static int chameleon_starpu_init( starpu_conf_t *conf )
starpu_fxt_autostart_profiling(0); starpu_fxt_autostart_profiling(0);
#endif #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); hres = starpu_mpi_init_conf(NULL, NULL, !flag, MPI_COMM_WORLD, conf);
# else # else
hres = starpu_init(conf); hres = starpu_init(conf);
...@@ -52,9 +52,8 @@ static int chameleon_starpu_init( starpu_conf_t *conf ) ...@@ -52,9 +52,8 @@ static int chameleon_starpu_init( starpu_conf_t *conf )
return hres; return hres;
} }
starpu_mpi_init(NULL, NULL, !flag); starpu_mpi_init(NULL, NULL, !flag);
}
# endif # endif
}
#else #else
hres = starpu_init(conf); hres = starpu_init(conf);
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#cmakedefine HAVE_STARPU_MPI_COMM_RANK #cmakedefine HAVE_STARPU_MPI_COMM_RANK
#cmakedefine HAVE_STARPU_MPI_CACHED_RECEIVE #cmakedefine HAVE_STARPU_MPI_CACHED_RECEIVE
#cmakedefine HAVE_STARPU_MPI_COMM_GET_ATTR #cmakedefine HAVE_STARPU_MPI_COMM_GET_ATTR
#cmakedefine HAVE_STARPU_MPI_INIT_CONF
#if defined(CHAMELEON_USE_MPI) #if defined(CHAMELEON_USE_MPI)
#include <starpu_mpi.h> #include <starpu_mpi.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment