Browse Source

simgrid: Use factorized code, which happens to fix the mpi case

Samuel Thibault 5 years ago
parent
commit
e137fe2e91
1 changed files with 1 additions and 5 deletions
  1. 1 5
      src/common/thread.c

+ 1 - 5
src/common/thread.c

@@ -81,11 +81,7 @@ int starpu_pthread_create_on(const char *name, starpu_pthread_t *thread, const s
 	asprintf(&_args[1], "%p", arg);
 	_args[2] = NULL;
 	if (!host)
-#ifdef STARPU_HAVE_SIMGRID_HOST_H
-		host = sg_host_by_name("MAIN");
-#else
-		host = MSG_get_host_by_name("MAIN");
-#endif
+		host = _starpu_simgrid_get_host_by_name("MAIN");
 
 	void *tsd;
 	_STARPU_CALLOC(tsd, MAX_TSD+1, sizeof(void*));