Sfoglia il codice sorgente

Document _starpu_init_topology().

Patch by Ludovic Stordeur (Ludovic.Stordeur@inria.fr).
Cyril Roelandt 12 anni fa
parent
commit
2015710a4d
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      src/core/topology.c

+ 5 - 0
src/core/topology.c

@@ -255,6 +255,11 @@ _starpu_get_next_opencl_gpuid (struct _starpu_machine_config *config)
 static void
 _starpu_init_topology (struct _starpu_machine_config *config)
 {
+	/* Discover the topology, meaning finding all the available PUs for
+	   the compiled drivers. These drivers MUST have been initialized
+	   before calling this function. The discovered topology is filled in
+	   CONFIG. */
+
 	struct starpu_machine_topology *topology = &config->topology;
 
 	if (topology_is_initialized)