From 912c5b47f8a4503b1788086cdec340cc7ff710af Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 5 Jul 2024 11:54:37 +0200 Subject: HST-S: call free() --- HST-S/baselines/cpu/app_baseline.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'HST-S') diff --git a/HST-S/baselines/cpu/app_baseline.c b/HST-S/baselines/cpu/app_baseline.c index 875ecbd..0c766e0 100644 --- a/HST-S/baselines/cpu/app_baseline.c +++ b/HST-S/baselines/cpu/app_baseline.c @@ -302,5 +302,17 @@ int main(int argc, char **argv) { input_size / timer.time[0]); printall(&timer, 0); +#if NUMA + numa_free(A, input_size * sizeof(T)); + if (!p.exp) { + numa_free(histo_host, nr_of_dpus * p.bins * sizeof(unsigned int)); + } else { + numa_free(histo_host, p.bins * sizeof(unsigned int)); + } +#else + free(A); + free(histo_host); +#endif + return 0; } -- cgit v1.2.3