[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 |
---|
[7a7ab42] | 21 | include $(top_srcdir)/src/cfa.make |
---|
| 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 |
---|
| 68 | dummy_SOURCES = dummyC.c dummyCXX.cpp |
---|
| 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 | |
---|
[26fd986] | 82 | all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) |
---|
[4cedd9f] | 83 | |
---|
[4eb07bc] | 84 | basic_loop_DURATION = 15000000000 |
---|
| 85 | basic_function_DURATION = 10000000000 |
---|
[2316525] | 86 | basic_tls_fetch_add_DURATION = 10000000000 |
---|
[4eb07bc] | 87 | basic_DURATION = 250000000 |
---|
| 88 | |
---|
[c93fd72] | 89 | ctxswitch_pthread_DURATION = 25000000 |
---|
[9e1fa35] | 90 | ctxswitch_rust_thread_DURATION = $(ctxswitch_pthread_DURATION) |
---|
[4eb07bc] | 91 | ctxswitch_cfa_generator_DURATION = 5000000000 |
---|
[8633485b] | 92 | ctxswitch_nodejs_await_DURATION = 5000000 |
---|
[4eb07bc] | 93 | ctxswitch_DURATION = 100000000 |
---|
| 94 | |
---|
[26fd986] | 95 | #mutex_java_DURATION = 10000000 |
---|
[4eb07bc] | 96 | mutex_DURATION = 50000000 |
---|
| 97 | |
---|
[26fd986] | 98 | schedint_pthread_DURATION = 1000000 |
---|
| 99 | schedint_java_DURATION = $(schedint_pthread_DURATION) |
---|
| 100 | schedint_rust_DURATION = $(schedint_pthread_DURATION) |
---|
| 101 | schedint_DURATION = 10000000 |
---|
[4eb07bc] | 102 | |
---|
[26fd986] | 103 | schedext_DURATION = 10000000 |
---|
[4eb07bc] | 104 | |
---|
| 105 | creation_pthread_DURATION = 250000 |
---|
[26fd986] | 106 | creation_rust_thread_DURATION = ${creation_pthread_DURATION} |
---|
| 107 | creation_java_thread_DURATION = ${creation_pthread_DURATION} |
---|
[9e1fa35] | 108 | creation_cfa_coroutine_DURATION = 100000000 |
---|
| 109 | creation_cfa_coroutine_eager_DURATION = 10000000 |
---|
[dfda49f] | 110 | creation_cfa_generator_DURATION = 1000000000 |
---|
[9e1fa35] | 111 | creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} |
---|
| 112 | creation_cfa_thread_DURATION = 10000000 |
---|
| 113 | creation_upp_thread_DURATION = ${creation_cfa_thread_DURATION} |
---|
| 114 | creation_DURATION = 10000000 |
---|
[4eb07bc] | 115 | |
---|
[a5b7905] | 116 | %.run : %$(EXEEXT) ${REPEAT} |
---|
[580c11b] | 117 | rm -f .result.log |
---|
| 118 | echo "------------------------------------------------------" |
---|
| 119 | echo $< |
---|
[c12869e] | 120 | ${REPEAT} ${repeats} -- ./a.out\ |
---|
[c93fd72] | 121 | $(if ${$(subst -,_,$(basename $@))_DURATION},\ |
---|
| 122 | ${$(subst -,_,$(basename $@))_DURATION},\ |
---|
| 123 | ${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log |
---|
[580c11b] | 124 | ${STATS} .result.log |
---|
| 125 | echo "------------------------------------------------------" |
---|
| 126 | rm -f a.out .result.log *.class |
---|
[ac93b228] | 127 | |
---|
[c12869e] | 128 | # ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out |
---|
| 129 | |
---|
[a5b7905] | 130 | %.runquiet : |
---|
[580c11b] | 131 | +make $(basename $@) CFLAGS="-w" __quiet=quiet |
---|
| 132 | taskset -c 1 ./a.out |
---|
| 133 | rm -f a.out |
---|
[a5b7905] | 134 | |
---|
| 135 | %.make : |
---|
[580c11b] | 136 | printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@)) |
---|
| 137 | +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1 |
---|
[a5b7905] | 138 | |
---|
| 139 | ${REPEAT} : |
---|
[580c11b] | 140 | +make -C ${abs_top_builddir}/tools repeat |
---|
[a5b7905] | 141 | |
---|
| 142 | ## ========================================================================================================= |
---|
| 143 | |
---|
[f15fe0a] | 144 | FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@ |
---|
| 145 | |
---|
[4aac9ff] | 146 | cleancsv: |
---|
[13d2dac] | 147 | rm -f compile.csv basic.csv ctxswitch.csv mutex.csv scheduling.csv |
---|
[4aac9ff] | 148 | |
---|
| 149 | jenkins$(EXEEXT): cleancsv |
---|
[05f4b85] | 150 | @DOifskipcompile@ |
---|
[580c11b] | 151 | +make compile.csv |
---|
| 152 | -+make compile.diff.csv |
---|
[05f4b85] | 153 | @DOendif@ |
---|
[580c11b] | 154 | +make ctxswitch.csv |
---|
| 155 | -+make ctxswitch.diff.csv |
---|
| 156 | +make mutex.csv |
---|
| 157 | -+make mutex.diff.csv |
---|
[13d2dac] | 158 | +make scheduling.csv |
---|
| 159 | -+make scheduling.diff.csv |
---|
[d9f2874] | 160 | @DOifskipcompile@ |
---|
[c6f1f3e] | 161 | cat compile.csv |
---|
| 162 | -cat compile.diff.csv |
---|
[d9f2874] | 163 | @DOendif@ |
---|
[c6f1f3e] | 164 | cat ctxswitch.csv |
---|
| 165 | -cat ctxswitch.diff.csv |
---|
| 166 | cat mutex.csv |
---|
| 167 | -cat mutex.diff.csv |
---|
[13d2dac] | 168 | cat scheduling.csv |
---|
| 169 | -cat scheduling.diff.csv |
---|
[f15fe0a] | 170 | |
---|
| 171 | compile.csv: |
---|
[4aac9ff] | 172 | echo "building $@" |
---|
[580c11b] | 173 | echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ |
---|
| 174 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ |
---|
| 175 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@ |
---|
| 176 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@ |
---|
| 177 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@ |
---|
| 178 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@ |
---|
| 179 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@ |
---|
| 180 | +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@ |
---|
| 181 | +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@ |
---|
| 182 | $(srcdir)/fixcsv.sh $@ |
---|
[f15fe0a] | 183 | |
---|
| 184 | ctxswitch.csv: |
---|
[4aac9ff] | 185 | echo "building $@" |
---|
[580c11b] | 186 | echo "generator,coroutine,thread" > $@ |
---|
| 187 | +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 188 | +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 189 | +make ctxswitch-cfa_thread.runquiet >> $@ |
---|
| 190 | $(srcdir)/fixcsv.sh $@ |
---|
[f15fe0a] | 191 | |
---|
| 192 | mutex.csv: |
---|
[4aac9ff] | 193 | echo "building $@" |
---|
[580c11b] | 194 | echo "1-monitor,2-monitor" > $@ |
---|
| 195 | +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 196 | +make mutex-cfa2.runquiet >> $@ |
---|
| 197 | $(srcdir)/fixcsv.sh $@ |
---|
[f15fe0a] | 198 | |
---|
[13d2dac] | 199 | scheduling.csv: |
---|
[4aac9ff] | 200 | echo "building $@" |
---|
[26fd986] | 201 | echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@ |
---|
| 202 | +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 203 | +make schedint-cfa2.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 204 | +make schedext-cfa1.runquiet >> $@ && echo -n ',' >> $@ |
---|
| 205 | +make schedext-cfa2.runquiet >> $@ |
---|
[580c11b] | 206 | $(srcdir)/fixcsv.sh $@ |
---|
[ac93b228] | 207 | |
---|
[c6f1f3e] | 208 | %.diff.csv: %.csv |
---|
[580c11b] | 209 | test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false) |
---|
| 210 | $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ |
---|
[c6f1f3e] | 211 | |
---|
[d885a58] | 212 | ## ========================================================================================================= |
---|
| 213 | |
---|
[4eb07bc] | 214 | BASIC_DEPEND = \ |
---|
| 215 | basic-loop.run \ |
---|
[90cb6f7] | 216 | basic-function.run \ |
---|
| 217 | basic-fetch_add.run \ |
---|
| 218 | basic-ttst_lock.run \ |
---|
| 219 | basic-tls-fetch_add.run |
---|
| 220 | |
---|
| 221 | basic-loop$(EXEEXT): |
---|
| 222 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c |
---|
| 223 | |
---|
| 224 | basic-function$(EXEEXT): |
---|
| 225 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c |
---|
| 226 | |
---|
| 227 | basic-fetch_add$(EXEEXT): |
---|
| 228 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c |
---|
| 229 | |
---|
| 230 | basic-ttst_lock$(EXEEXT): |
---|
| 231 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c |
---|
| 232 | |
---|
| 233 | basic-tls-fetch_add$(EXEEXT): |
---|
| 234 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c |
---|
[d885a58] | 235 | |
---|
[90cb6f7] | 236 | basic$(EXEEXT): $(BASIC_DEPEND) |
---|
[d885a58] | 237 | |
---|
[034165a] | 238 | ## ========================================================================================================= |
---|
[90cb6f7] | 239 | |
---|
| 240 | CTXSWITCH_DEPEND = \ |
---|
[dc33b5b] | 241 | ctxswitch-cfa_generator.run \ |
---|
[b7170a64] | 242 | ctxswitch-cfa_coroutine.run \ |
---|
| 243 | ctxswitch-cfa_thread.run \ |
---|
[6810fcb] | 244 | ctxswitch-cfa_thread2.run \ |
---|
[b7170a64] | 245 | ctxswitch-upp_coroutine.run \ |
---|
[50abab9] | 246 | ctxswitch-upp_thread.run \ |
---|
[c12869e] | 247 | ctxswitch-python_coroutine.run \ |
---|
| 248 | ctxswitch-nodejs_coroutine.run \ |
---|
[7ac3151] | 249 | ctxswitch-nodejs_await.run \ |
---|
[c12869e] | 250 | ctxswitch-goroutine_thread.run \ |
---|
[90cb6f7] | 251 | ctxswitch-rust_thread.run \ |
---|
[580c11b] | 252 | ctxswitch-nodejs_coroutine.run \ |
---|
[c12869e] | 253 | ctxswitch-java_thread.run \ |
---|
| 254 | ctxswitch-pthread.run |
---|
[dc33b5b] | 255 | |
---|
[41cca44] | 256 | if WITH_LIBFIBRE |
---|
[90cb6f7] | 257 | CTXSWITCH_DEPEND += \ |
---|
| 258 | ctxswitch-kos_fibre.run \ |
---|
[41cca44] | 259 | ctxswitch-kos_fibre2.run |
---|
| 260 | |
---|
| 261 | ctxswitch-kos_fibre$(EXEEXT): |
---|
[528ccc8] | 262 | $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre |
---|
[41cca44] | 263 | |
---|
| 264 | ctxswitch-kos_fibre2$(EXEEXT): |
---|
[528ccc8] | 265 | $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre |
---|
[41cca44] | 266 | endif |
---|
| 267 | |
---|
| 268 | ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) |
---|
| 269 | |
---|
[dc33b5b] | 270 | ctxswitch-cfa_generator$(EXEEXT): |
---|
[90cb6f7] | 271 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa |
---|
[dc33b5b] | 272 | |
---|
[034165a] | 273 | ctxswitch-cfa_coroutine$(EXEEXT): |
---|
[90cb6f7] | 274 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa |
---|
[034165a] | 275 | |
---|
| 276 | ctxswitch-cfa_thread$(EXEEXT): |
---|
[90cb6f7] | 277 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa |
---|
[6810fcb] | 278 | |
---|
| 279 | ctxswitch-cfa_thread2$(EXEEXT): |
---|
[90cb6f7] | 280 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa |
---|
[034165a] | 281 | |
---|
| 282 | ctxswitch-upp_coroutine$(EXEEXT): |
---|
[90cb6f7] | 283 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc |
---|
[034165a] | 284 | |
---|
| 285 | ctxswitch-upp_thread$(EXEEXT): |
---|
[90cb6f7] | 286 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc |
---|
[ac93b228] | 287 | |
---|
[c12869e] | 288 | ctxswitch-python_coroutine$(EXEEXT): |
---|
[1d72a11] | 289 | $(BENCH_V_PY)echo "#!/bin/sh" > a.out |
---|
[c12869e] | 290 | echo "python3.7 $(srcdir)/ctxswitch/python_cor.py" >> a.out |
---|
| 291 | chmod a+x a.out |
---|
[90cb6f7] | 292 | |
---|
[580c11b] | 293 | ctxswitch-nodejs_coroutine$(EXEEXT): |
---|
[1d72a11] | 294 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
[2316525] | 295 | echo "nodejs $(srcdir)/ctxswitch/node_cor.js" >> a.out |
---|
[4eb07bc] | 296 | chmod a+x a.out |
---|
[580c11b] | 297 | |
---|
[7ac3151] | 298 | ctxswitch-nodejs_await$(EXEEXT): |
---|
[1d72a11] | 299 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
[7ac3151] | 300 | echo "nodejs $(srcdir)/ctxswitch/node_await.js" >> a.out |
---|
| 301 | chmod a+x a.out |
---|
| 302 | |
---|
[c12869e] | 303 | ctxswitch-goroutine_thread$(EXEEXT): |
---|
| 304 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go |
---|
| 305 | |
---|
| 306 | ctxswitch-rust_thread$(EXEEXT): |
---|
| 307 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs |
---|
| 308 | |
---|
[50abab9] | 309 | ctxswitch-java_thread$(EXEEXT): |
---|
[528ccc8] | 310 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java |
---|
[580c11b] | 311 | echo "#!/bin/sh" > a.out |
---|
| 312 | echo "java JavaThread" >> a.out |
---|
| 313 | chmod a+x a.out |
---|
| 314 | |
---|
[c12869e] | 315 | ctxswitch-pthread$(EXEEXT): |
---|
| 316 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c |
---|
| 317 | |
---|
[f54a0ab] | 318 | ## ========================================================================================================= |
---|
[90cb6f7] | 319 | |
---|
| 320 | mutex$(EXEEXT) : \ |
---|
[f54a0ab] | 321 | mutex-cfa1.run \ |
---|
| 322 | mutex-cfa2.run \ |
---|
[6aa537a4] | 323 | mutex-cfa4.run \ |
---|
[9e1fa35] | 324 | mutex-upp.run \ |
---|
[90cb6f7] | 325 | mutex-go.run \ |
---|
| 326 | mutex-rust.run \ |
---|
[c12869e] | 327 | mutex-java.run \ |
---|
| 328 | mutex-pthread.run |
---|
[f54a0ab] | 329 | |
---|
[90cb6f7] | 330 | mutex-pthread$(EXEEXT): |
---|
[4eb07bc] | 331 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c |
---|
[f54a0ab] | 332 | |
---|
| 333 | mutex-cfa1$(EXEEXT): |
---|
[4eb07bc] | 334 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa |
---|
[f54a0ab] | 335 | |
---|
| 336 | mutex-cfa2$(EXEEXT): |
---|
[4eb07bc] | 337 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa |
---|
[f54a0ab] | 338 | |
---|
| 339 | mutex-cfa4$(EXEEXT): |
---|
[4eb07bc] | 340 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa |
---|
[90cb6f7] | 341 | |
---|
[9e1fa35] | 342 | mutex-upp$(EXEEXT): |
---|
| 343 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc |
---|
| 344 | |
---|
[90cb6f7] | 345 | mutex-go$(EXEEXT): |
---|
| 346 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go |
---|
| 347 | |
---|
| 348 | mutex-rust$(EXEEXT): |
---|
| 349 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs |
---|
[034165a] | 350 | |
---|
[90cb6f7] | 351 | mutex-java$(EXEEXT): |
---|
[528ccc8] | 352 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java |
---|
[580c11b] | 353 | echo "#!/bin/sh" > a.out |
---|
| 354 | echo "java JavaThread" >> a.out |
---|
| 355 | chmod a+x a.out |
---|
[6aa537a4] | 356 | |
---|
[9f0b975] | 357 | ## ========================================================================================================= |
---|
[90cb6f7] | 358 | |
---|
[26fd986] | 359 | schedint$(EXEEXT) : \ |
---|
| 360 | schedint-cfa1.run \ |
---|
| 361 | schedint-cfa2.run \ |
---|
| 362 | schedint-cfa4.run \ |
---|
| 363 | schedint-upp.run \ |
---|
| 364 | schedint-rust.run \ |
---|
| 365 | schedint-java.run \ |
---|
| 366 | schedint-pthread.run |
---|
[9f0b975] | 367 | |
---|
[26fd986] | 368 | schedint-cfa1$(EXEEXT): |
---|
[4eb07bc] | 369 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa |
---|
[9f0b975] | 370 | |
---|
[26fd986] | 371 | schedint-cfa2$(EXEEXT): |
---|
[4eb07bc] | 372 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa |
---|
[9f0b975] | 373 | |
---|
[26fd986] | 374 | schedint-cfa4$(EXEEXT): |
---|
[4eb07bc] | 375 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa |
---|
[90cb6f7] | 376 | |
---|
[26fd986] | 377 | schedint-upp$(EXEEXT): |
---|
| 378 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc |
---|
| 379 | |
---|
| 380 | schedint-rust$(EXEEXT): |
---|
[90cb6f7] | 381 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs |
---|
[9f0b975] | 382 | |
---|
[26fd986] | 383 | schedint-java$(EXEEXT): |
---|
[528ccc8] | 384 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java |
---|
[580c11b] | 385 | echo "#!/bin/sh" > a.out |
---|
| 386 | echo "java JavaThread" >> a.out |
---|
| 387 | chmod a+x a.out |
---|
[6aa537a4] | 388 | |
---|
[26fd986] | 389 | schedint-pthread$(EXEEXT): |
---|
| 390 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c |
---|
[90cb6f7] | 391 | |
---|
[26fd986] | 392 | ## ========================================================================================================= |
---|
[9f0b975] | 393 | |
---|
[26fd986] | 394 | schedext$(EXEEXT) : \ |
---|
| 395 | schedext-cfa1.run \ |
---|
| 396 | schedext-cfa2.run \ |
---|
| 397 | schedext-cfa4.run \ |
---|
| 398 | schedext-upp.run \ |
---|
| 399 | schedext-goroutine.run |
---|
[9f0b975] | 400 | |
---|
[26fd986] | 401 | schedext-cfa1$(EXEEXT): |
---|
[4eb07bc] | 402 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa |
---|
[9f0b975] | 403 | |
---|
[26fd986] | 404 | schedext-cfa2$(EXEEXT): |
---|
[4eb07bc] | 405 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa |
---|
[9f0b975] | 406 | |
---|
[26fd986] | 407 | schedext-cfa4$(EXEEXT): |
---|
[4eb07bc] | 408 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa |
---|
[9f0b975] | 409 | |
---|
[26fd986] | 410 | schedext-upp$(EXEEXT): |
---|
| 411 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc |
---|
| 412 | |
---|
| 413 | schedext-goroutine$(EXEEXT): |
---|
| 414 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/schedext/goroutine.go |
---|
| 415 | |
---|
| 416 | |
---|
[4cedd9f] | 417 | ## ========================================================================================================= |
---|
[90cb6f7] | 418 | |
---|
| 419 | creation$(EXEEXT) : \ |
---|
[26fd986] | 420 | creation-cfa_generator.run \ |
---|
[3351cc0] | 421 | creation-cfa_coroutine.run \ |
---|
| 422 | creation-cfa_coroutine_eager.run \ |
---|
| 423 | creation-cfa_thread.run \ |
---|
| 424 | creation-upp_coroutine.run \ |
---|
[50abab9] | 425 | creation-upp_thread.run \ |
---|
[c12869e] | 426 | creation-python_coroutine.run \ |
---|
[9e1fa35] | 427 | creation-nodejs_coroutine.run \ |
---|
[c12869e] | 428 | creation-goroutine_thread.run \ |
---|
| 429 | creation-rust_thread.run \ |
---|
| 430 | creation-java_thread.run \ |
---|
| 431 | creation-pthread.run |
---|
[4cedd9f] | 432 | |
---|
[26fd986] | 433 | creation-cfa_generator$(EXEEXT): |
---|
| 434 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_gen.cfa |
---|
| 435 | |
---|
[4cedd9f] | 436 | creation-cfa_coroutine$(EXEEXT): |
---|
[4eb07bc] | 437 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa |
---|
[4cedd9f] | 438 | |
---|
[3351cc0] | 439 | creation-cfa_coroutine_eager$(EXEEXT): |
---|
[4eb07bc] | 440 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa -DEAGER |
---|
[3351cc0] | 441 | |
---|
[4cedd9f] | 442 | creation-cfa_thread$(EXEEXT): |
---|
[4eb07bc] | 443 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa |
---|
[4cedd9f] | 444 | |
---|
| 445 | creation-upp_coroutine$(EXEEXT): |
---|
[4eb07bc] | 446 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc |
---|
[4cedd9f] | 447 | |
---|
| 448 | creation-upp_thread$(EXEEXT): |
---|
[4eb07bc] | 449 | $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc |
---|
[4cedd9f] | 450 | |
---|
[c12869e] | 451 | creation-python_coroutine$(EXEEXT): |
---|
[1d72a11] | 452 | $(BENCH_V_PY)echo "#!/bin/sh" > a.out |
---|
[c12869e] | 453 | echo "python3.7 $(srcdir)/creation/python_cor.py" >> a.out |
---|
| 454 | chmod a+x a.out |
---|
[90cb6f7] | 455 | |
---|
[9e1fa35] | 456 | creation-nodejs_coroutine$(EXEEXT): |
---|
[1d72a11] | 457 | $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out |
---|
[2316525] | 458 | echo "nodejs $(srcdir)/creation/node_cor.js" >> a.out |
---|
[9e1fa35] | 459 | chmod a+x a.out |
---|
| 460 | |
---|
[c12869e] | 461 | creation-goroutine_thread$(EXEEXT): |
---|
| 462 | $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go |
---|
| 463 | |
---|
| 464 | creation-rust_thread$(EXEEXT): |
---|
| 465 | $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs |
---|
| 466 | |
---|
[26fd986] | 467 | creation-java_thread$(EXEEXT): |
---|
[528ccc8] | 468 | $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java |
---|
[580c11b] | 469 | echo "#!/bin/sh" > a.out |
---|
| 470 | echo "java JavaThread" >> a.out |
---|
| 471 | chmod a+x a.out |
---|
[50abab9] | 472 | |
---|
[c12869e] | 473 | creation-pthread$(EXEEXT): |
---|
| 474 | $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c |
---|
| 475 | |
---|
[034165a] | 476 | ## ========================================================================================================= |
---|
| 477 | |
---|
[90cb6f7] | 478 | compile$(EXEEXT) : \ |
---|
[a5b7905] | 479 | compile-array.make \ |
---|
| 480 | compile-attributes.make \ |
---|
| 481 | compile-empty.make \ |
---|
| 482 | compile-expression.make \ |
---|
| 483 | compile-io.make \ |
---|
| 484 | compile-monitor.make \ |
---|
| 485 | compile-operators.make \ |
---|
| 486 | compile-typeof.make |
---|
[3edc2df] | 487 | |
---|
[524ed86] | 488 | testdir = $(top_srcdir)/tests |
---|
[d3db83c] | 489 | |
---|
[3edc2df] | 490 | compile-array$(EXEEXT): |
---|
[580c11b] | 491 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa |
---|
[3edc2df] | 492 | |
---|
| 493 | compile-attributes$(EXEEXT): |
---|
[580c11b] | 494 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa |
---|
[3edc2df] | 495 | |
---|
| 496 | compile-empty$(EXEEXT): |
---|
[580c11b] | 497 | $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa |
---|
[3edc2df] | 498 | |
---|
| 499 | compile-expression$(EXEEXT): |
---|
[580c11b] | 500 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa |
---|
[3edc2df] | 501 | |
---|
| 502 | compile-io$(EXEEXT): |
---|
[580c11b] | 503 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa |
---|
[3edc2df] | 504 | |
---|
| 505 | compile-monitor$(EXEEXT): |
---|
[580c11b] | 506 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa |
---|
[3edc2df] | 507 | |
---|
| 508 | compile-operators$(EXEEXT): |
---|
[580c11b] | 509 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa |
---|
[3edc2df] | 510 | |
---|
| 511 | compile-thread$(EXEEXT): |
---|
[580c11b] | 512 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa |
---|
[3edc2df] | 513 | |
---|
| 514 | compile-typeof$(EXEEXT): |
---|
[580c11b] | 515 | $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa |
---|
[e15683e] | 516 | |
---|
| 517 | ## ========================================================================================================= |
---|
| 518 | |
---|
| 519 | size$(EXEEXT) : size-cfa.runquiet |
---|
| 520 | |
---|
| 521 | size-cfa$(EXEEXT): |
---|
| 522 | $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/size/size.cfa |
---|