source: src/benchmark/Makefile.am @ 4149d9d

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since 4149d9d was 034165a, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

renamed and updated benchmarks for consistency

  • Property mode set to 100644
File size: 3.6 KB
Line 
1######################## -*- Mode: Makefile-Automake -*- ######################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.am --
9##
10## Author           : Peter A. Buhr
11## Created On       : Sun May 31 09:08:15 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Mon Jan 25 22:31:42 2016
14## Update Count     : 25
15###############################################################################
16
17# applies to both programs
18CFLAGS =
19AM_CFLAGS = -g -Wall -Wno-unused-function -O2
20CC = @CFA_BINDIR@/@CFA_NAME@
21REPEAT = ${abs_top_srcdir}/tools/a.out
22repeats = 30
23
24.NOTPARALLEL:
25
26noinst_PROGRAMS = bench$(EXEEXT) ctxswitch-coroutine$(EXEEXT) ctxswitch-thread$(EXEEXT) sched-int$(EXEEXT) monitor$(EXEEXT) csv-data$(EXEEXT)
27
28bench$(EXEEXT) :
29        @for ccflags in "-debug" "-nodebug"; do \
30                echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\
31                ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\
32                ./a.out ; \
33        done ; \
34        rm -f ./a.out ;
35
36csv-data$(EXEEXT):
37        @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=50000000 csv-data.c
38        @./a.out
39        @rm -f ./a.out
40
41## =========================================================================================================
42ctxswitch$(EXEEXT): \
43        ctxswitch-cfa_coroutine.run     \
44        ctxswitch-cfa_thread.run        \
45        ctxswitch-upp_coroutine.run     \
46        ctxswitch-upp_thread.run        \
47        ctxswitch-pthread.run
48
49ctxswitch-cfa_coroutine$(EXEEXT):
50        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -DN=50000000 ctxswitch/cfa_cor.c
51
52ctxswitch-cfa_thread$(EXEEXT):
53        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -DN=50000000 ctxswitch/cfa_thrd.c
54
55ctxswitch-upp_coroutine$(EXEEXT):
56        u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -DN=50000000 ctxswitch/upp_cor.cc
57
58ctxswitch-upp_thread$(EXEEXT):
59        u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -DN=50000000 ctxswitch/upp_cor.cc
60
61ctxswitch-pthread$(EXEEXT):
62        @BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DN=50000000 ctxswitch/pthreads.c
63
64## =========================================================================================================
65creation$(EXEEXT) :\
66        creation-pthread.run            \
67        creation-cfa_coroutine.run      \
68        creation-cfa_thread.run         \
69        creation-upp_coroutine.run      \
70        creation-upp_thread.run
71
72creation-cfa_coroutine$(EXEEXT):
73        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -DBENCH_N=500000000 creation/cfa_cor.c
74
75creation-cfa_thread$(EXEEXT):
76        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -DBENCH_N=10000000 creation/cfa_thrd.c
77
78creation-upp_coroutine$(EXEEXT):
79        u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -DBENCH_N=50000000 creation/upp_cor.cc
80
81creation-upp_thread$(EXEEXT):
82        u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -DBENCH_N=50000000 creation/upp_cor.cc
83
84creation-pthread$(EXEEXT):
85        @BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=2500000 creation/pthreads.c
86
87## =========================================================================================================
88sched-int$(EXEEXT):
89        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
90
91monitor$(EXEEXT):
92        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c
93
94%.run : %$(EXEEXT)
95        @rm -f .result.log
96        @./catchsig
97        @${REPEAT} ${repeats} ./a.out | tee -a .result.log
98        @./stat.py .result.log
99        @rm -f a.out .result.log
Note: See TracBrowser for help on using the repository browser.