Forráskód Böngészése

Release resource used by the hwloc once the bus has been benchmarked

Cédric Augonnet 15 éve
szülő
commit
684a5973f9
1 módosított fájl, 4 hozzáadás és 0 törlés
  1. 4 0
      src/core/perfmodel/perfmodel_bus.c

+ 4 - 0
src/core/perfmodel/perfmodel_bus.c

@@ -412,6 +412,10 @@ static void benchmark_all_gpu_devices(void)
 		STARPU_ABORT();
 	}
 
+#ifdef STARPU_HAVE_HWLOC
+	hwloc_topology_destroy(hwtopology);
+#endif
+
 #ifdef STARPU_VERBOSE
 	fprintf(stderr, "Benchmarking the speed of the bus is done.\n");
 #endif