- Timestamp:
- Apr 4, 2023, 10:13:39 PM (20 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 3e94a23, e9ed2a1
- Parents:
- e02e13f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/theses/mike_brooks_MMath/benchmarks/list/Makefile
re02e13f r9bb8ee42 2 2 # For performance: 3 3 # pushd ~/cfax 4 # ~/setcfa build-fast4 # . ~/setcfa build-fast 5 5 # popd 6 6 # 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 9 11 10 12 CFA = cfa … … 15 17 EXTRA_COMP_FLAGS= 16 18 RUN_NUM_REPS=3 17 RUNARGS= 19 RUN_DATA_SIZE_MODE=none 20 RUN_DURATION_SEC=5 18 21 19 22 ifeq "$(MODE)" "performance" … … 122 125 123 126 127 ifeq "$(RUN_DATA_SIZE_MODE)" "common5" 128 RUN_DATA_SIZES=\ 129 7-1000000 \ 130 71-100000 \ 131 809-10000 \ 132 9051-1000 \ 133 72421-100 134 else ifeq "$(RUN_DATA_SIZE_MODE)" "thorough" 135 RUN_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 178 else ifeq "$(RUN_DATA_SIZE_MODE)" "manual" 179 ifeq "$(RUN_DATA_SIZES)" "" 180 $(error RUN_DATA_SIZE_MODE is manual but RUN_DATA_SIZES not given) 181 endif 182 else ifeq "$(RUN_DATA_SIZE_MODE)" "none" 183 # Assume user manages RUN_ARGS; empty RUN_ARGS just means run with compiled-in defaults 184 RUN_DATA_SIZES=none 185 else 186 $(error Bad RUN_DATA_SIZE_MODE ($(RUN_DATA_SIZE_MODE)); should be common5, thorough or manual) 187 endif 188 124 189 RUN_REP_IDS=$(shell echo {1..$(RUN_NUM_REPS)}) # 1 2 3 125 190 RUN_REP_EXTS=$(call cross3,,run,$(RUN_REP_IDS),.1csv) # run1.1csv run2.1cav run3.1csv 126 191 127 RESULT1S=$(call cross,.,$(CORES),$(RUN_REP_EXTS)) # lq-tailq--stack-inslast-allhead.run2.1csv 192 RUN_LAUNCHES=$(call cross,--,$(RUN_DATA_SIZES),$(RUN_REP_EXTS)) 193 194 195 196 RESULT1S=$(call cross,.,$(CORES),$(RUN_LAUNCHES)) # lq-tailq--stack-inslast-allhead.run2.1csv 197 128 198 129 199 RESULT1S_SHUFD=$(shell shuf -e $(RESULT1S)) 130 200 131 201 %.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)) 133 208 %.1csv : REP_TIME=$(shell date '+%F %H:%M:%S') 134 209 %.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 136 212 137 213 BATCHTIME=$(shell date '+%F--%H-%M-%S')
Note: See TracChangeset
for help on using the changeset viewer.