Browse Source

src: small fixes

Nathalie Furmento 8 years ago
parent
commit
4c3b2d3796
2 changed files with 1 additions and 20 deletions
  1. 1 1
      src/core/sched_ctx.c
  2. 0 19
      src/core/topology.c

+ 1 - 1
src/core/sched_ctx.c

@@ -1305,7 +1305,7 @@ void starpu_sched_ctx_remove_workers(int *workers_to_remove, unsigned nworkers_t
 		unsigned i;
 		for (i=0; i<nworkers_to_remove; i++)
 		{
-			unsigned workerid = workers_to_remove[i];
+			int workerid = workers_to_remove[i];
 			unsigned duplicate = 0;
 			unsigned j;
 			for (j = 0; j < cumulated_nworkers; j++)

+ 0 - 19
src/core/topology.c

@@ -203,25 +203,6 @@ static int _starpu_get_physical_numa_node_worker(unsigned workerid)
 	}
 }
 
-static int _starpu_numa_get_logical_id_from_pu(int pu)
-{
-#if defined(STARPU_HAVE_HWLOC)
-	if (nb_numa_nodes > 1)
-	{
-		struct _starpu_machine_config *config = _starpu_get_machine_config();
-		struct _starpu_machine_topology *topology = &config->topology;
-
-		hwloc_obj_t obj = hwloc_get_obj_by_type(topology->hwtopology, HWLOC_OBJ_PU, pu);
-		return numa_get_logical_id(obj);
-	}
-	else
-#endif
-	{
-		return -1;
-	}
-}
-
-
 struct _starpu_worker *_starpu_get_worker_from_driver(struct starpu_driver *d)
 {
 	unsigned nworkers = starpu_worker_get_count();