Explorar el Código

src/core/topology.c: only execute code when hwloc is enabled

Nathalie Furmento hace 12 años
padre
commit
7c5bf27852
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/core/topology.c

+ 2 - 0
src/core/topology.c

@@ -268,8 +268,10 @@ _starpu_init_topology (struct _starpu_machine_config *config)
 
 	topology->nhwcpus = 0;
 
+#ifdef STARPU_HAVE_HWLOC
 	hwloc_topology_init(&topology->hwtopology);
 	hwloc_topology_load(topology->hwtopology);
+#endif
 
 	_starpu_cpu_discover_devices(config);
 	_starpu_cuda_discover_devices(config);