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

MPI Master-Slave does not support Redux

Corentin Salingue пре 8 година
родитељ
комит
8943583dc0

+ 7 - 1
tests/datawizard/increment_init.c

@@ -142,8 +142,14 @@ int main(int argc, char **argv)
 {
 	unsigned *pvar = NULL;
 	int ret;
+	struct starpu_conf conf;
+	
+	starpu_conf_init(&conf);
 
-	ret = starpu_init(NULL);
+	/* MPI Master Slave does not support Redux */
+	conf.nmpi_ms = 0;
+
+	ret = starpu_init(&conf);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 

+ 7 - 1
tests/datawizard/increment_redux.c

@@ -215,12 +215,18 @@ static struct starpu_codelet increment_cl =
 int main(int argc, char **argv)
 {
 	int ret;
+	struct starpu_conf conf;
+
+	starpu_conf_init(&conf);
+
+	/* MPI Master Slave doesn't support redux */
+	conf.nmpi_ms = 0;
 
 	/* Not supported yet */
 	if (starpu_get_env_number_default("STARPU_GLOBAL_ARBITER", 0) > 0)
 		return STARPU_TEST_SKIPPED;
 
-	ret = starpu_initialize(NULL, &argc, &argv);
+	ret = starpu_initialize(&conf, &argc, &argv);
 	if (ret == -ENODEV) return STARPU_TEST_SKIPPED;
 	STARPU_CHECK_RETURN_VALUE(ret, "starpu_init");
 

+ 6 - 0
tests/datawizard/increment_redux_v2.c

@@ -231,6 +231,12 @@ struct starpu_codelet increment_cl_redux =
 int main(int argc, char **argv)
 {
 	int ret;
+	struct starpu_conf conf;
+
+	starpu_conf_init(&conf);
+
+	/* MPI Master-Slave doesn't support Redux */
+	conf.nmpi_ms = 0;
 
 	/* Not supported yet */
 	if (starpu_get_env_number_default("STARPU_GLOBAL_ARBITER", 0) > 0)