Changeset 41cca44
- Timestamp:
- Sep 25, 2018, 10:49:02 AM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 13a984c
- Parents:
- fcc57ba
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
rfcc57ba r41cca44 33 33 TIME_FORMAT = "%E" 34 34 PRINT_FORMAT = %20s: #Comments needed for spacing 35 36 LIBFIBRE_DIR ?= /home/tdelisle/software/KOS/src/37 35 38 36 .NOTPARALLEL: … … 111 109 112 110 ## ========================================================================================================= 113 ctxswitch$(EXEEXT):\111 CTXSWITCH_DEPEND = \ 114 112 loop.run \ 115 113 function.run \ … … 121 119 ctxswitch-upp_coroutine.run \ 122 120 ctxswitch-upp_thread.run \ 123 -ctxswitch-kos_fibre.run \124 -ctxswitch-kos_fibre2.run \125 121 ctxswitch-goroutine.run \ 126 122 ctxswitch-java_thread.run 127 123 124 if WITH_LIBFIBRE 125 CTXSWITCH_DEPEND += \ 126 ctxswitch-kos_fibre.run \ 127 ctxswitch-kos_fibre2.run 128 129 130 ctxswitch-kos_fibre$(EXEEXT): 131 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 132 133 ctxswitch-kos_fibre2$(EXEEXT): 134 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 135 endif 136 137 ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) 138 128 139 ctxswitch-pthread$(EXEEXT): 129 140 @$(COMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c … … 143 154 ctxswitch-upp_thread$(EXEEXT): 144 155 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 145 146 ctxswitch-kos_fibre$(EXEEXT):147 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre148 149 ctxswitch-kos_fibre2$(EXEEXT):150 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre151 156 152 157 ctxswitch-goroutine$(EXEEXT): -
benchmark/Makefile.in
rfcc57ba r41cca44 93 93 host_triplet = @host@ 94 94 noinst_PROGRAMS = 95 @WITH_LIBFIBRE_TRUE@am__append_1 = \ 96 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre.run \ 97 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre2.run 98 95 99 subdir = benchmark 96 100 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 … … 273 277 TIME_FORMAT = "%E" 274 278 PRINT_FORMAT = %20s: #Comments needed for spacing 279 CTXSWITCH_DEPEND = loop.run function.run fetch_add.run \ 280 ctxswitch-pthread.run ctxswitch-cfa_coroutine.run \ 281 ctxswitch-cfa_thread.run ctxswitch-cfa_thread2.run \ 282 ctxswitch-upp_coroutine.run ctxswitch-upp_thread.run \ 283 ctxswitch-goroutine.run ctxswitch-java_thread.run \ 284 $(am__append_1) 275 285 testdir = $(top_srcdir)/tests 276 286 all: all-am … … 470 480 $(am__mv) $$depbase.Tpo $$depbase.Po 471 481 472 LIBFIBRE_DIR ?= /home/tdelisle/software/KOS/src/473 474 482 .NOTPARALLEL: 475 483 … … 541 549 $(COMPILE) -DBENCH_N=500000000 fetch_add.c 542 550 543 ctxswitch$(EXEEXT): \ 544 loop.run \ 545 function.run \ 546 fetch_add.run \ 547 ctxswitch-pthread.run \ 548 ctxswitch-cfa_coroutine.run \ 549 ctxswitch-cfa_thread.run \ 550 ctxswitch-cfa_thread2.run \ 551 ctxswitch-upp_coroutine.run \ 552 ctxswitch-upp_thread.run \ 553 -ctxswitch-kos_fibre.run \ 554 -ctxswitch-kos_fibre2.run \ 555 ctxswitch-goroutine.run \ 556 ctxswitch-java_thread.run 551 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT): 552 @WITH_LIBFIBRE_TRUE@ @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre 553 554 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre2$(EXEEXT): 555 @WITH_LIBFIBRE_TRUE@ @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre 556 557 ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND) 557 558 558 559 ctxswitch-pthread$(EXEEXT): … … 573 574 ctxswitch-upp_thread$(EXEEXT): 574 575 @$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc 575 576 ctxswitch-kos_fibre$(EXEEXT):577 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre578 579 ctxswitch-kos_fibre2$(EXEEXT):580 @$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre581 576 582 577 ctxswitch-goroutine$(EXEEXT): -
configure
rfcc57ba r41cca44 630 630 GREP 631 631 CPP 632 WITH_LIBFIBRE_FALSE 633 WITH_LIBFIBRE_TRUE 632 634 RANLIB 633 635 LEXLIB … … 5439 5441 5440 5442 # Checks for libraries. 5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fibre::yield in -lfibre" >&5 5444 $as_echo_n "checking for Fibre::yield in -lfibre... " >&6; } 5445 if ${ac_cv_lib_fibre_Fibre__yield+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447 else 5448 ac_check_lib_save_LIBS=$LIBS 5449 LIBS="-lfibre $LIBS" 5450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5451 /* end confdefs.h. */ 5452 5453 /* Override any GCC internal prototype to avoid an error. 5454 Use char because int might match the return type of a GCC 5455 builtin and then its argument prototype would still apply. */ 5456 #ifdef __cplusplus 5457 extern "C" 5458 #endif 5459 char Fibre::yield (); 5460 int 5461 main () 5462 { 5463 return Fibre::yield (); 5464 ; 5465 return 0; 5466 } 5467 _ACEOF 5468 if ac_fn_c_try_link "$LINENO"; then : 5469 ac_cv_lib_fibre_Fibre__yield=yes 5470 else 5471 ac_cv_lib_fibre_Fibre__yield=no 5472 fi 5473 rm -f core conftest.err conftest.$ac_objext \ 5474 conftest$ac_exeext conftest.$ac_ext 5475 LIBS=$ac_check_lib_save_LIBS 5476 fi 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fibre_Fibre__yield" >&5 5478 $as_echo "$ac_cv_lib_fibre_Fibre__yield" >&6; } 5479 if test "x$ac_cv_lib_fibre_Fibre__yield" = xyes; then : 5480 HAVE_LIBFIBRE=1 5481 else 5482 HAVE_LIBFIBRE=0 5483 fi 5484 5485 if test "$HAVE_LIBFIBRE" -eq 1; then 5486 WITH_LIBFIBRE_TRUE= 5487 WITH_LIBFIBRE_FALSE='#' 5488 else 5489 WITH_LIBFIBRE_TRUE='#' 5490 WITH_LIBFIBRE_FALSE= 5491 fi 5492 5441 5493 5442 5494 # Checks for header files. … … 6478 6530 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then 6479 6531 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. 6532 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6533 fi 6534 if test -z "${WITH_LIBFIBRE_TRUE}" && test -z "${WITH_LIBFIBRE_FALSE}"; then 6535 as_fn_error $? "conditional \"WITH_LIBFIBRE\" was never defined. 6480 6536 Usually this means the macro was only invoked conditionally." "$LINENO" 5 6481 6537 fi -
configure.ac
rfcc57ba r41cca44 204 204 205 205 # Checks for libraries. 206 AC_CHECK_LIB([fibre], [Fibre::yield], [HAVE_LIBFIBRE=1], [HAVE_LIBFIBRE=0]) 207 AM_CONDITIONAL([WITH_LIBFIBRE], [test "$HAVE_LIBFIBRE" -eq 1]) 206 208 207 209 # Checks for header files.
Note: See TracChangeset
for help on using the changeset viewer.