Bläddra i källkod

topology: initialise properly nhwcpus

Nathalie Furmento 15 år sedan
förälder
incheckning
d778d0d446
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      src/core/topology.c

+ 1 - 0
src/core/topology.c

@@ -214,6 +214,7 @@ static void _starpu_init_topology(struct starpu_machine_config_s *config)
 
 	if (!topology_is_initialized)
 	{
+		topology->nhwcpus = 0;
 #ifdef STARPU_HAVE_HWLOC
 		hwloc_topology_init(&topology->hwtopology);
 		hwloc_topology_load(topology->hwtopology);