source: src/benchmark/Makefile.am @ 22ef6a5

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 22ef6a5 was 22ef6a5, checked in by Thierry Delisle <tdelisle@…>, 4 years ago

Adjusted scheduling benchmark for uC++

  • Property mode set to 100644
File size: 6.4 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@
21TOOLSDIR = ${abs_top_srcdir}/tools/
22REPEAT   = ${TOOLSDIR}repeat
23STATS    = ${TOOLSDIR}stat.py
24repeats  = 30
25
26.NOTPARALLEL:
27
28noinst_PROGRAMS =
29
30bench$(EXEEXT) :
31        @for ccflags in "-debug" "-nodebug"; do \
32                echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\
33                ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\
34                ./a.out ; \
35        done ; \
36        rm -f ./a.out ;
37
38csv-data$(EXEEXT):
39        @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=50000000 csv-data.c
40        @./a.out
41        @rm -f ./a.out
42
43## =========================================================================================================
44ctxswitch$(EXEEXT): \
45        ctxswitch-pthread.run           \
46        ctxswitch-cfa_coroutine.run     \
47        ctxswitch-cfa_thread.run        \
48        ctxswitch-upp_coroutine.run     \
49        ctxswitch-upp_thread.run
50
51ctxswitch-cfa_coroutine$(EXEEXT):
52        ${CC}        ctxswitch/cfa_cor.c   -DBENCH_N=50000000  -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
53
54ctxswitch-cfa_thread$(EXEEXT):
55        ${CC}        ctxswitch/cfa_thrd.c  -DBENCH_N=50000000  -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
56
57ctxswitch-upp_coroutine$(EXEEXT):
58        u++          ctxswitch/upp_cor.cc  -DBENCH_N=50000000  -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
59
60ctxswitch-upp_thread$(EXEEXT):
61        u++          ctxswitch/upp_thrd.cc -DBENCH_N=50000000  -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
62
63ctxswitch-pthread$(EXEEXT):
64        @BACKEND_CC@ ctxswitch/pthreads.c  -DBENCH_N=50000000  -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
65
66## =========================================================================================================
67creation$(EXEEXT) :\
68        creation-pthread.run            \
69        creation-cfa_coroutine.run      \
70        creation-cfa_thread.run         \
71        creation-upp_coroutine.run      \
72        creation-upp_thread.run
73
74creation-cfa_coroutine$(EXEEXT):
75        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
76
77creation-cfa_thread$(EXEEXT):
78        ${CC}        creation/cfa_thrd.c  -DBENCH_N=10000000   -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
79
80creation-upp_coroutine$(EXEEXT):
81        u++          creation/upp_cor.cc  -DBENCH_N=50000000   -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
82
83creation-upp_thread$(EXEEXT):
84        u++          creation/upp_thrd.cc -DBENCH_N=50000000   -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
85
86creation-pthread$(EXEEXT):
87        @BACKEND_CC@ creation/pthreads.c  -DBENCH_N=250000     -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
88
89## =========================================================================================================
90mutex$(EXEEXT) :\
91        mutex-function.run      \
92        mutex-pthread_lock.run  \
93        mutex-upp.run           \
94        mutex-cfa1.run          \
95        mutex-cfa2.run          \
96        mutex-cfa4.run
97
98mutex-function$(EXEEXT):
99        @BACKEND_CC@ mutex/function.c    -DBENCH_N=500000000   -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
100
101mutex-pthread_lock$(EXEEXT):
102        @BACKEND_CC@ mutex/pthreads.c    -DBENCH_N=50000000    -I. -lrt -pthread                    ${AM_CFLAGS} ${CFLAGS} ${ccflags}
103
104mutex-upp$(EXEEXT):
105        u++          mutex/upp.cc        -DBENCH_N=50000000    -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
106
107mutex-cfa1$(EXEEXT):
108        ${CC}        mutex/cfa1.c        -DBENCH_N=5000000     -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
109
110mutex-cfa2$(EXEEXT):
111        ${CC}        mutex/cfa2.c        -DBENCH_N=5000000     -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
112
113mutex-cfa4$(EXEEXT):
114        ${CC}        mutex/cfa4.c        -DBENCH_N=5000000     -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
115
116## =========================================================================================================
117signal$(EXEEXT) :\
118        signal-upp.run          \
119        signal-cfa1.run         \
120        signal-cfa2.run         \
121        signal-cfa4.run
122
123signal-upp$(EXEEXT):
124        u++          schedint/upp.cc     -DBENCH_N=5000000     -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
125
126signal-cfa1$(EXEEXT):
127        ${CC}        schedint/cfa1.c     -DBENCH_N=500000      -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
128
129signal-cfa2$(EXEEXT):
130        ${CC}        schedint/cfa2.c     -DBENCH_N=500000      -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
131
132signal-cfa4$(EXEEXT):
133        ${CC}        schedint/cfa4.c     -DBENCH_N=500000      -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
134
135## =========================================================================================================
136waitfor$(EXEEXT) :\
137        waitfor-upp.run         \
138        waitfor-cfa1.run                \
139        waitfor-cfa2.run                \
140        waitfor-cfa4.run
141
142waitfor-upp$(EXEEXT):
143        u++          schedext/upp.cc     -DBENCH_N=5000000     -I. -nodebug -lrt -quiet             ${AM_CFLAGS} ${CFLAGS} ${ccflags}
144
145waitfor-cfa1$(EXEEXT):
146        ${CC}        schedext/cfa1.c     -DBENCH_N=500000      -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
147
148waitfor-cfa2$(EXEEXT):
149        ${CC}        schedext/cfa2.c     -DBENCH_N=500000      -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
150
151waitfor-cfa4$(EXEEXT):
152        ${CC}        schedext/cfa4.c     -DBENCH_N=500000      -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
153
154## =========================================================================================================
155
156%.run : %$(EXEEXT) ${REPEAT}
157        @rm -f .result.log
158        @echo "------------------------------------------------------"
159        @echo $<
160        @${REPEAT} ${repeats} ./a.out | tee -a .result.log
161        @${STATS} .result.log
162        @echo "------------------------------------------------------"
163        @rm -f a.out .result.log
164
165${REPEAT} :
166        @+make -C ${TOOLSDIR} repeat
Note: See TracBrowser for help on using the repository browser.