summaryrefslogtreecommitdiff
path: root/HST-S/baselines
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2024-07-05 11:54:37 +0200
committerBirte Kristina Friesel <birte.friesel@uos.de>2024-07-05 11:54:37 +0200
commit912c5b47f8a4503b1788086cdec340cc7ff710af (patch)
treedb0da81e7dda326dc1c9d63fedd25897f671aac3 /HST-S/baselines
parentb3d5310f6c53b15d7715f61f38a0bd423a829791 (diff)
HST-S: call free()
Diffstat (limited to 'HST-S/baselines')
-rw-r--r--HST-S/baselines/cpu/app_baseline.c12
1 files changed, 12 insertions, 0 deletions
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;
}