Pārlūkot izejas kodu

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

Cédric Augonnet 15 gadi atpakaļ
vecāks
revīzija
684a5973f9
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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