source: src/benchmark/Makefile.am@ e0e47d4

ADT aaron-thesis arm-eh ast-experimental cleanup-dtors deferred_resn demangler enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr new-env no_list persistent-indexer pthread-emulation qualifiedEnum resolv-new stuck-waitfor-destruct with_gc
Last change on this file since e0e47d4 was 91496f3, checked in by Thierry Delisle <tdelisle@…>, 8 years ago

Fixed behcnmarks for jenkins

  • Property mode set to 100644
File size: 10.2 KB
RevLine 
[ac93b228]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
[df47e2f]20CC = @CFA_BINDIR@/@CFA_NAME@
[b7170a64]21TOOLSDIR = ${abs_top_srcdir}/tools/
22REPEAT = ${TOOLSDIR}repeat
23STATS = ${TOOLSDIR}stat.py
24repeats = 30
[a5b7905]25TIME_FORMAT = "%E"
[2086ab2]26PRINT_FORMAT = %20s: #Comments needed for spacing
[034165a]27
28.NOTPARALLEL:
[ac93b228]29
[b7170a64]30noinst_PROGRAMS =
[ac93b228]31
[4cedd9f]32all : ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT)
33
[a5b7905]34%.run : %$(EXEEXT) ${REPEAT}
35 @rm -f .result.log
36 @echo "------------------------------------------------------"
37 @echo $<
38 @${REPEAT} ${repeats} ./a.out | tee -a .result.log
39 @${STATS} .result.log
40 @echo "------------------------------------------------------"
41 @rm -f a.out .result.log
[ac93b228]42
[a5b7905]43%.runquiet :
44 @+make $(basename $@)
[034165a]45 @./a.out
[a5b7905]46 @rm -f a.out
47
48%.make :
49 @printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@))
50 @+/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1
51
52${REPEAT} :
53 @+make -C ${TOOLSDIR} repeat
54
55## =========================================================================================================
56
57jenkins$(EXEEXT):
58 @echo "{"
59 @echo -e '\t"githash": "'${githash}'",'
60 @echo -e '\t"arch": "' ${arch} '",'
[91496f3]61 @echo -e '\t"compile": {'
62 @+make compile TIME_FORMAT='%e,' PRINT_FORMAT='\t\t\"%s\" :'
63 @echo -e '\t\t"dummy" : {}'
64 @echo -e '\t},'
[a5b7905]65 @echo -e '\t"ctxswitch": {'
66 @echo -en '\t\t"coroutine":'
67 @+make ctxswitch-cfa_coroutine.runquiet
68 @echo -en '\t\t,"thread":'
69 @+make ctxswitch-cfa_thread.runquiet
70 @echo -e '\t},'
71 @echo -e '\t"mutex": ['
72 @echo -en '\t\t'
73 @+make mutex-cfa1.runquiet
74 @echo -en '\t\t,'
75 @+make mutex-cfa2.runquiet
76 @echo -e '\t],'
77 @echo -e '\t"scheduling": ['
78 @echo -en '\t\t'
79 @+make signal-cfa1.runquiet
80 @echo -en '\t\t,'
81 @+make signal-cfa2.runquiet
82 @echo -en '\t\t,'
83 @+make waitfor-cfa1.runquiet
84 @echo -en '\t\t,'
85 @+make waitfor-cfa2.runquiet
86 @echo -e '\n\t],'
87 @echo -e '\t"epoch": ' $(shell date +%s)
88 @echo "}"
[ac93b228]89
[034165a]90## =========================================================================================================
91ctxswitch$(EXEEXT): \
[b7170a64]92 ctxswitch-pthread.run \
93 ctxswitch-cfa_coroutine.run \
94 ctxswitch-cfa_thread.run \
95 ctxswitch-upp_coroutine.run \
[50abab9]96 ctxswitch-upp_thread.run \
97 ctxswitch-goroutine.run \
98 ctxswitch-java_thread.run
[034165a]99
100ctxswitch-cfa_coroutine$(EXEEXT):
[a5b7905]101 @${CC} ctxswitch/cfa_cor.c -DBENCH_N=50000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[034165a]102
103ctxswitch-cfa_thread$(EXEEXT):
[a5b7905]104 @${CC} ctxswitch/cfa_thrd.c -DBENCH_N=50000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[034165a]105
106ctxswitch-upp_coroutine$(EXEEXT):
[a5b7905]107 @u++ ctxswitch/upp_cor.cc -DBENCH_N=50000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[034165a]108
109ctxswitch-upp_thread$(EXEEXT):
[a5b7905]110 @u++ ctxswitch/upp_thrd.cc -DBENCH_N=50000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[ac93b228]111
[d67cdb7]112ctxswitch-pthread$(EXEEXT):
[a5b7905]113 @@BACKEND_CC@ ctxswitch/pthreads.c -DBENCH_N=50000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[034165a]114
[50abab9]115ctxswitch-goroutine$(EXEEXT):
116 @go build -o a.out ctxswitch/goroutine.go
117
118ctxswitch-java_thread$(EXEEXT):
119 @javac ctxswitch/JavaThread.java
120 @echo "#!/bin/sh" > a.out
121 @echo "cd ctxswitch && java JavaThread" >> a.out
122 @chmod a+x a.out
123
[f54a0ab]124## =========================================================================================================
125mutex$(EXEEXT) :\
126 mutex-function.run \
[6aa537a4]127 mutex-fetch_add.run \
[f54a0ab]128 mutex-pthread_lock.run \
129 mutex-upp.run \
130 mutex-cfa1.run \
131 mutex-cfa2.run \
[6aa537a4]132 mutex-cfa4.run \
133 mutex-java_thread.run
[f54a0ab]134
135mutex-function$(EXEEXT):
[a5b7905]136 @@BACKEND_CC@ mutex/function.c -DBENCH_N=500000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[f54a0ab]137
[6aa537a4]138mutex-fetch_add$(EXEEXT):
139 @@BACKEND_CC@ mutex/fetch_add.c -DBENCH_N=500000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
140
[f54a0ab]141mutex-pthread_lock$(EXEEXT):
[a5b7905]142 @@BACKEND_CC@ mutex/pthreads.c -DBENCH_N=50000000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[f54a0ab]143
144mutex-upp$(EXEEXT):
[a5b7905]145 @u++ mutex/upp.cc -DBENCH_N=50000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[f54a0ab]146
147mutex-cfa1$(EXEEXT):
[a5b7905]148 @${CC} mutex/cfa1.c -DBENCH_N=5000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[f54a0ab]149
150mutex-cfa2$(EXEEXT):
[a5b7905]151 @${CC} mutex/cfa2.c -DBENCH_N=5000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[f54a0ab]152
153mutex-cfa4$(EXEEXT):
[a5b7905]154 @${CC} mutex/cfa4.c -DBENCH_N=5000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[034165a]155
[6aa537a4]156mutex-java_thread$(EXEEXT):
157 @javac mutex/JavaThread.java
158 @echo "#!/bin/sh" > a.out
159 @echo "cd mutex && java JavaThread" >> a.out
160 @chmod a+x a.out
161
[9f0b975]162## =========================================================================================================
163signal$(EXEEXT) :\
[3eb4541]164 signal-pthread_cond.run \
[9f0b975]165 signal-upp.run \
166 signal-cfa1.run \
167 signal-cfa2.run \
[56de6b39]168 signal-cfa4.run \
169 signal-java_thread.run
[9f0b975]170
[3eb4541]171signal-pthread_cond$(EXEEXT):
172 @@BACKEND_CC@ schedint/pthreads.c -DBENCH_N=500000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
173
[9f0b975]174signal-upp$(EXEEXT):
[a5b7905]175 @u++ schedint/upp.cc -DBENCH_N=5000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]176
177signal-cfa1$(EXEEXT):
[a5b7905]178 @${CC} schedint/cfa1.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]179
180signal-cfa2$(EXEEXT):
[a5b7905]181 @${CC} schedint/cfa2.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]182
183signal-cfa4$(EXEEXT):
[a5b7905]184 @${CC} schedint/cfa4.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]185
[6aa537a4]186signal-java_thread$(EXEEXT):
187 @javac schedint/JavaThread.java
188 @echo "#!/bin/sh" > a.out
189 @echo "cd schedint && java JavaThread" >> a.out
190 @chmod a+x a.out
191
192
[9f0b975]193## =========================================================================================================
194waitfor$(EXEEXT) :\
195 waitfor-upp.run \
196 waitfor-cfa1.run \
197 waitfor-cfa2.run \
198 waitfor-cfa4.run
199
200waitfor-upp$(EXEEXT):
[a5b7905]201 @u++ schedext/upp.cc -DBENCH_N=5000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]202
203waitfor-cfa1$(EXEEXT):
[d2d50d7]204 @${CC} schedext/cfa1.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]205
206waitfor-cfa2$(EXEEXT):
[a5b7905]207 @${CC} schedext/cfa2.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]208
209waitfor-cfa4$(EXEEXT):
[a5b7905]210 @${CC} schedext/cfa4.c -DBENCH_N=500000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[9f0b975]211
[4cedd9f]212## =========================================================================================================
213creation$(EXEEXT) :\
[3351cc0]214 creation-pthread.run \
215 creation-cfa_coroutine.run \
216 creation-cfa_coroutine_eager.run \
217 creation-cfa_thread.run \
218 creation-upp_coroutine.run \
[50abab9]219 creation-upp_thread.run \
220 creation-goroutine.run \
221 creation-java_thread.run
[4cedd9f]222
223creation-cfa_coroutine$(EXEEXT):
[a5b7905]224 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[4cedd9f]225
[3351cc0]226creation-cfa_coroutine_eager$(EXEEXT):
[a5b7905]227 @${CC} creation/cfa_cor.c -DBENCH_N=10000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -DEAGER
[3351cc0]228
[4cedd9f]229creation-cfa_thread$(EXEEXT):
[a5b7905]230 @${CC} creation/cfa_thrd.c -DBENCH_N=10000000 -I. -nodebug -lrt -quiet @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[4cedd9f]231
232creation-upp_coroutine$(EXEEXT):
[a5b7905]233 @u++ creation/upp_cor.cc -DBENCH_N=50000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[4cedd9f]234
235creation-upp_thread$(EXEEXT):
[a5b7905]236 @u++ creation/upp_thrd.cc -DBENCH_N=50000000 -I. -nodebug -lrt -quiet ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[4cedd9f]237
238creation-pthread$(EXEEXT):
[a5b7905]239 @@BACKEND_CC@ creation/pthreads.c -DBENCH_N=250000 -I. -lrt -pthread ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[4cedd9f]240
[50abab9]241creation-goroutine$(EXEEXT):
242 @go build -o a.out creation/goroutine.go
243
244creation-java_thread$(EXEEXT):
245 @javac creation/JavaThread.java
246 @echo "#!/bin/sh" > a.out
247 @echo "cd creation && java JavaThread" >> a.out
248 @chmod a+x a.out
249
[034165a]250## =========================================================================================================
251
[3edc2df]252compile$(EXEEXT) :\
[a5b7905]253 compile-array.make \
254 compile-attributes.make \
255 compile-empty.make \
256 compile-expression.make \
257 compile-io.make \
258 compile-monitor.make \
259 compile-operators.make \
260 compile-typeof.make
[3edc2df]261
262
263compile-array$(EXEEXT):
[ae46e05]264 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/array.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]265
266compile-attributes$(EXEEXT):
[ae46e05]267 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/attributes.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]268
269compile-empty$(EXEEXT):
[ae46e05]270 @${CC} -nodebug -quiet -fsyntax-only -w compile/empty.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]271
272compile-expression$(EXEEXT):
[ae46e05]273 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/expression.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]274
275compile-io$(EXEEXT):
[ae46e05]276 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/io.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]277
278compile-monitor$(EXEEXT):
[ae46e05]279 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/concurrent/monitor.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]280
281compile-operators$(EXEEXT):
[ae46e05]282 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/operators.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]283
284compile-thread$(EXEEXT):
[ae46e05]285 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/concurrent/thread.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]286
287compile-typeof$(EXEEXT):
[ae46e05]288 @${CC} -nodebug -quiet -fsyntax-only -w ../tests/typeof.c @CFA_FLAGS@ ${AM_CFLAGS} ${CFLAGS} ${ccflags}
[3edc2df]289
Note: See TracBrowser for help on using the repository browser.