Преглед изворни кода

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

Cédric Augonnet пре 15 година
родитељ
комит
684a5973f9
1 измењених фајлова са 4 додато и 0 уклоњено
  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