Przeglądaj źródła

rename starpu_get_tree into starpu_sched_tree_get

Nathalie Furmento 11 lat temu
rodzic
commit
b7d09b484f

+ 1 - 1
include/starpu_sched_component.h

@@ -89,7 +89,7 @@ struct starpu_sched_tree
 
 struct starpu_sched_tree *starpu_sched_tree_create(unsigned sched_ctx_id);
 void starpu_sched_tree_destroy(struct starpu_sched_tree *tree);
-struct starpu_sched_tree *starpu_get_tree(unsigned sched_ctx_id);
+struct starpu_sched_tree *starpu_sched_tree_get(unsigned sched_ctx_id);
 
 /* destroy component and all his child
  * except if they are shared between several contexts

+ 1 - 1
src/sched_policies/component_sched.c

@@ -411,7 +411,7 @@ void starpu_sched_tree_destroy(struct starpu_sched_tree * tree)
 	free(tree);
 }
 
-struct starpu_sched_tree * starpu_get_tree(unsigned sched_ctx_id)
+struct starpu_sched_tree * starpu_sched_tree_get(unsigned sched_ctx_id)
 {
 	return trees[sched_ctx_id];
 }

+ 3 - 4
src/sched_policies/component_worker.c

@@ -1,11 +1,10 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2014  Université de Bordeaux 1
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2014  Centre National de la Recherche Scientifique
  * Copyright (C) 2011  Télécom-SudParis
  * Copyright (C) 2011-2013  INRIA
  * Copyright (C) 2013  Simon Archipoff
-
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -894,9 +893,9 @@ struct starpu_sched_component * starpu_sched_component_worker_get(unsigned sched
 	{
 		struct starpu_sched_component * component;
 		if(workerid < (int) starpu_worker_get_count())
-			component = starpu_sched_component_worker_create(starpu_get_tree(sched_ctx), workerid);
+			component = starpu_sched_component_worker_create(starpu_sched_tree_get(sched_ctx), workerid);
 		else
-			component = starpu_sched_component_combined_worker_create(starpu_get_tree(sched_ctx), workerid);
+			component = starpu_sched_component_combined_worker_create(starpu_sched_tree_get(sched_ctx), workerid);
 		_worker_components[sched_ctx][workerid] = component;
 		return component;
 	}