Просмотр исходного кода

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

Samuel Thibault лет назад: 5
Родитель
Сommit
e137fe2e91
1 измененных файлов с 1 добавлено и 5 удалено
  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*));