Преглед изворни кода

Make sure users don't mix initializing MPI and non-world communicators

Samuel Thibault пре 6 година
родитељ
комит
ea82e361d6
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      mpi/src/starpu_mpi_init.c

+ 1 - 0
mpi/src/starpu_mpi_init.c

@@ -72,6 +72,7 @@ void _starpu_mpi_do_initialize(struct _starpu_mpi_argc_argv *argc_argv)
 {
 	if (argc_argv->initialize_mpi)
 	{
+		STARPU_ASSERT_MSG(argc_argv->comm == MPI_COMM_WORLD, "It does not make sense to ask StarPU-MPI to initialize MPI while a non-world communicator was given");
 		int thread_support;
 #ifdef STARPU_USE_MPI_NMAD
 		/* strat_prio is preferred for StarPU instead of default strat_aggreg */