# sprintf(format, arch, node, dir, threads, accel, stride, j, arr, workers, type)
format = "data/arch=%s.node=%s.dir=%s.threads=%d.accel=%i.opt-stride=%i.j=%i.arr=%s.workers=%i.type=%s.txt"
arch = "x86_64"
node = "pc"
dir = "fwd"
threads = 1
accel = 9
stride = 2
j = 1
arr = "packed"
workers = 1
type = "float"

#############################################################################

set terminal svg enhanced size 640 420
set output "accel.svg"
set xlabel "samples"
set ylabel "seconds / sample"
set format x "%.1s%c"
set format y "%.1s%c"
set logscale x
set logscale y

threads = 1
stride = 2
j = 1

plot \
	sprintf(format, arch, node, dir, threads, 0, stride, j, arr, workers, type) with lines lc rgb "#ff0000" lw 2 title "ML (0)", \
	sprintf(format, arch, node, dir, threads, 4, stride, j, arr, workers, type) with lines lc rgb "#00ff00" lw 2 title "DL (4)", \
	sprintf(format, arch, node, dir, threads, 9, stride, j, arr, workers, type) with lines lc rgb "#000000" lw 2 title "SDL (9)"
