|
@@ -188,7 +188,7 @@ void f(unsigned task_per_worker[STARPU_NMAXWORKERS])
|
|
|
|
|
|
unsigned global_workerid(unsigned local_workerid)
|
|
|
{
|
|
|
-#ifdef STARPU_USE_MPI
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
int rank;
|
|
|
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
|
|
|
unsigned workers_per_node = starpu_worker_get_count();
|
|
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
|
|
|
int world_size;
|
|
|
int ret;
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
int thread_support;
|
|
|
if (MPI_Init_thread(&argc, &argv, MPI_THREAD_SERIALIZED, &thread_support))
|
|
|
{
|
|
@@ -232,7 +232,7 @@ int main(int argc, char **argv)
|
|
|
if (ret == -ENODEV) return 77;
|
|
|
STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
ret = starpu_mpi_init(NULL, NULL, 0);
|
|
|
STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
|
|
|
#endif
|
|
@@ -246,7 +246,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
create_tasks(rank);
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
int barrier_ret = MPI_Barrier(MPI_COMM_WORLD);
|
|
|
STARPU_ASSERT(barrier_ret == MPI_SUCCESS);
|
|
|
#endif
|
|
@@ -263,7 +263,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
end = starpu_timing_now();
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
barrier_ret = MPI_Barrier(MPI_COMM_WORLD);
|
|
|
STARPU_ASSERT(barrier_ret == MPI_SUCCESS);
|
|
|
#endif
|
|
@@ -274,7 +274,7 @@ int main(int argc, char **argv)
|
|
|
|
|
|
/*display_debug(nbz, niter, rank);*/
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
starpu_mpi_shutdown();
|
|
|
#endif
|
|
|
|
|
@@ -285,7 +285,7 @@ int main(int argc, char **argv)
|
|
|
double max_timing = timing;
|
|
|
double sum_timing = timing;
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
int reduce_ret;
|
|
|
|
|
|
reduce_ret = MPI_Reduce(&timing, &min_timing, 1, MPI_DOUBLE, MPI_MIN, 0, MPI_COMM_WORLD);
|
|
@@ -366,7 +366,7 @@ int main(int argc, char **argv)
|
|
|
free_problem(rank);
|
|
|
starpu_shutdown();
|
|
|
|
|
|
-#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID)
|
|
|
+#if defined(STARPU_USE_MPI) && !defined(STARPU_SIMGRID) && !defined(STARPU_USE_MPI_MASTER_SLAVE)
|
|
|
MPI_Finalize();
|
|
|
#endif
|
|
|
|