source: src/benchmark/Makefile.am @ f54a0ab

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

Added benchmarks for mutex routines

  • Property mode set to 100644
File size: 4.8 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 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
53
54ctxswitch-cfa_thread$(EXEEXT):
55        ${CC}        ctxswitch/cfa_thrd.c  -DBENCH_N=50000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
56
57ctxswitch-upp_coroutine$(EXEEXT):
58        u++          ctxswitch/upp_cor.cc  -DBENCH_N=50000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
59
60ctxswitch-upp_thread$(EXEEXT):
61        u++          ctxswitch/upp_thrd.cc -DBENCH_N=50000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
62
63ctxswitch-pthread$(EXEEXT):
64        @BACKEND_CC@ ctxswitch/pthreads.c  -DBENCH_N=50000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread
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=500000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
76
77creation-cfa_thread$(EXEEXT):
78        ${CC}        creation/cfa_thrd.c  -DBENCH_N=10000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
79
80creation-upp_coroutine$(EXEEXT):
81        u++          creation/upp_cor.cc  -DBENCH_N=50000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
82
83creation-upp_thread$(EXEEXT):
84        u++          creation/upp_thrd.cc -DBENCH_N=50000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
85
86creation-pthread$(EXEEXT):
87        @BACKEND_CC@ creation/pthreads.c  -DBENCH_N=250000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread
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 ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt
100
101mutex-pthread_lock$(EXEEXT):
102        @BACKEND_CC@ mutex/pthreads.c -DBENCH_N=50000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread
103
104mutex-upp$(EXEEXT):
105        u++          mutex/upp.cc     -DBENCH_N=50000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
106
107mutex-cfa1$(EXEEXT):
108        ${CC}        mutex/cfa1.c     -DBENCH_N=5000000   ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
109
110mutex-cfa2$(EXEEXT):
111        ${CC}        mutex/cfa2.c     -DBENCH_N=5000000   ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
112
113mutex-cfa4$(EXEEXT):
114        ${CC}        mutex/cfa4.c     -DBENCH_N=5000000   ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
115
116## =========================================================================================================
117sched-int$(EXEEXT):
118        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
119
120monitor$(EXEEXT):
121        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c
122
123%.run : %$(EXEEXT) ${REPEAT}
124        @rm -f .result.log
125        @echo "------------------------------------------------------"
126        @echo $<
127        @${REPEAT} ${repeats} ./a.out | tee -a .result.log
128        @${STATS} .result.log
129        @echo "------------------------------------------------------"
130        @rm -f a.out .result.log
131
132${REPEAT} :
133        @+make -C ${TOOLSDIR} repeat
Note: See TracBrowser for help on using the repository browser.