Procházet zdrojové kódy

Remove the starpu_topo_obj_t structure which has never been used

Cédric Augonnet před 15 roky
rodič
revize
5d61aacc13
2 změnil soubory, kde provedl 0 přidání a 32 odebrání
  1. 0 30
      src/core/topology.h
  2. 0 2
      src/core/workers.h

+ 0 - 30
src/core/topology.h

@@ -32,36 +32,6 @@
 /* TODO actually move this struct into this header */
 struct starpu_machine_config_s;
 
-/* This structure is "inspired" by the hwloc project
- * (see http://www.open-mpi.org/projects/hwloc/) */
-
-struct starpu_topo_obj_t {
-	/* global position */
-	unsigned level;
-	unsigned number;
-
-	/* father */
-	struct starpu_topo_obj_t *father;
-	unsigned index;
-	
-	/* children */
-	unsigned arity;
-	struct starpu_topo_obj **children;
-	struct starpu_topo_obj *first_child;
-	struct starpu_topo_obj *last_child;
-
-	/* cousins */
-	struct topo_obj *next_cousin;
-	struct topo_obj *prev_cousin;
-
-	/* for the convenience of the scheduler */
-	void *sched_data;
-
-	/* flags */
-	unsigned is_a_worker;
-	struct starpu_worker_s *worker; /* (ignored if !is_a_worker) */
-};
-
 int _starpu_build_topology(struct starpu_machine_config_s *config);
 
 void _starpu_destroy_topology(struct starpu_machine_config_s *config);

+ 0 - 2
src/core/workers.h

@@ -133,8 +133,6 @@ struct starpu_machine_config_s {
 	struct starpu_worker_s workers[STARPU_NMAXWORKERS];
 	uint32_t worker_mask;
 
-	struct starpu_topo_obj_t *topology;
-
 	/* in case the user gives an explicit configuration, this is only valid
 	 * during starpu_init. */
 	struct starpu_conf *user_conf;