Files
master-thesis/src/plots/runtimes_vector.tex

88 lines
3.1 KiB
TeX

\begin{tikzpicture}
\pgfplotstableread[col sep=comma]{plots/runtime_tables/hbm_3GHz.csv}\hbmarm
\pgfplotstableread[col sep=comma]{plots/runtime_tables/pim_3GHz.csv}\hbmpim
\pgfplotstableread[col sep=comma]{plots/runtime_tables/hbm_100GHz.csv}\hbminf
\pgfplotstableread[col sep=comma]{plots/runtime_tables/pim_100GHz.csv}\piminf
\pgfplotstableread[col sep=comma]{plots/runtime_tables/vega.csv}\vega
\pgfplotstableread[col sep=comma]{plots/runtime_tables/tesla.csv}\tesla
\begin{groupplot}[
group style={
group size=3 by 1,
horizontal sep=0pt,
vertical sep=0pt,
xticklabels at=edge bottom,
yticklabels at=edge left,
xlabels at=edge bottom,
ylabels at=edge left,
},
height=8cm,
width=0.45\linewidth,
ybar=1pt,
axis line style={draw=none},
tick style={draw=none},
ymin=0.1,
ymax=1e12,
ymode=log,
% ymax=25,
ymajorgrids,
ylabel={Runtime [$\unit{\pico\second}$]},
tick pos=left,
xtick=data,
xticklabels from table={\vega}{level},
legend style={
at={(0.5,-0.15)},
anchor=north,
legend columns=-1,
draw=none,
/tikz/every even column/.append style={column sep=0.5cm}
},
enlarge x limits=0.2,
]
\nextgroupplot[
xlabel=VADD,
bar width=3pt,
% width=3cm,
]
\addplot[fill=_blue!90] table [x expr=\coordindex, y={vadd}]{\hbmarm};
\addplot[fill=_orange!90] table [x expr=\coordindex, y={vadd}]{\hbmpim};
\addplot[fill=_yellow!90] table [x expr=\coordindex, y={vadd}]{\hbminf};
\addplot[fill=_green!90] table [x expr=\coordindex, y={vadd}]{\piminf};
\addplot[fill=_darkblue!90] table [x expr=\coordindex, y={vadd}]{\vega};
\addplot[fill=violet!90] table [x expr=\coordindex, y={vadd}]{\tesla};
\nextgroupplot[
xlabel=VMUL,
bar width=3pt,
% width=3cm,
]
\addplot[fill=_blue!90] table [x expr=\coordindex, y={vmul}]{\hbmarm};
\addlegendentry{Non-PIM ARM}
\addplot[fill=_orange!90] table [x expr=\coordindex, y={vmul}]{\hbmpim};
\addlegendentry{PIM ARM}
\addplot[fill=_yellow!90] table [x expr=\coordindex, y={vmul}]{\hbminf};
\addlegendentry{Non-PIM Inf.}
\addplot[fill=_green!90] table [x expr=\coordindex, y={vmul}]{\piminf};
\addlegendentry{PIM Inf.}
\addplot[fill=_darkblue!90] table [x expr=\coordindex, y={vmul}]{\vega};
\addlegendentry{Vega}
\addplot[fill=violet!90] table [x expr=\coordindex, y={vmul}]{\tesla};
\addlegendentry{Tesla}
\nextgroupplot[
xlabel=HAXPY,
bar width=3pt,
% width=3cm,
]
\addplot[fill=_blue!90] table [x expr=\coordindex, y={haxpy}]{\hbmarm};
\addplot[fill=_orange!90] table [x expr=\coordindex, y={haxpy}]{\hbmpim};
\addplot[fill=_yellow!90] table [x expr=\coordindex, y={haxpy}]{\hbminf};
\addplot[fill=_green!90] table [x expr=\coordindex, y={haxpy}]{\piminf};
\addplot[fill=_darkblue!90] table [x expr=\coordindex, y={haxpy}]{\vega};
\addplot[fill=violet!90] table [x expr=\coordindex, y={haxpy}]{\tesla};
\end{groupplot}
\end{tikzpicture}