source: src/benchmark/Makefile.am @ b7170a64

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 b7170a64 was b7170a64, checked in by Thierry Delisle <tdelisle@…>, 7 years ago

Updated the creation and ctxswitch benchmark to all be consistent and flexible

  • Property mode set to 100644
File size: 3.9 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        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/cfa_cor.c
53
54ctxswitch-cfa_thread$(EXEEXT):
55        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/cfa_thrd.c
56
57ctxswitch-upp_coroutine$(EXEEXT):
58        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/upp_cor.cc
59
60ctxswitch-upp_thread$(EXEEXT):
61        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/upp_thrd.cc
62
63ctxswitch-pthread$(EXEEXT):
64        ${AM_V_CC}@BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=50000000 ctxswitch/pthreads.c
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        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=500000000 creation/cfa_cor.c
76
77creation-cfa_thread$(EXEEXT):
78        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=10000000 creation/cfa_thrd.c
79
80creation-upp_coroutine$(EXEEXT):
81        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 creation/upp_cor.cc
82
83creation-upp_thread$(EXEEXT):
84        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 creation/upp_thrd.cc
85
86creation-pthread$(EXEEXT):
87        ${AM_V_CC}@BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=250000 creation/pthreads.c
88
89## =========================================================================================================
90sched-int$(EXEEXT):
91        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
92
93monitor$(EXEEXT):
94        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c
95
96%.run : %$(EXEEXT) ${REPEAT}
97        @rm -f .result.log
98        @echo "------------------------------------------------------"
99        @echo $<
100        @${REPEAT} ${repeats} ./a.out | tee -a .result.log
101        @${STATS} .result.log
102        @echo "------------------------------------------------------"
103        @rm -f a.out .result.log
104
105${REPEAT} :
106        @+make -C ${TOOLSDIR} repeat
Note: See TracBrowser for help on using the repository browser.