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 2873b737 was
29137d3,
checked in by Thierry Delisle <tdelisle@…>, 8 years ago
|
Added benchmakr for test entering and leaving
|
-
Property mode set to
100644
|
File size:
1.9 KB
|
Rev | Line | |
---|
[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 |
---|
| 18 | CFLAGS = |
---|
| 19 | AM_CFLAGS = -g -Wall -Wno-unused-function -O2 |
---|
[df47e2f] | 20 | CC = @CFA_BINDIR@/@CFA_NAME@ |
---|
[ac93b228] | 21 | |
---|
| 22 | noinst_PROGRAMS = bench ctxswitch-coroutine ctxswitch-thread |
---|
| 23 | |
---|
| 24 | bench : |
---|
| 25 | @for ccflags in "-debug" "-nodebug"; do \ |
---|
[6db3e73] | 26 | echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\ |
---|
[ac93b228] | 27 | ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ |
---|
| 28 | ./a.out ; \ |
---|
| 29 | done ; \ |
---|
| 30 | rm -f ./a.out ; |
---|
| 31 | |
---|
| 32 | ctxswitch-coroutine: |
---|
[6db3e73] | 33 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 CorCtxSwitch.c |
---|
[ac93b228] | 34 | @for number in 1 2 3 4 5 6 7 8 9 10; do \ |
---|
| 35 | ./a.out ; \ |
---|
| 36 | done |
---|
| 37 | @rm -f ./a.out |
---|
| 38 | |
---|
| 39 | ctxswitch-thread: |
---|
[6db3e73] | 40 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 ThrdCtxSwitch.c |
---|
[ac93b228] | 41 | @for number in 1 2 3 4 5 6 7 8 9 10; do \ |
---|
| 42 | ./a.out ; \ |
---|
| 43 | done |
---|
| 44 | @rm -f ./a.out |
---|
| 45 | |
---|
[42356f4] | 46 | sched-int: |
---|
| 47 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 SchedInt.c |
---|
| 48 | @for number in 1 2 3 4 5 6 7 8 9 10; do \ |
---|
| 49 | ./a.out ; \ |
---|
| 50 | done |
---|
| 51 | @rm -f ./a.out |
---|
| 52 | |
---|
[29137d3] | 53 | monitor: |
---|
| 54 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=10000000 Monitor.c |
---|
| 55 | @for number in 1 2 3 4 5 6 7 8 9 10; do \ |
---|
| 56 | ./a.out ; \ |
---|
| 57 | done |
---|
| 58 | @rm -f ./a.out |
---|
| 59 | |
---|
[cf97ccb] | 60 | csv-data: |
---|
[6db3e73] | 61 | @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=10000000 csv-data.c |
---|
[cf97ccb] | 62 | @./a.out |
---|
| 63 | @rm -f ./a.out |
---|
Note: See
TracBrowser
for help on using the repository browser.