Browse Source

topology: initialise properly nhwcpus

Nathalie Furmento 15 years ago
parent
commit
d778d0d446
1 changed files with 1 additions and 0 deletions
  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);