Debian Codegraph @

benchmarks/Makefile.tests

raw
1 SIZES=6 6 7 8 9 10 11 12 13
2 BITS=30 60 120 240 480 960 1920 3840 7680
3 MATR=1000
4
5 SHELL := /bin/bash
6 index = $(words $(shell a="$(2)";echo $${a/$(1)*/$(1)} ))
7 swap = $(word $(call index,$(1),${SIZES}),${BITS})
8
9 OUTP=output.fgemv
10 MODEL=$(shell cat /proc/cpuinfo | grep "model name" | head -1|cut -d':' -f2| tr -s ' '|sed 's/^ //')
11
12 EXEC=benchmark-fgemv-mp
13 WSRC=${EXEC:%=-W %.C}
14
15 mkruns = make "OPTFLAGS=-Ofast -DSTD_RECINT_SIZE=$(1) -DBENCH_RECINT" ${EXEC} ${WSRC}; ${EXEC} -b $(call swap,$(1)) -m ${MATR} -k ${MATR} -i 2 |awk '{print "SIZE:",$(1),$$0}' >> ${OUTP}; make "OPTFLAGS=-Ofast -DINTEGER_NO_RNS" ${EXEC} ${WSRC}; echo "NORNS"`${EXEC} -b $(call swap,$(1)) -m ${MATR} -k ${MATR} -i 2`|awk '{print "SIZE:",$(1),$$0}' >> ${OUTP};
16
17
18 all: run split
19
20 run:
21 - rm ${OUTP}
22 $(foreach siz, ${SIZES}, $(call mkruns,${siz}))
23
24 split:
25 fgrep RecInt ${OUTP} | sed 's/4rintILm/ /;s/EEE/ /'> ${OUTP}.rint
26 fgrep Givaro ${OUTP} | fgrep NORNS > ${OUTP}.gmp
27 fgrep Givaro ${OUTP} | fgrep -v NORNS > ${OUTP}.rns
28