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@…>, 6 years ago

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

  • Property mode set to 100644
File size: 3.9 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
[034165a]25
26.NOTPARALLEL:
[ac93b228]27
[b7170a64]28noinst_PROGRAMS =
[ac93b228]29
[fab6ded]30bench$(EXEEXT) :
[ac93b228]31        @for ccflags in "-debug" "-nodebug"; do \
[6db3e73]32                echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\
[ac93b228]33                ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\
34                ./a.out ; \
35        done ; \
36        rm -f ./a.out ;
37
[034165a]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
[ac93b228]42
[034165a]43## =========================================================================================================
44ctxswitch$(EXEEXT): \
[b7170a64]45        ctxswitch-pthread.run           \
46        ctxswitch-cfa_coroutine.run     \
47        ctxswitch-cfa_thread.run        \
48        ctxswitch-upp_coroutine.run     \
49        ctxswitch-upp_thread.run
[034165a]50
51ctxswitch-cfa_coroutine$(EXEEXT):
[b7170a64]52        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/cfa_cor.c
[034165a]53
54ctxswitch-cfa_thread$(EXEEXT):
[b7170a64]55        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/cfa_thrd.c
[034165a]56
57ctxswitch-upp_coroutine$(EXEEXT):
[b7170a64]58        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/upp_cor.cc
[034165a]59
60ctxswitch-upp_thread$(EXEEXT):
[b7170a64]61        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/upp_thrd.cc
[ac93b228]62
[d67cdb7]63ctxswitch-pthread$(EXEEXT):
[b7170a64]64        ${AM_V_CC}@BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=50000000 ctxswitch/pthreads.c
[034165a]65
66## =========================================================================================================
67creation$(EXEEXT) :\
68        creation-pthread.run            \
[b7170a64]69        creation-cfa_coroutine.run      \
70        creation-cfa_thread.run         \
71        creation-upp_coroutine.run      \
[034165a]72        creation-upp_thread.run
73
74creation-cfa_coroutine$(EXEEXT):
[b7170a64]75        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=500000000 creation/cfa_cor.c
[034165a]76
77creation-cfa_thread$(EXEEXT):
[b7170a64]78        ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=10000000 creation/cfa_thrd.c
[d67cdb7]79
[034165a]80creation-upp_coroutine$(EXEEXT):
[b7170a64]81        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 creation/upp_cor.cc
[034165a]82
83creation-upp_thread$(EXEEXT):
[b7170a64]84        ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 creation/upp_thrd.cc
[034165a]85
86creation-pthread$(EXEEXT):
[b7170a64]87        ${AM_V_CC}@BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=250000 creation/pthreads.c
[034165a]88
89## =========================================================================================================
[fab6ded]90sched-int$(EXEEXT):
[af08051]91        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
[42356f4]92
[fab6ded]93monitor$(EXEEXT):
[af08051]94        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c
[034165a]95
[b7170a64]96%.run : %$(EXEEXT) ${REPEAT}
[bfd15e8]97        @rm -f .result.log
[b7170a64]98        @echo "------------------------------------------------------"
99        @echo $<
[034165a]100        @${REPEAT} ${repeats} ./a.out | tee -a .result.log
[b7170a64]101        @${STATS} .result.log
102        @echo "------------------------------------------------------"
[bfd15e8]103        @rm -f a.out .result.log
[b7170a64]104
105${REPEAT} :
106        @+make -C ${TOOLSDIR} repeat
Note: See TracBrowser for help on using the repository browser.