Bladeren bron

topology: initialise properly nhwcpus

Nathalie Furmento 15 jaren geleden
bovenliggende
commit
d778d0d446
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  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);