hw1: tweaks to figures

This commit is contained in:
Claudio Maggioni 2022-10-05 11:14:40 +02:00
parent b99792f558
commit 64f3d38dc9
2 changed files with 28 additions and 36 deletions

View file

@ -4,8 +4,8 @@
\usepackage{float} \usepackage{float}
\usepackage{subcaption} \usepackage{subcaption}
\usepackage{graphicx} \usepackage{graphicx}
\usepackage{fancyvrb}
\usepackage{tikz} \usepackage{tikz}
\usepackage{multirow}
\begin{document} \begin{document}
@ -39,42 +39,34 @@ L1 cache & 32 kB per core
All values are reported using base 2 IEC byte units. The cluster has 2 sockets All values are reported using base 2 IEC byte units. The cluster has 2 sockets
and a total of 20 cores (10 per socket). The cache topology diagram reported by and a total of 20 cores (10 per socket). The cache topology diagram reported by
\texttt{likwid-topology -g} is the following: \texttt{likwid-topology -g} is shown in Figure \ref{fig:topo}.
\pagebreak[4] \begin{figure}[t]
% https://tex.stackexchange.com/a/171818 \begin{center}
\begin{Verbatim}[fontsize=\tiny] Socket 0:\vspace{0.3cm}
Socket 0:
+---------------------------------------------------------------------------------------------------------------+ \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|}
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \hline 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\\hline
| | 0 | | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | kB & 32 kB \\\hline
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256
| | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | kB & 256 kB & 256 kB \\\hline
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \multicolumn{10}{|c|}{25 MB} \\\hline
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \end{tabular}\vspace{0.8cm}\\
| | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | Socket 1:\vspace{0.3cm}
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|}
| +-----------------------------------------------------------------------------------------------------------+ | \hline 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 \\\hline
| | 25 MB | | 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32
| +-----------------------------------------------------------------------------------------------------------+ | kB & 32 kB \\\hline
+---------------------------------------------------------------------------------------------------------------+ 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256
Socket 1: kB & 256 kB & 256 kB \\\hline
+---------------------------------------------------------------------------------------------------------------+ \multicolumn{10}{|c|}{25 MB} \\\hline
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \end{tabular}
| | 10 | | 11 | | 12 | | 13 | | 14 | | 15 | | 16 | | 17 | | 18 | | 19 | | \end{center}
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \caption{Cache topology diagram as outputted by \texttt{likwid-topology -g}.
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | Byte sizes all in IEC units.}
| | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | \label{fig:topo}
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | \end{figure}
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ |
| | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | |
| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ |
| +-----------------------------------------------------------------------------------------------------------+ |
| | 25 MB | |
| +-----------------------------------------------------------------------------------------------------------+ |
+---------------------------------------------------------------------------------------------------------------+
\end{Verbatim}
\subsection{Memory Access Pattern of \texttt{membench.c}} \subsection{Memory Access Pattern of \texttt{membench.c}}