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 : Tue Mar 10 11:41:18 2020 |
---|
14 | ## Update Count : 258 |
---|
15 | ############################################################################### |
---|
16 | |
---|
17 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names |
---|
18 | ACLOCAL_AMFLAGS = -I automake |
---|
19 | |
---|
20 | # applies to both programs |
---|
21 | include $(top_srcdir)/tools/build/cfa.make |
---|
22 | |
---|
23 | AM_CFLAGS = -O2 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror |
---|
24 | AM_CFAFLAGS = -quiet -nodebug |
---|
25 | AM_UPPFLAGS = -quiet -nodebug -multi -std=c++14 |
---|
26 | |
---|
27 | BENCH_V_CC = $(__bench_v_CC_$(__quiet)) |
---|
28 | BENCH_V_CFA = $(__bench_v_CFA_$(__quiet)) |
---|
29 | BENCH_V_CXX = $(__bench_v_CXX_$(__quiet)) |
---|
30 | BENCH_V_UPP = $(__bench_v_UPP_$(__quiet)) |
---|
31 | BENCH_V_GOC = $(__bench_v_GOC_$(__quiet)) |
---|
32 | BENCH_V_PY = $(__bench_v_PY_$(__quiet)) |
---|
33 | BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet)) |
---|
34 | BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet)) |
---|
35 | BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet)) |
---|
36 | |
---|
37 | __quiet = verbose |
---|
38 | __bench_v_CC_quiet = @ |
---|
39 | __bench_v_CFA_quiet = @ |
---|
40 | __bench_v_CXX_quiet = @ |
---|
41 | __bench_v_UPP_quiet = @ |
---|
42 | __bench_v_GOC_quiet = @ |
---|
43 | __bench_v_RUSTC_quiet = @ |
---|
44 | __bench_v_JAVAC_quiet = @ |
---|
45 | __bench_v_CC_verbose = $(AM_V_CC) |
---|
46 | __bench_v_CFA_verbose = $(AM_V_CFA) |
---|
47 | __bench_v_CXX_verbose = $(AM_V_CXX) |
---|
48 | __bench_v_UPP_verbose = $(AM_V_UPP) |
---|
49 | __bench_v_GOC_verbose = $(AM_V_GOC) |
---|
50 | __bench_v_PY_verbose = $(AM_V_PY) |
---|
51 | __bench_v_RUSTC_verbose = $(AM_V_RUST) |
---|
52 | __bench_v_NODEJS_verbose = $(AM_V_NODEJS) |
---|
53 | __bench_v_JAVAC_verbose = $(AM_V_JAVAC) |
---|
54 | |
---|
55 | |
---|
56 | TOOLSDIR = ${abs_top_builddir}/tools/ |
---|
57 | REPEAT = ${abs_top_builddir}/tools/repeat |
---|
58 | STATS = ${abs_top_srcdir}/tools/stat.py |
---|
59 | # NEED AT LEAST 4 DATA VALUES FOR BENCHMARKS BECAUSE THE MAX AND MIN VALUES ARE REMOVED |
---|
60 | repeats = 13 # 31 for benchmarks |
---|
61 | arch = x64 |
---|
62 | skipcompile = no |
---|
63 | TIME_FORMAT = "%E" |
---|
64 | PRINT_FORMAT = %20s: #Comments needed for spacing |
---|
65 | |
---|
66 | # Dummy hack tricks |
---|
67 | EXTRA_PROGRAMS = dummy # build but do not install |
---|
68 | nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp |
---|
69 | |
---|
70 | dummyC.c: |
---|
71 | echo "int main() { return 0; }" > ${@} |
---|
72 | |
---|
73 | dummyCXX.cpp: |
---|
74 | echo "int main() { return 0; }" > ${@} |
---|
75 | |
---|
76 | .SILENT: # do not print recipe |
---|
77 | .NOTPARALLEL: |
---|
78 | .PHONY: jenkins cleancsv |
---|
79 | |
---|
80 | ## ========================================================================================================= |
---|
81 | |
---|
82 | # all is used by make dist so ignore it |
---|
83 | all: |
---|
84 | |
---|
85 | all-bench : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) |
---|
86 | |
---|
87 | basic_loop_DURATION = 15000000000 |
---|
88 | basic_function_DURATION = 10000000000 |
---|
89 | basic_tls_fetch_add_DURATION = 10000000000 |
---|
90 | basic_DURATION = 250000000 |
---|
91 | |
---|
92 | ctxswitch_pthread_DURATION = 25000000 |
---|
93 | ctxswitch_rust_thread_DURATION = $(ctxswitch_pthread_DURATION) |
---|
94 | ctxswitch_cfa_generator_DURATION = 5000000000 |
---|
95 | ctxswitch_nodejs_await_DURATION = 5000000 |
---|
96 | ctxswitch_DURATION = 100000000 |
---|
97 | |
---|
98 | #mutex_java_DURATION = 10000000 |
---|
99 | mutex_DURATION = 50000000 |
---|
100 | |
---|
101 | schedint_pthread_DURATION = 1000000 |
---|
102 | schedint_java_DURATION = $(schedint_pthread_DURATION) |
---|
103 | schedint_rust_DURATION = $(schedint_pthread_DURATION) |
---|
104 | schedint_DURATION = 10000000 |
---|
105 | |
---|
106 | schedext_DURATION = 10000000 |
---|
107 | |
---|
108 | creation_pthread_DURATION = 250000 |
---|
109 | creation_rust_thread_DURATION = ${creation_pthread_DURATION} |
---|
110 | creation_java_thread_DURATION = ${creation_pthread_DURATION} |
---|
111 | creation_cfa_coroutine_DURATION = 100000000 |
---|
112 | creation_cfa_coroutine_eager_DURATION = 10000000 |
---|
113 | creation_cfa_generator_DURATION = 1000000000 |
---|
114 | creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} |
---|
115 | creation_DURATION = 10000000 |
---|
116 | |
---|
117 | %.run : %$(EXEEXT) ${REPEAT} |
---|
118 | rm -f .result.log |
---|
119 | echo "------------------------------------------------------" |
---|
120 | echo $< |
---|
121 | ${REPEAT} ${repeats} -- ./a.out\ |
---|
122 | $(if ${$(subst -,_,$(basename $@))_DURATION},\ |
---|
123 | ${$(subst -,_,$(basename $@))_DURATION},\ |
---|
124 | ${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log |
---|
125 | ${STATS} .result.log |
---|
126 | echo "------------------------------------------------------" |
---|
127 | rm -f a.out .result.log *.class |
---|
128 | |
---|
129 | # ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out |
---|
130 | |
---|
131 | %.runquiet : |
---|
132 | +make $(basename $@) CFLAGS="-w" __quiet=quiet |
---|
133 | taskset -c 1 ./a.out |
---|
134 | rm -f a.out |
---|
135 | |
---|
136 | %.make : |
---|
137 | printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@)) |
---|
138 | +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1 |
---|
139 | |
---|
140 | ${REPEAT} : |
---|
141 | +make -C ${abs_top_builddir}/tools repeat |
---|
142 | |
---|
143 | ## ========================================================================================================= |
---|
144 | |
---|
145 | FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@ |
---|
146 | |
---|
147 | cleancsv: |
---|
148 | rm -f compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv |
---|
149 | |
---|
150 | jenkins$(EXEEXT): cleancsv |
---|
151 | @DOifskipcompile@ |
---|
152 | +make compile.csv |
---|
153 | -+make compile.diff.csv |
---|
154 | @DOendif@ |
---|
155 | +make ctxswitch.csv |
---|
156 | -+make ctxswitch.diff.csv |
---|
157 | +make mutex.csv |
---|
158 | -+make mutex.diff.csv |
---|
159 | +make schedint.csv |
---|
160 | -+make schedint.diff.csv |
---|
161 | @DOifskipcompile@ |
---|
162 | cat compile.csv |
---|
163 | -cat compile.diff.csv |
---|
164 | @DOendif@ |
---|
165 | cat ctxswitch.csv |
---|
166 | -cat ctxswitch.diff.csv |
---|
167 | cat mutex.csv |
---|
168 | -cat mutex.diff.csv |
---|
169 | cat schedint.csv |
---|
170 | -cat schedint.diff.csv |
---|
171 | |
---|
172 | compile.csv: |
---|
173 | echo "building $@" |
---|
174 | echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ |
---|
175 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ |
---|
176 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@ |
---|
177 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@ |
---|
178 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@ |
---|
179 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@ |
---|
180 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@ |
---|
181 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@ |
---|
182 | +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@ |
---|
183 | $(srcdir)/fixcsv.sh $@ |
---|
184 | |
---|
185 | ctxswitch.csv: |
---|
186 | echo "building $@" |
---|
187 | echo "generator,coroutine,thread" > $@ |
---|
188 | +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ |
---|
189 | +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ |
---|
190 | +make ctxswitch-cfa_thread.runquiet >> $@ |
---|
191 | $(srcdir)/fixcsv.sh $@ |
---|
192 | |
---|
193 | mutex.csv: |
---|
194 | echo "building $@" |
---|
195 | echo "1-monitor,2-monitor" > $@ |
---|
196 | +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
197 | +make mutex-cfa2.runquiet >> $@ |
---|
198 | $(srcdir)/fixcsv.sh $@ |
---|
199 | |
---|
200 | schedint.csv: |
---|
201 | echo "building $@" |
---|
202 | echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@ |
---|
203 | +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
204 | +make schedint-cfa2.runquiet >> $@ && echo -n ',' >> $@ |
---|
205 | +make schedext-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
206 | +make schedext-cfa2.runquiet >> $@ |
---|
207 | $(srcdir)/fixcsv.sh $@ |
---|
208 | |
---|
209 | %.diff.csv: %.csv |
---|
210 | test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false) |
---|
211 | $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ |
---|
212 | |
---|
213 | ## ========================================================================================================= |
---|
214 | |
---|
215 | BASIC_DEPEND = \ |
---|
216 | basic-loop.run \ |
---|
217 | basic-function.run \ |
---|
218 | basic-fetch_add.run \ |
---|
219 | basic-ttst_lock.run \ |
---|
220 | basic-tls-fetch_add.run |
---|
221 | |
---|
222 | basic-loop$(EXEEXT): |
---|
223 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c |
---|
224 | |
---|
225 | basic-function$(EXEEXT): |
---|
226 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c |
---|
227 | |
---|
228 | basic-fetch_add$(EXEEXT): |
---|
229 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c |
---|
230 | |
---|
231 | basic-ttst_lock$(EXEEXT): |
---|
232 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c |
---|
233 | |
---|
234 | basic-tls-fetch_add$(EXEEXT): |
---|
235 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c |
---|
236 | |
---|
237 | basic$(EXEEXT): $(BASIC_DEPEND) |
---|
238 | |
---|
239 | ## ========================================================================================================= |
---|
240 | |
---|
241 | CTXSWITCH_DEPEND = \ |
---|
242 | ctxswitch-cfa_generator.run \ |
---|
243 | ctxswitch-cfa_coroutine.run \ |
---|
244 | ctxswitch-cfa_thread.run \ |
---|
245 | ctxswitch-cfa_thread2.run \ |
---|
246 | ctxswitch-upp_coroutine.run \ |
---|
247 | ctxswitch-upp_thread.run \ |
---|
248 | ctxswitch-python_coroutine.run \ |
---|
249 | ctxswitch-nodejs_coroutine.run \ |
---|
250 | ctxswitch-nodejs_await.run \ |
---|
251 | ctxswitch-goroutine_thread.run \ |
---|
252 | ctxswitch-rust_thread.run \ |
---|
253 | ctxswitch-nodejs_coroutine.run \ |
---|
254 | ctxswitch-java_thread.run \ |
---|
255 | ctxswitch-pthread.run |
---|
256 | |
---|
257 | if WITH_LIBFIBRE |
---|
258 | CTXSWITCH_DEPEND += \ |
---|
259 | ctxswitch-kos_fibre.run \ |
---|
260 | ctxswitch-kos_fibre2.run |
---|
261 | |
---|
262 | ctxswitch-kos_fibre$(EXEEXT): |
---|
263 | $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre |
---|
264 | |
---|
265 | ctxswitch-kos_fibre2$(EXEEXT): |
---|
266 | $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre |
---|
267 | endif |
---|
268 | |
---|
269 | ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) |
---|
270 | |
---|
271 | ctxswitch-cfa_generator$(EXEEXT): |
---|
272 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa |
---|
273 | |
---|
274 | ctxswitch-cfa_coroutine$(EXEEXT): |
---|
275 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa |
---|
276 | |
---|
277 | ctxswitch-cfa_thread$(EXEEXT): |
---|
278 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa |
---|
279 | |
---|
280 | ctxswitch-cfa_thread2$(EXEEXT): |
---|
281 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa |
---|
282 | |
---|
283 | ctxswitch-upp_coroutine$(EXEEXT): |
---|
284 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc |
---|
285 | |
---|
286 | ctxswitch-upp_thread$(EXEEXT): |
---|
287 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc |
---|
288 | |
---|
289 | ctxswitch-python_coroutine$(EXEEXT): |
---|
290 | $(BENCH_V_PY)echo "#!/bin/sh" > a.out |
---|
291 | echo "python3 $(srcdir)/ctxswitch/python_cor.py \"$$""@\"" >> a.out |
---|
292 | chmod a+x a.out |
---|
293 | |
---|
294 | ctxswitch-nodejs_coroutine$(EXEEXT): |
---|
295 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
296 | echo "nodejs $(srcdir)/ctxswitch/node_cor.js \"$$""@\"" >> a.out |
---|
297 | chmod a+x a.out |
---|
298 | |
---|
299 | ctxswitch-nodejs_await$(EXEEXT): |
---|
300 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
301 | echo "nodejs $(srcdir)/ctxswitch/node_await.js \"$$""@\"" >> a.out |
---|
302 | chmod a+x a.out |
---|
303 | |
---|
304 | ctxswitch-goroutine_thread$(EXEEXT): |
---|
305 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go |
---|
306 | |
---|
307 | ctxswitch-rust_thread$(EXEEXT): |
---|
308 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs |
---|
309 | |
---|
310 | ctxswitch-java_thread$(EXEEXT): |
---|
311 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java |
---|
312 | echo "#!/bin/sh" > a.out |
---|
313 | echo "java JavaThread \"$$""@\"" >> a.out |
---|
314 | chmod a+x a.out |
---|
315 | |
---|
316 | ctxswitch-pthread$(EXEEXT): |
---|
317 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c |
---|
318 | |
---|
319 | ## ========================================================================================================= |
---|
320 | |
---|
321 | mutex$(EXEEXT) : \ |
---|
322 | mutex-cfa1.run \ |
---|
323 | mutex-cfa2.run \ |
---|
324 | mutex-cfa4.run \ |
---|
325 | mutex-upp.run \ |
---|
326 | mutex-go.run \ |
---|
327 | mutex-rust.run \ |
---|
328 | mutex-java.run \ |
---|
329 | mutex-pthread.run |
---|
330 | |
---|
331 | mutex-pthread$(EXEEXT): |
---|
332 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c |
---|
333 | |
---|
334 | mutex-cfa1$(EXEEXT): |
---|
335 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa |
---|
336 | |
---|
337 | mutex-cfa2$(EXEEXT): |
---|
338 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa |
---|
339 | |
---|
340 | mutex-cfa4$(EXEEXT): |
---|
341 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa |
---|
342 | |
---|
343 | mutex-upp$(EXEEXT): |
---|
344 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc |
---|
345 | |
---|
346 | mutex-go$(EXEEXT): |
---|
347 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go |
---|
348 | |
---|
349 | mutex-rust$(EXEEXT): |
---|
350 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs |
---|
351 | |
---|
352 | mutex-java$(EXEEXT): |
---|
353 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java |
---|
354 | echo "#!/bin/sh" > a.out |
---|
355 | echo "java JavaThread \"$$""@\"" >> a.out |
---|
356 | chmod a+x a.out |
---|
357 | |
---|
358 | ## ========================================================================================================= |
---|
359 | |
---|
360 | schedint$(EXEEXT) : \ |
---|
361 | schedint-cfa1.run \ |
---|
362 | schedint-cfa2.run \ |
---|
363 | schedint-cfa4.run \ |
---|
364 | schedint-upp.run \ |
---|
365 | schedint-rust.run \ |
---|
366 | schedint-java.run \ |
---|
367 | schedint-pthread.run |
---|
368 | |
---|
369 | schedint-cfa1$(EXEEXT): |
---|
370 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa |
---|
371 | |
---|
372 | schedint-cfa2$(EXEEXT): |
---|
373 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa |
---|
374 | |
---|
375 | schedint-cfa4$(EXEEXT): |
---|
376 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa |
---|
377 | |
---|
378 | schedint-upp$(EXEEXT): |
---|
379 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc |
---|
380 | |
---|
381 | schedint-rust$(EXEEXT): |
---|
382 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs |
---|
383 | |
---|
384 | schedint-java$(EXEEXT): |
---|
385 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java |
---|
386 | echo "#!/bin/sh" > a.out |
---|
387 | echo "java JavaThread \"$$""@\"" >> a.out |
---|
388 | chmod a+x a.out |
---|
389 | |
---|
390 | schedint-pthread$(EXEEXT): |
---|
391 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c |
---|
392 | |
---|
393 | ## ========================================================================================================= |
---|
394 | |
---|
395 | schedext$(EXEEXT) : \ |
---|
396 | schedext-cfa1.run \ |
---|
397 | schedext-cfa2.run \ |
---|
398 | schedext-cfa4.run \ |
---|
399 | schedext-upp.run \ |
---|
400 | schedext-goroutine.run |
---|
401 | |
---|
402 | schedext-cfa1$(EXEEXT): |
---|
403 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa |
---|
404 | |
---|
405 | schedext-cfa2$(EXEEXT): |
---|
406 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa |
---|
407 | |
---|
408 | schedext-cfa4$(EXEEXT): |
---|
409 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa |
---|
410 | |
---|
411 | schedext-upp$(EXEEXT): |
---|
412 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc |
---|
413 | |
---|
414 | schedext-goroutine$(EXEEXT): |
---|
415 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/schedext/goroutine.go |
---|
416 | |
---|
417 | |
---|
418 | ## ========================================================================================================= |
---|
419 | |
---|
420 | creation$(EXEEXT) : \ |
---|
421 | creation-cfa_generator.run \ |
---|
422 | creation-cfa_coroutine.run \ |
---|
423 | creation-cfa_coroutine_eager.run \ |
---|
424 | creation-cfa_thread.run \ |
---|
425 | creation-upp_coroutine.run \ |
---|
426 | creation-upp_thread.run \ |
---|
427 | creation-python_coroutine.run \ |
---|
428 | creation-nodejs_coroutine.run \ |
---|
429 | creation-goroutine_thread.run \ |
---|
430 | creation-rust_thread.run \ |
---|
431 | creation-java_thread.run \ |
---|
432 | creation-pthread.run |
---|
433 | |
---|
434 | creation-cfa_generator$(EXEEXT): |
---|
435 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_gen.cfa |
---|
436 | |
---|
437 | creation-cfa_coroutine$(EXEEXT): |
---|
438 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa |
---|
439 | |
---|
440 | creation-cfa_coroutine_eager$(EXEEXT): |
---|
441 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa -DEAGER |
---|
442 | |
---|
443 | creation-cfa_thread$(EXEEXT): |
---|
444 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa |
---|
445 | |
---|
446 | creation-upp_coroutine$(EXEEXT): |
---|
447 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc |
---|
448 | |
---|
449 | creation-upp_thread$(EXEEXT): |
---|
450 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc |
---|
451 | |
---|
452 | creation-python_coroutine$(EXEEXT): |
---|
453 | $(BENCH_V_PY)echo "#!/bin/sh" > a.out |
---|
454 | echo "python3 $(srcdir)/creation/python_cor.py \"$$""@\"" >> a.out |
---|
455 | chmod a+x a.out |
---|
456 | |
---|
457 | creation-nodejs_coroutine$(EXEEXT): |
---|
458 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
459 | echo "nodejs $(srcdir)/creation/node_cor.js \"$$""@\"" >> a.out |
---|
460 | chmod a+x a.out |
---|
461 | |
---|
462 | creation-goroutine_thread$(EXEEXT): |
---|
463 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go |
---|
464 | |
---|
465 | creation-rust_thread$(EXEEXT): |
---|
466 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs |
---|
467 | |
---|
468 | creation-java_thread$(EXEEXT): |
---|
469 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java |
---|
470 | echo "#!/bin/sh" > a.out |
---|
471 | echo "java JavaThread \"$$""@\"" >> a.out |
---|
472 | chmod a+x a.out |
---|
473 | |
---|
474 | creation-pthread$(EXEEXT): |
---|
475 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c |
---|
476 | |
---|
477 | ## ========================================================================================================= |
---|
478 | |
---|
479 | bcompile$(EXEEXT) : \ |
---|
480 | compile-array.make \ |
---|
481 | compile-attributes.make \ |
---|
482 | compile-empty.make \ |
---|
483 | compile-expression.make \ |
---|
484 | compile-io.make \ |
---|
485 | compile-monitor.make \ |
---|
486 | compile-operators.make \ |
---|
487 | compile-typeof.make |
---|
488 | |
---|
489 | testdir = $(top_srcdir)/tests |
---|
490 | |
---|
491 | compile-array$(EXEEXT): |
---|
492 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/array.cfa |
---|
493 | |
---|
494 | compile-attributes$(EXEEXT): |
---|
495 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/attributes.cfa |
---|
496 | |
---|
497 | compile-empty$(EXEEXT): |
---|
498 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(srcdir)/compile/empty.cfa |
---|
499 | |
---|
500 | compile-expression$(EXEEXT): |
---|
501 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/expression.cfa |
---|
502 | |
---|
503 | compile-io$(EXEEXT): |
---|
504 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/io1.cfa |
---|
505 | |
---|
506 | compile-monitor$(EXEEXT): |
---|
507 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/monitor.cfa |
---|
508 | |
---|
509 | compile-operators$(EXEEXT): |
---|
510 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/operators.cfa |
---|
511 | |
---|
512 | compile-thread$(EXEEXT): |
---|
513 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/thread.cfa |
---|
514 | |
---|
515 | compile-typeof$(EXEEXT): |
---|
516 | $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/typeof.cfa |
---|
517 | |
---|
518 | ## ========================================================================================================= |
---|
519 | |
---|
520 | size$(EXEEXT) : size-cfa.runquiet |
---|
521 | |
---|
522 | size-cfa$(EXEEXT): |
---|
523 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/size/size.cfa |
---|