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 51b5a02 was
0394c31,
checked in by Thierry Delisle <tdelisle@…>, 7 years ago
|
Added timing target for long running test
|
-
Property mode set to
100644
|
File size:
1.3 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 : Thierry Delisle |
---|
11 | ## Created On : Fri Jun 16 10:57:34 2017 |
---|
12 | ## Last Modified By : |
---|
13 | ## Last Modified On : |
---|
14 | ## Update Count : 0 |
---|
15 | ############################################################################### |
---|
16 | |
---|
17 | repeats=10 |
---|
18 | max_time=600 |
---|
19 | preempt=1_000ul |
---|
20 | |
---|
21 | REPEAT = ${abs_top_srcdir}/tools/repeat |
---|
22 | TIME = /usr/bin/time -f "%E" |
---|
23 | |
---|
24 | BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -debug -O2 -DPREEMPTION_RATE=${preempt} |
---|
25 | CFLAGS = ${BUILD_FLAGS} |
---|
26 | CC = @CFA_BINDIR@/@CFA_NAME@ |
---|
27 | |
---|
28 | TESTS = block create disjoint enter enter3 processor stack wait yield |
---|
29 | |
---|
30 | .INTERMEDIATE: ${TESTS} |
---|
31 | |
---|
32 | all-local: ${TESTS:=.run} |
---|
33 | |
---|
34 | clean-local: |
---|
35 | rm -f ${TESTS} |
---|
36 | |
---|
37 | % : %.c ${CC} |
---|
38 | ${AM_V_GEN}${CC} ${CFLAGS} ${<} -o ${@} |
---|
39 | |
---|
40 | %.run : % ${REPEAT} |
---|
41 | @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<} |
---|
42 | @ rm ${<} |
---|
43 | @ echo -e "${<}: SUCCESS\n" |
---|
44 | |
---|
45 | %.time : % ${REPEAT} |
---|
46 | @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<} |
---|
47 | @ rm ${<} |
---|
48 | @ echo -e "${<}: SUCCESS\n" |
---|
49 | |
---|
50 | ${REPEAT}: |
---|
51 | @+make -C ${abs_top_srcdir}/tools/ |
---|
Note: See
TracBrowser
for help on using the repository browser.