#############################################################################
set terminal svg enhanced size 900 480
set output "fwd_arrtype.svg"
set xlabel "pixels"
set ylabel "seconds"
set title "time of DWT decomposition"
set format x "%.1s%c"
set format y "%.1s%c"
set logscale x
set logscale y

plot \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=-1.arr=simple.workers=1.type=float.txt" with lines lc rgb "#ff0000" title "simple", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=-1.arr=sparse.workers=1.type=float.txt" with lines lc rgb "#00ff00" title "sparse", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=-1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0000ff" title "packed"

#############################################################################
set terminal svg enhanced size 900 480
set output "fwd_optstride.svg"
set xlabel "pixels"
set ylabel "seconds"
set title "time of DWT decomposition"
set format x "%.1s%c"
set format y "%.1s%c"
set logscale x
set logscale y

plot \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=0.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#ff0000" title "non-optimal stride", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0000ff" title "optimal stride"

#############################################################################
set terminal svg enhanced size 900 480
set output "fwd_threads.svg"
set xlabel "pixels"
set ylabel "seconds"
set title "time of DWT decomposition"
set format x "%.1s%c"
set format y "%.1s%c"
set logscale x
set logscale y

plot \
	"data.arch=x86_64.node=pc.dir=fwd.threads=1.accel=9.opt-stride=1.j=-1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#ff0000" title "1 thread", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=-1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0000ff" title "2 threads"

#############################################################################
set terminal svg enhanced size 900 480
set output "fwd_accel.svg"
set xlabel "pixels"
set ylabel "seconds"
set title "time of DWT decomposition"
set format x "%.1s%c"
set format y "%.1s%c"
set logscale x
set logscale y

plot \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=0.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#f00000" title "0", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=2.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0f0ac0" title "2", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=4.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#00f000" title "4", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=5.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0aaca0" title "5", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=6.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#c000f0" title "6", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=7.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#00cc0f" title "7", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=8.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#c0c0c0" title "8", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0f0f0f" title "9", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=10.opt-stride=1.j=1.arr=packed.workers=4.type=float.txt" with lines lc rgb "#ff00ff" title "10", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=11.opt-stride=1.j=1.arr=packed.workers=4.type=float.txt" with lines lc rgb "#00ffff" title "11", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=12.opt-stride=1.j=1.arr=packed.workers=4.type=float.txt" with lines lc rgb "#dddd00" title "12"

#############################################################################
set terminal svg enhanced size 900 480
set output "fwd_accel_best.svg"
set xlabel "pixels"
set ylabel "seconds"
set title "time of DWT decomposition"
set format x "%.1s%c"
set format y "%.1s%c"
set logscale x
set logscale y

plot \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=0.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#0000ff" title "0 ML", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=9.opt-stride=1.j=1.arr=packed.workers=1.type=float.txt" with lines lc rgb "#00ffff" title "9 SDL6SSE", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=11.opt-stride=1.j=1.arr=packed.workers=4.type=float.txt" with lines lc rgb "#ff00ff" title "11 DL4SSE", \
	"data.arch=x86_64.node=pc.dir=fwd.threads=2.accel=12.opt-stride=1.j=1.arr=packed.workers=4.type=float.txt" with lines lc rgb "#aaaa00" title "12 ML4SSE"
