Explorar el Código

topology: initialise properly nhwcpus

Nathalie Furmento hace 15 años
padre
commit
d778d0d446
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);