aboutsummaryrefslogtreecommitdiffstats
path: root/barriersend.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-28 16:42:05 +0200
committerMattias Andrée <maandree@kth.se>2024-08-28 16:42:05 +0200
commita24071ae913b223487df78859c8d830f9e69f580 (patch)
treee2ec712cc29461c82cfdd477e8b1ba961b50018d /barriersend.c
parentFirst commit (diff)
downloadanysum-a24071ae913b223487df78859c8d830f9e69f580.tar.gz
anysum-a24071ae913b223487df78859c8d830f9e69f580.tar.bz2
anysum-a24071ae913b223487df78859c8d830f9e69f580.tar.xz
Second commit
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--barriersend.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/barriersend.c b/barriersend.c
deleted file mode 100644
index a947357..0000000
--- a/barriersend.c
+++ /dev/null
@@ -1,16 +0,0 @@
-/* See LICENSE file for copyright and license details. */
-#include "common.h"
-
-
-void
-barriersend(struct barrier_group *group, struct global_data *global, void (*action)(struct algorithm *, struct global_data *))
-{
- size_t index;
- global->action = action;
- if (group->nthreads)
- barrierwait(&group->barrier);
- for (index = 0; index < global->nalgorithms; index += group->nthreads + 1U)
- (*action)(&global->algorithms[index], global);
- if (group->nthreads)
- barrierwait(&group->barrier);
-}