Changeset dd1cc02


Ignore:
Timestamp:
Sep 9, 2021, 2:56:00 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
5a40e4e
Parents:
2c7d0e8
Message:

Several changes to benchmark makefile for benchmarks for my thesis

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/Makefile.am

    r2c7d0e8 rdd1cc02  
    2121include $(top_srcdir)/tools/build/cfa.make
    2222
    23 AM_CFLAGS = -O2 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror
     23AM_CFLAGS = -O3 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror
    2424AM_CFAFLAGS = -quiet -nodebug
    2525AM_UPPFLAGS = -quiet -nodebug -multi -std=c++14
     
    524524## =========================================================================================================
    525525
    526 %-tokio$(EXEEXT): $(srcdir)/readyQ/%.rs $(srcdir)/bench.rs
     526RDQBENCHES = \
     527        rdq-cycle-cfa \
     528        rdq-cycle-tokio \
     529        rdq-cycle-go \
     530        rdq-cycle-fibre \
     531        rdq-yield-cfa \
     532        rdq-yield-tokio \
     533        rdq-yield-go \
     534        rdq-yield-fibre \
     535        rdq-locality-cfa \
     536        rdq-locality-tokio \
     537        rdq-locality-go \
     538        rdq-locality-fibre \
     539        rdq-transfer-cfa
     540
     541rdq-benches:
     542        +make $(RDQBENCHES)
     543
     544clean-rdq-benches:
     545        rm -rf $(RDQBENCHES)
     546
     547rdq-%-tokio$(EXEEXT): $(srcdir)/readyQ/%.rs $(srcdir)/bench.rs
    527548        cd $(builddir) && cargo build --release
    528549        cp $(builddir)/target/release/$(basename $@) $@
     550
     551rdq-%-cfa$(EXEEXT): $(srcdir)/readyQ/%.cfa $(srcdir)/readyQ/rq_bench.hfa
     552        $(BENCH_V_CFA)$(CFACOMPILE) $< -o $@
     553
     554go.mod:
     555        touch $@
     556        go mod edit -module=rdqbench
     557        go get golang.org/x/sync/semaphore
     558        go get golang.org/x/text/language
     559        go get golang.org/x/text/message
     560
     561rdq-%-go$(EXEEXT): $(srcdir)/readyQ/%.go $(srcdir)/readyQ/bench.go go.mod
     562        $(BENCH_V_GOC)go build -o $@ $< $(srcdir)/readyQ/bench.go
     563
     564rdq-%-fibre$(EXEEXT): $(srcdir)/readyQ/%.cpp
     565        $(BENCH_V_CXX)$(CXXCOMPILE) $< -o $@ -lfibre $(AM_CFLAGS)
     566
     567# ## =========================================================================================================
     568
     569CLEANFILES = $(RDQBENCHES) go.mod go.sum
     570
     571clean-local:
     572        -rm -rf target
Note: See TracChangeset for help on using the changeset viewer.