summaryrefslogtreecommitdiff
path: root/SCAN-SSA/host/app.c
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-17 14:50:45 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-17 14:50:45 +0200
commitb40af5568dd555326748e1cd0193a2a767f7c959 (patch)
tree61697a50bfaa2264e7ae10dc847fd1790427c7e8 /SCAN-SSA/host/app.c
parentce1e6a89d294507a21cc27bae1cba22a7af68a8c (diff)
note that this benchmark is unfair
Diffstat (limited to 'SCAN-SSA/host/app.c')
-rw-r--r--SCAN-SSA/host/app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/SCAN-SSA/host/app.c b/SCAN-SSA/host/app.c
index 93650a8..2d1b186 100644
--- a/SCAN-SSA/host/app.c
+++ b/SCAN-SSA/host/app.c
@@ -47,6 +47,8 @@ static void read_input(T* A, unsigned int nr_elements, unsigned int nr_elements_
}
// Compute output in the host
+// XXX for a proper comparison, this function would need to use OpenMP or similar
+// (i.e., a SCAN-SSA variant using multiple threads)
static void scan_host(T* C, T* A, unsigned int nr_elements) {
C[0] = A[0];
for (unsigned int i = 1; i < nr_elements; i++) {