浏览代码

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

Samuel Thibault 5 年之前
父节点
当前提交
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*));