\hypertarget{group__hwlocality__helper__types}{\section{Object Type Helpers}
\label{group__hwlocality__helper__types}\index{Object Type Helpers@{Object Type Helpers}}
}


Be sure to see the figure in termsanddefs that shows a complete topology tree, including depths, child/sibling/cousin relationships, and an example of an asymmetric topology where one socket has fewer caches than its peers.  


\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__types_ga0ffafb4c0ae13b9a7541ca820ca34883}{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__types_gacd37bb612667dc437d66bfb175a8dc55}{hwloc\+\_\+obj\+\_\+type\+\_\+t} type)
\begin{DoxyCompactList}\small\item\em Returns the depth of objects of type {\ttfamily type} or below. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__types_ga24b9cd5917fcebac6e45ae38d0a6cda4}{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__types_gacd37bb612667dc437d66bfb175a8dc55}{hwloc\+\_\+obj\+\_\+type\+\_\+t} type)
\begin{DoxyCompactList}\small\item\em Returns the depth of objects of type {\ttfamily type} or above. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Be sure to see the figure in termsanddefs that shows a complete topology tree, including depths, child/sibling/cousin relationships, and an example of an asymmetric topology where one socket has fewer caches than its peers. 



\subsection{Function Documentation}
\hypertarget{group__hwlocality__helper__types_ga24b9cd5917fcebac6e45ae38d0a6cda4}{\index{Object Type Helpers@{Object Type Helpers}!hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth@{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth}}
\index{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth@{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth}!Object Type Helpers@{Object Type Helpers}}
\subsubsection[{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+above\+\_\+depth (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+obj\+\_\+type\+\_\+t}}]{type}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__types_ga24b9cd5917fcebac6e45ae38d0a6cda4}


Returns the depth of objects of type {\ttfamily type} or above. 

If no object of this type is present on the underlying architecture, the function returns the depth of the first \char`\"{}present\char`\"{} object typically containing {\ttfamily type}.

If some objects of the given type exist in different levels, for instance L1 and L2 caches, the function returns H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+M\+U\+L\+T\+I\+P\+L\+E. 

References hwloc\+\_\+compare\+\_\+types(), hwloc\+\_\+get\+\_\+depth\+\_\+type(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), and H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N.

\hypertarget{group__hwlocality__helper__types_ga0ffafb4c0ae13b9a7541ca820ca34883}{\index{Object Type Helpers@{Object Type Helpers}!hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth@{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth}}
\index{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth@{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth}!Object Type Helpers@{Object Type Helpers}}
\subsubsection[{hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+type\+\_\+or\+\_\+below\+\_\+depth (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+obj\+\_\+type\+\_\+t}}]{type}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__types_ga0ffafb4c0ae13b9a7541ca820ca34883}


Returns the depth of objects of type {\ttfamily type} or below. 

If no object of this type is present on the underlying architecture, the function returns the depth of the first \char`\"{}present\char`\"{} object typically found inside {\ttfamily type}.

If some objects of the given type exist in different levels, for instance L1 and L2 caches, the function returns H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+M\+U\+L\+T\+I\+P\+L\+E. 

References hwloc\+\_\+compare\+\_\+types(), hwloc\+\_\+get\+\_\+depth\+\_\+type(), hwloc\+\_\+get\+\_\+type\+\_\+depth(), H\+W\+L\+O\+C\+\_\+\+O\+B\+J\+\_\+\+P\+U, and H\+W\+L\+O\+C\+\_\+\+T\+Y\+P\+E\+\_\+\+D\+E\+P\+T\+H\+\_\+\+U\+N\+K\+N\+O\+W\+N.

