From 52a42d9bf8506f4adb95ea8fe03f1dd78bb74cc6 Mon Sep 17 00:00:00 2001 From: David Kaufmann Date: Mon, 30 Jan 2012 21:28:26 +0100 Subject: [PATCH] add reduce algorithm --- prefix/Makefile | 5 ++++- prefix/runAll.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/prefix/Makefile b/prefix/Makefile index df51465..c5a7cf6 100644 --- a/prefix/Makefile +++ b/prefix/Makefile @@ -4,7 +4,7 @@ CC = gcc CFLAGS = -pedantic -Wall -ggdb -fopenmp --std=c99 -O3 ${MYFLAGS} LDFLAGS = -fopenmp -all: build/seq build/recurse build/datapar build/hillis_partial build/hillis_sum +all: build/seq build/recurse build/datapar build/hillis_partial build/hillis_sum build/reduce build/seq: build/prefix.o build/seq.o $(CC) -o $@ $? $(LDFLAGS) @@ -21,6 +21,9 @@ build/hillis_partial: build/prefix.o build/hillis_partial.o build/hillis_sum: build/prefix.o build/hillis_sum.o $(CC) -o $@ $? $(LDFLAGS) +build/reduce: build/prefix.o build/reduce.o + $(CC) -o $@ $? $(LDFLAGS) + build/%.o: %.c mkdir $(CC) $(CFLAGS) -c $< -o $@ diff --git a/prefix/runAll.sh b/prefix/runAll.sh index 79cb6ca..8c95f7e 100755 --- a/prefix/runAll.sh +++ b/prefix/runAll.sh @@ -20,7 +20,7 @@ fi STARTTS="`date --iso-8601=minutes`" SCHEDULING="static dynamic guided runtime" -ALGORITHMS="seq datapar recurse hillis_sum hillis_partial" +ALGORITHMS="seq datapar recurse hillis_sum hillis_partial reduce" RUNLIST="$(seq 0 250000 1000000) $(seq 0 2500000 10000000) $(seq 0 25000000 100000000)" echo "STARTING: stats/raw/${STARTTS}" -- 2.43.0