Skip to content

Commit

Permalink
Bump number of iterations in benchmarks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarah Mount committed Aug 8, 2016
1 parent 3182f1d commit 6944f87
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
25 changes: 25 additions & 0 deletions benchmarks/single-core/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
SRC=$(wildcard *.c)
ELFS=$(patsubst %.c,%.elf,$(SRC))

ESDK=${EPIPHANY_HOME}
LDF=${ESDK}/bsps/parallella_E16G3_1GB/fast.ldf

CC=e-gcc
CFLAGS=-Wall -Wno-unused -Werror -falign-functions=8
EXTRA_CFLAGS=

LDFLAGS=-T${LDF}
LDLIBS=-le-lib

LIBDIR=${ESDK}/tools/host/lib
INCDIR=${ESDK}/tools/host/include

.PHONY: all clean

all: ${ELFS}

%.elf: %.c
${CC} $< -o $@ ${CFLAGS} ${EXTRA_CFLAGS} -static -L${LIBDIR} -I${INCDIR} ${LDLIBS} ${LDFLAGS}

clean:
-rm -f ${ELFS}
2 changes: 1 addition & 1 deletion benchmarks/single-core/fib_large.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <stdio.h>
int main() {
unsigned long a = 1, b = 1, i = 0, temp = 0;
for(i = 0; i < 10000; i++) {
for(i = 0; i < 10000000; i++) {
temp = a;
a = b;
b += temp;
Expand Down
Binary file modified benchmarks/single-core/fib_large.elf
100644 → 100755
Binary file not shown.
2 changes: 1 addition & 1 deletion benchmarks/single-core/richards.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ void append(struct packet *pkt, struct packet *ptr)

int main(void)
{
int reps = 1; /* FIXME: 500 */
int reps = 100; /* FIXME: 500 */
struct packet *wkq = 0;
struct task *tasks[NUM_TASKS];
struct packet *pkts[NUM_PKTS];
Expand Down
Binary file modified benchmarks/single-core/richards.elf
100644 → 100755
Binary file not shown.

0 comments on commit 6944f87

Please sign in to comment.