Ignore:
Timestamp:
Apr 4, 2023, 10:13:39 PM (15 months ago)
Author:
Mike Brooks <mlbrooks@…>
Branches:
ADT, ast-experimental, master
Children:
3e94a23, e9ed2a1
Parents:
e02e13f
Message:

Extend LL perf experiment to run on many dataset sizes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/theses/mike_brooks_MMath/benchmarks/list/Makefile

    re02e13f r9bb8ee42  
    22# For performance:
    33#       pushd ~/cfax
    4 #       ~/setcfa build-fast
     4#       . ~/setcfa build-fast
    55#       popd
    66#       make perfprogs CFA=$cfa -j8 MODE=performance
    7 #       make results-latest.csv RUNARGS=5 RUN_NUM_REPS=5
    8 
     7#       make results-latest.csv -j4 RUN_DURATION_SEC=5 RUN_NUM_REPS=5 RUN_DATA_SIZE_MODE=common5
     8#   cp results-latest.csv results-baseline.csv
     9#       make results-latest.csv -j4 OP_MOVEMENTS=stack OP_POLARITIES=insfirst OP_ACCESSORS=allhead RUN_DURATION_SEC=5 RUN_NUM_REPS=5 RUN_DATA_SIZE_MODE=thorough
     10#   cp results-latest.csv results-sizing.csv
    911
    1012CFA = cfa
     
    1517EXTRA_COMP_FLAGS=
    1618RUN_NUM_REPS=3
    17 RUNARGS=
     19RUN_DATA_SIZE_MODE=none
     20RUN_DURATION_SEC=5
    1821
    1922ifeq "$(MODE)" "performance"
     
    122125
    123126
     127ifeq "$(RUN_DATA_SIZE_MODE)" "common5"
     128RUN_DATA_SIZES=\
     129  7-1000000 \
     130  71-100000 \
     131  809-10000 \
     132  9051-1000 \
     133  72421-100
     134else ifeq "$(RUN_DATA_SIZE_MODE)" "thorough"
     135RUN_DATA_SIZES=\
     136  7-1000000 \
     137  11-100000 \
     138  13-100000 \
     139  19-100000 \
     140  29-100000 \
     141  37-100000 \
     142  53-100000 \
     143  71-100000 \
     144  101-10000 \
     145  149-10000 \
     146  211-10000 \
     147  283-10000 \
     148  401-10000 \
     149  569-10000 \
     150  809-10000 \
     151  1151-1000 \
     152  1601-1000 \
     153  2267-1000 \
     154  3203-1000 \
     155  4547-1000 \
     156  6473-1000 \
     157  9051-1000 \
     158  12809-100 \
     159  18119-100 \
     160  25601-100 \
     161  36209-100 \
     162  51203-100 \
     163  72421-100 \
     164  102407-10 \
     165  144817-10 \
     166  204803-10 \
     167  289637-10 \
     168  409609-10 \
     169  579263-10 \
     170  819229-10 \
     171  1158613-1 \
     172  1638431-1 \
     173  2317057-1 \
     174  3276803-1 \
     175  4634111-1 \
     176  6553621-1 \
     177  9268211-1
     178else ifeq "$(RUN_DATA_SIZE_MODE)" "manual"
     179ifeq "$(RUN_DATA_SIZES)" ""
     180$(error RUN_DATA_SIZE_MODE is manual but RUN_DATA_SIZES not given)
     181endif
     182else ifeq "$(RUN_DATA_SIZE_MODE)" "none"
     183# Assume user manages RUN_ARGS; empty RUN_ARGS just means run with compiled-in defaults
     184RUN_DATA_SIZES=none
     185else
     186$(error Bad RUN_DATA_SIZE_MODE ($(RUN_DATA_SIZE_MODE)); should be common5, thorough or manual)
     187endif
     188
    124189RUN_REP_IDS=$(shell echo {1..$(RUN_NUM_REPS)})              # 1 2 3
    125190RUN_REP_EXTS=$(call cross3,,run,$(RUN_REP_IDS),.1csv)       # run1.1csv run2.1cav run3.1csv
    126191
    127 RESULT1S=$(call cross,.,$(CORES),$(RUN_REP_EXTS))   # lq-tailq--stack-inslast-allhead.run2.1csv
     192RUN_LAUNCHES=$(call cross,--,$(RUN_DATA_SIZES),$(RUN_REP_EXTS))
     193
     194
     195
     196RESULT1S=$(call cross,.,$(CORES),$(RUN_LAUNCHES))   # lq-tailq--stack-inslast-allhead.run2.1csv
     197
    128198
    129199RESULT1S_SHUFD=$(shell shuf -e $(RESULT1S))
    130200
    131201%.1csv : CORE=$(basename $(basename $@))
    132 %.1csv : REP_ID=$(subst .run,,$(suffix $(basename $@)))
     202%.1csv : LAUNCH=$(subst .,,$(suffix $(basename $@)))
     203%.1csv : SIZING=$(call proj,--,$(LAUNCH),1)
     204%.1csv : NUMNODES=$(call proj,-,$(SIZING),1)
     205%.1csv : CHECKDONE=$(call proj,-,$(SIZING),2)
     206%.1csv : RUN_ARGS=$(if $(filter none,$(SIZING)),,$(RUN_DURATION_SEC) $(CHECKDONE) $(NUMNODES))
     207%.1csv : REP_ID=$(subst run,,$(call proj,--,$(LAUNCH),2))
    133208%.1csv : REP_TIME=$(shell date '+%F %H:%M:%S')
    134209%.1csv : perfprogs FORCE
    135         ./perfexp--$(CORE) $(RUNARGS) | xargs -n 1 printf '%s,%s,%s\n' "$(REP_TIME)" "$(REP_ID)" | tee $@
     210        ./perfexp--$(CORE) $(RUN_ARGS) | xargs -n 1 printf '%s,%s,%s,%s\n' "$(REP_TIME)" "$(REP_ID)" "$(RUN_ARGS)" | tee $@
     211
    136212
    137213BATCHTIME=$(shell date '+%F--%H-%M-%S')
Note: See TracChangeset for help on using the changeset viewer.