[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 |
---|
[dfda49f] | 13 | ## Last Modified On : Tue Mar 10 11:41:18 2020 |
---|
| 14 | ## Update Count : 258 |
---|
[ac93b228] | 15 | ############################################################################### |
---|
| 16 | |
---|
[0c1b566] | 17 | AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names |
---|
[107b01a] | 18 | ACLOCAL_AMFLAGS = -I automake |
---|
[0c1b566] | 19 | |
---|
[ac93b228] | 20 | # applies to both programs |
---|
[bcadb26] | 21 | include $(top_srcdir)/tools/build/cfa.make |
---|
[7a7ab42] | 22 | |
---|
[dc33b5b] | 23 | AM_CFLAGS = -O2 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror |
---|
[dd9e1ca] | 24 | AM_CFAFLAGS = -quiet -nodebug |
---|
| 25 | AM_UPPFLAGS = -quiet -nodebug -multi -std=c++14 |
---|
[7a7ab42] | 26 | |
---|
[528ccc8] | 27 | BENCH_V_CC = $(__bench_v_CC_$(__quiet)) |
---|
| 28 | BENCH_V_CFA = $(__bench_v_CFA_$(__quiet)) |
---|
| 29 | BENCH_V_CXX = $(__bench_v_CXX_$(__quiet)) |
---|
[90cb6f7] | 30 | BENCH_V_UPP = $(__bench_v_UPP_$(__quiet)) |
---|
[528ccc8] | 31 | BENCH_V_GOC = $(__bench_v_GOC_$(__quiet)) |
---|
[1d72a11] | 32 | BENCH_V_PY = $(__bench_v_PY_$(__quiet)) |
---|
[90cb6f7] | 33 | BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet)) |
---|
[6e540ea] | 34 | BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet)) |
---|
[528ccc8] | 35 | BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet)) |
---|
| 36 | |
---|
| 37 | __quiet = verbose |
---|
| 38 | __bench_v_CC_quiet = @ |
---|
| 39 | __bench_v_CFA_quiet = @ |
---|
| 40 | __bench_v_CXX_quiet = @ |
---|
[90cb6f7] | 41 | __bench_v_UPP_quiet = @ |
---|
[528ccc8] | 42 | __bench_v_GOC_quiet = @ |
---|
[90cb6f7] | 43 | __bench_v_RUSTC_quiet = @ |
---|
[528ccc8] | 44 | __bench_v_JAVAC_quiet = @ |
---|
| 45 | __bench_v_CC_verbose = $(AM_V_CC) |
---|
| 46 | __bench_v_CFA_verbose = $(AM_V_CFA) |
---|
| 47 | __bench_v_CXX_verbose = $(AM_V_CXX) |
---|
[90cb6f7] | 48 | __bench_v_UPP_verbose = $(AM_V_UPP) |
---|
[528ccc8] | 49 | __bench_v_GOC_verbose = $(AM_V_GOC) |
---|
[1d72a11] | 50 | __bench_v_PY_verbose = $(AM_V_PY) |
---|
| 51 | __bench_v_RUSTC_verbose = $(AM_V_RUST) |
---|
[6e540ea] | 52 | __bench_v_NODEJS_verbose = $(AM_V_NODEJS) |
---|
[528ccc8] | 53 | __bench_v_JAVAC_verbose = $(AM_V_JAVAC) |
---|
| 54 | |
---|
| 55 | |
---|
[5e49e47] | 56 | TOOLSDIR = ${abs_top_builddir}/tools/ |
---|
| 57 | REPEAT = ${abs_top_builddir}/tools/repeat |
---|
| 58 | STATS = ${abs_top_srcdir}/tools/stat.py |
---|
[2385236] | 59 | # NEED AT LEAST 4 DATA VALUES FOR BENCHMARKS BECAUSE THE MAX AND MIN VALUES ARE REMOVED |
---|
[c12869e] | 60 | repeats = 13 # 31 for benchmarks |
---|
[c6f1f3e] | 61 | arch = x64 |
---|
[05f4b85] | 62 | skipcompile = no |
---|
[a5b7905] | 63 | TIME_FORMAT = "%E" |
---|
[2086ab2] | 64 | PRINT_FORMAT = %20s: #Comments needed for spacing |
---|
[034165a] | 65 | |
---|
[d0c91a6] | 66 | # Dummy hack tricks |
---|
[5e49e47] | 67 | EXTRA_PROGRAMS = dummy # build but do not install |
---|
[c2bc6d5] | 68 | nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp |
---|
[5e49e47] | 69 | |
---|
| 70 | dummyC.c: |
---|
[580c11b] | 71 | echo "int main() { return 0; }" > ${@} |
---|
[5e49e47] | 72 | |
---|
| 73 | dummyCXX.cpp: |
---|
[580c11b] | 74 | echo "int main() { return 0; }" > ${@} |
---|
[5e49e47] | 75 | |
---|
[4aac9ff] | 76 | .SILENT: # do not print recipe |
---|
[034165a] | 77 | .NOTPARALLEL: |
---|
[4aac9ff] | 78 | .PHONY: jenkins cleancsv |
---|
[ac93b228] | 79 | |
---|
[43fa66e] | 80 | ## ========================================================================================================= |
---|
[90cb6f7] | 81 | |
---|
[c2bc6d5] | 82 | # all is used by make dist so ignore it |
---|
| 83 | all: |
---|
| 84 | |
---|
| 85 | all-bench : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) |
---|
[4cedd9f] | 86 | |
---|
[4eb07bc] | 87 | basic_loop_DURATION = 15000000000 |
---|
| 88 | basic_function_DURATION = 10000000000 |
---|
[2316525] | 89 | basic_tls_fetch_add_DURATION = 10000000000 |
---|
[4eb07bc] | 90 | basic_DURATION = 250000000 |
---|
| 91 | |
---|
[c93fd72] | 92 | ctxswitch_pthread_DURATION = 25000000 |
---|
[9e1fa35] | 93 | ctxswitch_rust_thread_DURATION = $(ctxswitch_pthread_DURATION) |
---|
[4eb07bc] | 94 | ctxswitch_cfa_generator_DURATION = 5000000000 |
---|
[8633485b] | 95 | ctxswitch_nodejs_await_DURATION = 5000000 |
---|
[4eb07bc] | 96 | ctxswitch_DURATION = 100000000 |
---|
| 97 | |
---|
[26fd986] | 98 | #mutex_java_DURATION = 10000000 |
---|
[4eb07bc] | 99 | mutex_DURATION = 50000000 |
---|
| 100 | |
---|
[26fd986] | 101 | schedint_pthread_DURATION = 1000000 |
---|
| 102 | schedint_java_DURATION = $(schedint_pthread_DURATION) |
---|
| 103 | schedint_rust_DURATION = $(schedint_pthread_DURATION) |
---|
| 104 | schedint_DURATION = 10000000 |
---|
[4eb07bc] | 105 | |
---|
[26fd986] | 106 | schedext_DURATION = 10000000 |
---|
[4eb07bc] | 107 | |
---|
| 108 | creation_pthread_DURATION = 250000 |
---|
[26fd986] | 109 | creation_rust_thread_DURATION = ${creation_pthread_DURATION} |
---|
| 110 | creation_java_thread_DURATION = ${creation_pthread_DURATION} |
---|
[9e1fa35] | 111 | creation_cfa_coroutine_DURATION = 100000000 |
---|
| 112 | creation_cfa_coroutine_eager_DURATION = 10000000 |
---|
[dfda49f] | 113 | creation_cfa_generator_DURATION = 1000000000 |
---|
[9e1fa35] | 114 | creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} |
---|
| 115 | creation_cfa_thread_DURATION = 10000000 |
---|
| 116 | creation_upp_thread_DURATION = ${creation_cfa_thread_DURATION} |
---|
| 117 | creation_DURATION = 10000000 |
---|
[4eb07bc] | 118 | |
---|
[a5b7905] | 119 | %.run : %$(EXEEXT) ${REPEAT} |
---|
[580c11b] | 120 | rm -f .result.log |
---|
| 121 | echo "------------------------------------------------------" |
---|
| 122 | echo $< |
---|
[c12869e] | 123 | ${REPEAT} ${repeats} -- ./a.out\ |
---|
[c93fd72] | 124 | $(if ${$(subst -,_,$(basename $@))_DURATION},\ |
---|
| 125 | ${$(subst -,_,$(basename $@))_DURATION},\ |
---|
| 126 | ${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log |
---|
[580c11b] | 127 | ${STATS} .result.log |
---|
| 128 | echo "------------------------------------------------------" |
---|
| 129 | rm -f a.out .result.log *.class |
---|
[ac93b228] | 130 | |
---|
[c12869e] | 131 | # ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out |
---|
| 132 | |
---|
[a5b7905] | 133 | %.runquiet : |
---|
[580c11b] | 134 | +make $(basename $@) CFLAGS="-w" __quiet=quiet |
---|
| 135 | taskset -c 1 ./a.out |
---|
| 136 | rm -f a.out |
---|
[a5b7905] | 137 | |
---|
| 138 | %.make : |
---|
[580c11b] | 139 | printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@)) |
---|
| 140 | +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1 |
---|
[a5b7905] | 141 | |
---|
| 142 | ${REPEAT} : |
---|
[580c11b] | 143 | +make -C ${abs_top_builddir}/tools repeat |
---|
[a5b7905] | 144 | |
---|
| 145 | ## ========================================================================================================= |
---|
| 146 | |
---|
[f15fe0a] | 147 | FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@ |
---|
| 148 | |
---|
[4aac9ff] | 149 | cleancsv: |
---|
[13d2dac] | 150 | rm -f compile.csv basic.csv ctxswitch.csv mutex.csv scheduling.csv |
---|
[4aac9ff] | 151 | |
---|
| 152 | jenkins$(EXEEXT): cleancsv |
---|
[05f4b85] | 153 | @DOifskipcompile@ |
---|
[580c11b] | 154 | +make compile.csv |
---|
| 155 | -+make compile.diff.csv |
---|
[05f4b85] | 156 | @DOendif@ |
---|
[580c11b] | 157 | +make ctxswitch.csv |
---|
| 158 | -+make ctxswitch.diff.csv |
---|
| 159 | +make mutex.csv |
---|
| 160 | -+make mutex.diff.csv |
---|
[13d2dac] | 161 | +make scheduling.csv |
---|
| 162 | -+make scheduling.diff.csv |
---|
[d9f2874] | 163 | @DOifskipcompile@ |
---|
[c6f1f3e] | 164 | cat compile.csv |
---|
| 165 | -cat compile.diff.csv |
---|
[d9f2874] | 166 | @DOendif@ |
---|
[c6f1f3e] | 167 | cat ctxswitch.csv |
---|
| 168 | -cat ctxswitch.diff.csv |
---|
| 169 | cat mutex.csv |
---|
| 170 | -cat mutex.diff.csv |
---|
[13d2dac] | 171 | cat scheduling.csv |
---|
| 172 | -cat scheduling.diff.csv |
---|
[f15fe0a] | 173 | |
---|
| 174 | compile.csv: |
---|
[4aac9ff] | 175 | echo "building $@" |
---|
[580c11b] | 176 | echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ |
---|
| 177 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ |
---|
| 178 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@ |
---|
| 179 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@ |
---|
| 180 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@ |
---|
| 181 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@ |
---|
| 182 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@ |
---|
| 183 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@ |
---|
| 184 | +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@ |
---|
| 185 | $(srcdir)/fixcsv.sh $@ |
---|
[f15fe0a] | 186 | |
---|
| 187 | ctxswitch.csv: |
---|
[4aac9ff] | 188 | echo "building $@" |
---|
[580c11b] | 189 | echo "generator,coroutine,thread" > $@ |
---|
| 190 | +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 191 | +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 192 | +make ctxswitch-cfa_thread.runquiet >> $@ |
---|
| 193 | $(srcdir)/fixcsv.sh $@ |
---|
[f15fe0a] | 194 | |
---|
| 195 | mutex.csv: |
---|
[4aac9ff] | 196 | echo "building $@" |
---|
[580c11b] | 197 | echo "1-monitor,2-monitor" > $@ |
---|
| 198 | +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 199 | +make mutex-cfa2.runquiet >> $@ |
---|
| 200 | $(srcdir)/fixcsv.sh $@ |
---|
[f15fe0a] | 201 | |
---|
[13d2dac] | 202 | scheduling.csv: |
---|
[4aac9ff] | 203 | echo "building $@" |
---|
[26fd986] | 204 | echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@ |
---|
| 205 | +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 206 | +make schedint-cfa2.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 207 | +make schedext-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 208 | +make schedext-cfa2.runquiet >> $@ |
---|
[580c11b] | 209 | $(srcdir)/fixcsv.sh $@ |
---|
[ac93b228] | 210 | |
---|
[c6f1f3e] | 211 | %.diff.csv: %.csv |
---|
[580c11b] | 212 | test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false) |
---|
| 213 | $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ |
---|
[c6f1f3e] | 214 | |
---|
[d885a58] | 215 | ## ========================================================================================================= |
---|
| 216 | |
---|
[4eb07bc] | 217 | BASIC_DEPEND = \ |
---|
| 218 | basic-loop.run \ |
---|
[90cb6f7] | 219 | basic-function.run \ |
---|
| 220 | basic-fetch_add.run \ |
---|
| 221 | basic-ttst_lock.run \ |
---|
| 222 | basic-tls-fetch_add.run |
---|
| 223 | |
---|
| 224 | basic-loop$(EXEEXT): |
---|
| 225 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c |
---|
| 226 | |
---|
| 227 | basic-function$(EXEEXT): |
---|
| 228 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c |
---|
| 229 | |
---|
| 230 | basic-fetch_add$(EXEEXT): |
---|
| 231 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c |
---|
| 232 | |
---|
| 233 | basic-ttst_lock$(EXEEXT): |
---|
| 234 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c |
---|
| 235 | |
---|
| 236 | basic-tls-fetch_add$(EXEEXT): |
---|
| 237 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c |
---|
[d885a58] | 238 | |
---|
[90cb6f7] | 239 | basic$(EXEEXT): $(BASIC_DEPEND) |
---|
[d885a58] | 240 | |
---|
[034165a] | 241 | ## ========================================================================================================= |
---|
[90cb6f7] | 242 | |
---|
| 243 | CTXSWITCH_DEPEND = \ |
---|
[dc33b5b] | 244 | ctxswitch-cfa_generator.run \ |
---|
[b7170a64] | 245 | ctxswitch-cfa_coroutine.run \ |
---|
| 246 | ctxswitch-cfa_thread.run \ |
---|
[6810fcb] | 247 | ctxswitch-cfa_thread2.run \ |
---|
[b7170a64] | 248 | ctxswitch-upp_coroutine.run \ |
---|
[50abab9] | 249 | ctxswitch-upp_thread.run \ |
---|
[c12869e] | 250 | ctxswitch-python_coroutine.run \ |
---|
| 251 | ctxswitch-nodejs_coroutine.run \ |
---|
[7ac3151] | 252 | ctxswitch-nodejs_await.run \ |
---|
[c12869e] | 253 | ctxswitch-goroutine_thread.run \ |
---|
[90cb6f7] | 254 | ctxswitch-rust_thread.run \ |
---|
[580c11b] | 255 | ctxswitch-nodejs_coroutine.run \ |
---|
[c12869e] | 256 | ctxswitch-java_thread.run \ |
---|
| 257 | ctxswitch-pthread.run |
---|
[dc33b5b] | 258 | |
---|
[41cca44] | 259 | if WITH_LIBFIBRE |
---|
[90cb6f7] | 260 | CTXSWITCH_DEPEND += \ |
---|
| 261 | ctxswitch-kos_fibre.run \ |
---|
[41cca44] | 262 | ctxswitch-kos_fibre2.run |
---|
| 263 | |
---|
| 264 | ctxswitch-kos_fibre$(EXEEXT): |
---|
[528ccc8] | 265 | $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre |
---|
[41cca44] | 266 | |
---|
| 267 | ctxswitch-kos_fibre2$(EXEEXT): |
---|
[528ccc8] | 268 | $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre |
---|
[41cca44] | 269 | endif |
---|
| 270 | |
---|
| 271 | ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) |
---|
| 272 | |
---|
[dc33b5b] | 273 | ctxswitch-cfa_generator$(EXEEXT): |
---|
[90cb6f7] | 274 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa |
---|
[dc33b5b] | 275 | |
---|
[034165a] | 276 | ctxswitch-cfa_coroutine$(EXEEXT): |
---|
[90cb6f7] | 277 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa |
---|
[034165a] | 278 | |
---|
| 279 | ctxswitch-cfa_thread$(EXEEXT): |
---|
[90cb6f7] | 280 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa |
---|
[6810fcb] | 281 | |
---|
| 282 | ctxswitch-cfa_thread2$(EXEEXT): |
---|
[90cb6f7] | 283 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa |
---|
[034165a] | 284 | |
---|
| 285 | ctxswitch-upp_coroutine$(EXEEXT): |
---|
[90cb6f7] | 286 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc |
---|
[034165a] | 287 | |
---|
| 288 | ctxswitch-upp_thread$(EXEEXT): |
---|
[90cb6f7] | 289 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc |
---|
[ac93b228] | 290 | |
---|
[c12869e] | 291 | ctxswitch-python_coroutine$(EXEEXT): |
---|
[1d72a11] | 292 | $(BENCH_V_PY)echo "#!/bin/sh" > a.out |
---|
[c12869e] | 293 | echo "python3.7 $(srcdir)/ctxswitch/python_cor.py" >> a.out |
---|
| 294 | chmod a+x a.out |
---|
[90cb6f7] | 295 | |
---|
[580c11b] | 296 | ctxswitch-nodejs_coroutine$(EXEEXT): |
---|
[1d72a11] | 297 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
[2316525] | 298 | echo "nodejs $(srcdir)/ctxswitch/node_cor.js" >> a.out |
---|
[4eb07bc] | 299 | chmod a+x a.out |
---|
[580c11b] | 300 | |
---|
[7ac3151] | 301 | ctxswitch-nodejs_await$(EXEEXT): |
---|
[1d72a11] | 302 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
[7ac3151] | 303 | echo "nodejs $(srcdir)/ctxswitch/node_await.js" >> a.out |
---|
| 304 | chmod a+x a.out |
---|
| 305 | |
---|
[c12869e] | 306 | ctxswitch-goroutine_thread$(EXEEXT): |
---|
| 307 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go |
---|
| 308 | |
---|
| 309 | ctxswitch-rust_thread$(EXEEXT): |
---|
| 310 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs |
---|
| 311 | |
---|
[50abab9] | 312 | ctxswitch-java_thread$(EXEEXT): |
---|
[528ccc8] | 313 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java |
---|
[580c11b] | 314 | echo "#!/bin/sh" > a.out |
---|
| 315 | echo "java JavaThread" >> a.out |
---|
| 316 | chmod a+x a.out |
---|
| 317 | |
---|
[c12869e] | 318 | ctxswitch-pthread$(EXEEXT): |
---|
| 319 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c |
---|
| 320 | |
---|
[f54a0ab] | 321 | ## ========================================================================================================= |
---|
[90cb6f7] | 322 | |
---|
| 323 | mutex$(EXEEXT) : \ |
---|
[f54a0ab] | 324 | mutex-cfa1.run \ |
---|
| 325 | mutex-cfa2.run \ |
---|
[6aa537a4] | 326 | mutex-cfa4.run \ |
---|
[9e1fa35] | 327 | mutex-upp.run \ |
---|
[90cb6f7] | 328 | mutex-go.run \ |
---|
| 329 | mutex-rust.run \ |
---|
[c12869e] | 330 | mutex-java.run \ |
---|
| 331 | mutex-pthread.run |
---|
[f54a0ab] | 332 | |
---|
[90cb6f7] | 333 | mutex-pthread$(EXEEXT): |
---|
[4eb07bc] | 334 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c |
---|
[f54a0ab] | 335 | |
---|
| 336 | mutex-cfa1$(EXEEXT): |
---|
[4eb07bc] | 337 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa |
---|
[f54a0ab] | 338 | |
---|
| 339 | mutex-cfa2$(EXEEXT): |
---|
[4eb07bc] | 340 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa |
---|
[f54a0ab] | 341 | |
---|
| 342 | mutex-cfa4$(EXEEXT): |
---|
[4eb07bc] | 343 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa |
---|
[90cb6f7] | 344 | |
---|
[9e1fa35] | 345 | mutex-upp$(EXEEXT): |
---|
| 346 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc |
---|
| 347 | |
---|
[90cb6f7] | 348 | mutex-go$(EXEEXT): |
---|
| 349 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go |
---|
| 350 | |
---|
| 351 | mutex-rust$(EXEEXT): |
---|
| 352 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs |
---|
[034165a] | 353 | |
---|
[90cb6f7] | 354 | mutex-java$(EXEEXT): |
---|
[528ccc8] | 355 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java |
---|
[580c11b] | 356 | echo "#!/bin/sh" > a.out |
---|
| 357 | echo "java JavaThread" >> a.out |
---|
| 358 | chmod a+x a.out |
---|
[6aa537a4] | 359 | |
---|
[9f0b975] | 360 | ## ========================================================================================================= |
---|
[90cb6f7] | 361 | |
---|
[26fd986] | 362 | schedint$(EXEEXT) : \ |
---|
| 363 | schedint-cfa1.run \ |
---|
| 364 | schedint-cfa2.run \ |
---|
| 365 | schedint-cfa4.run \ |
---|
| 366 | schedint-upp.run \ |
---|
| 367 | schedint-rust.run \ |
---|
| 368 | schedint-java.run \ |
---|
| 369 | schedint-pthread.run |
---|
[9f0b975] | 370 | |
---|
[26fd986] | 371 | schedint-cfa1$(EXEEXT): |
---|
[4eb07bc] | 372 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa |
---|
[9f0b975] | 373 | |
---|
[26fd986] | 374 | schedint-cfa2$(EXEEXT): |
---|
[4eb07bc] | 375 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa |
---|
[9f0b975] | 376 | |
---|
[26fd986] | 377 | schedint-cfa4$(EXEEXT): |
---|
[4eb07bc] | 378 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa |
---|
[90cb6f7] | 379 | |
---|
[26fd986] | 380 | schedint-upp$(EXEEXT): |
---|
| 381 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc |
---|
| 382 | |
---|
| 383 | schedint-rust$(EXEEXT): |
---|
[90cb6f7] | 384 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs |
---|
[9f0b975] | 385 | |
---|
[26fd986] | 386 | schedint-java$(EXEEXT): |
---|
[528ccc8] | 387 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java |
---|
[580c11b] | 388 | echo "#!/bin/sh" > a.out |
---|
| 389 | echo "java JavaThread" >> a.out |
---|
| 390 | chmod a+x a.out |
---|
[6aa537a4] | 391 | |
---|
[26fd986] | 392 | schedint-pthread$(EXEEXT): |
---|
| 393 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c |
---|
[90cb6f7] | 394 | |
---|
[26fd986] | 395 | ## ========================================================================================================= |
---|
[9f0b975] | 396 | |
---|
[26fd986] | 397 | schedext$(EXEEXT) : \ |
---|
| 398 | schedext-cfa1.run \ |
---|
| 399 | schedext-cfa2.run \ |
---|
| 400 | schedext-cfa4.run \ |
---|
| 401 | schedext-upp.run \ |
---|
| 402 | schedext-goroutine.run |
---|
[9f0b975] | 403 | |
---|
[26fd986] | 404 | schedext-cfa1$(EXEEXT): |
---|
[4eb07bc] | 405 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa |
---|
[9f0b975] | 406 | |
---|
[26fd986] | 407 | schedext-cfa2$(EXEEXT): |
---|
[4eb07bc] | 408 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa |
---|
[9f0b975] | 409 | |
---|
[26fd986] | 410 | schedext-cfa4$(EXEEXT): |
---|
[4eb07bc] | 411 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa |
---|
[9f0b975] | 412 | |
---|
[26fd986] | 413 | schedext-upp$(EXEEXT): |
---|
| 414 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc |
---|
| 415 | |
---|
| 416 | schedext-goroutine$(EXEEXT): |
---|
| 417 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/schedext/goroutine.go |
---|
| 418 | |
---|
| 419 | |
---|
[4cedd9f] | 420 | ## ========================================================================================================= |
---|
[90cb6f7] | 421 | |
---|
| 422 | creation$(EXEEXT) : \ |
---|
[26fd986] | 423 | creation-cfa_generator.run \ |
---|
[3351cc0] | 424 | creation-cfa_coroutine.run \ |
---|
| 425 | creation-cfa_coroutine_eager.run \ |
---|
| 426 | creation-cfa_thread.run \ |
---|
| 427 | creation-upp_coroutine.run \ |
---|
[50abab9] | 428 | creation-upp_thread.run \ |
---|
[c12869e] | 429 | creation-python_coroutine.run \ |
---|
[9e1fa35] | 430 | creation-nodejs_coroutine.run \ |
---|
[c12869e] | 431 | creation-goroutine_thread.run \ |
---|
| 432 | creation-rust_thread.run \ |
---|
| 433 | creation-java_thread.run \ |
---|
| 434 | creation-pthread.run |
---|
[4cedd9f] | 435 | |
---|
[26fd986] | 436 | creation-cfa_generator$(EXEEXT): |
---|
| 437 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_gen.cfa |
---|
| 438 | |
---|
[4cedd9f] | 439 | creation-cfa_coroutine$(EXEEXT): |
---|
[4eb07bc] | 440 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa |
---|
[4cedd9f] | 441 | |
---|
[3351cc0] | 442 | creation-cfa_coroutine_eager$(EXEEXT): |
---|
[4eb07bc] | 443 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa -DEAGER |
---|
[3351cc0] | 444 | |
---|
[4cedd9f] | 445 | creation-cfa_thread$(EXEEXT): |
---|
[4eb07bc] | 446 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa |
---|
[4cedd9f] | 447 | |
---|
| 448 | creation-upp_coroutine$(EXEEXT): |
---|
[4eb07bc] | 449 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc |
---|
[4cedd9f] | 450 | |
---|
| 451 | creation-upp_thread$(EXEEXT): |
---|
[4eb07bc] | 452 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc |
---|
[4cedd9f] | 453 | |
---|
[c12869e] | 454 | creation-python_coroutine$(EXEEXT): |
---|
[1d72a11] | 455 | $(BENCH_V_PY)echo "#!/bin/sh" > a.out |
---|
[c12869e] | 456 | echo "python3.7 $(srcdir)/creation/python_cor.py" >> a.out |
---|
| 457 | chmod a+x a.out |
---|
[90cb6f7] | 458 | |
---|
[9e1fa35] | 459 | creation-nodejs_coroutine$(EXEEXT): |
---|
[1d72a11] | 460 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
[2316525] | 461 | echo "nodejs $(srcdir)/creation/node_cor.js" >> a.out |
---|
[9e1fa35] | 462 | chmod a+x a.out |
---|
| 463 | |
---|
[c12869e] | 464 | creation-goroutine_thread$(EXEEXT): |
---|
| 465 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go |
---|
| 466 | |
---|
| 467 | creation-rust_thread$(EXEEXT): |
---|
| 468 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs |
---|
| 469 | |
---|
[26fd986] | 470 | creation-java_thread$(EXEEXT): |
---|
[528ccc8] | 471 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java |
---|
[580c11b] | 472 | echo "#!/bin/sh" > a.out |
---|
| 473 | echo "java JavaThread" >> a.out |
---|
| 474 | chmod a+x a.out |
---|
[50abab9] | 475 | |
---|
[c12869e] | 476 | creation-pthread$(EXEEXT): |
---|
| 477 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c |
---|
| 478 | |
---|
[034165a] | 479 | ## ========================================================================================================= |
---|
| 480 | |
---|
[c2bc6d5] | 481 | bcompile$(EXEEXT) : \ |
---|
[a5b7905] | 482 | compile-array.make \ |
---|
| 483 | compile-attributes.make \ |
---|
| 484 | compile-empty.make \ |
---|
| 485 | compile-expression.make \ |
---|
| 486 | compile-io.make \ |
---|
| 487 | compile-monitor.make \ |
---|
| 488 | compile-operators.make \ |
---|
| 489 | compile-typeof.make |
---|
[3edc2df] | 490 | |
---|
[524ed86] | 491 | testdir = $(top_srcdir)/tests |
---|
[d3db83c] | 492 | |
---|
[3edc2df] | 493 | compile-array$(EXEEXT): |
---|
[580c11b] | 494 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa |
---|
[3edc2df] | 495 | |
---|
| 496 | compile-attributes$(EXEEXT): |
---|
[580c11b] | 497 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa |
---|
[3edc2df] | 498 | |
---|
| 499 | compile-empty$(EXEEXT): |
---|
[580c11b] | 500 | $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa |
---|
[3edc2df] | 501 | |
---|
| 502 | compile-expression$(EXEEXT): |
---|
[580c11b] | 503 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa |
---|
[3edc2df] | 504 | |
---|
| 505 | compile-io$(EXEEXT): |
---|
[580c11b] | 506 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa |
---|
[3edc2df] | 507 | |
---|
| 508 | compile-monitor$(EXEEXT): |
---|
[580c11b] | 509 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa |
---|
[3edc2df] | 510 | |
---|
| 511 | compile-operators$(EXEEXT): |
---|
[580c11b] | 512 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa |
---|
[3edc2df] | 513 | |
---|
| 514 | compile-thread$(EXEEXT): |
---|
[580c11b] | 515 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa |
---|
[3edc2df] | 516 | |
---|
| 517 | compile-typeof$(EXEEXT): |
---|
[580c11b] | 518 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa |
---|
[e15683e] | 519 | |
---|
| 520 | ## ========================================================================================================= |
---|
| 521 | |
---|
| 522 | size$(EXEEXT) : size-cfa.runquiet |
---|
| 523 | |
---|
| 524 | size-cfa$(EXEEXT): |
---|
| 525 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/size/size.cfa |
---|