\hypertarget{group__hwlocality__helper__find__covering}{\section{Finding a single Object covering at least C\+P\+U set}
\label{group__hwlocality__helper__find__covering}\index{Finding a single Object covering at least C\+P\+U set@{Finding a single Object covering at least C\+P\+U set}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__covering_gab56b99460194bbcb36016d36d55132a7}{hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+unused, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set, \hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} parent)
\begin{DoxyCompactList}\small\item\em Get the child covering at least C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__objects_ga79b8ab56877ef99ac59b833203391c7d}{hwloc\+\_\+obj\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__find__covering_ga2a0de36ea0c3c70fb5f4cba0bb192582}{hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology, \hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Get the lowest object covering at least C\+P\+U set {\ttfamily set}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{group__hwlocality__helper__find__covering_gab56b99460194bbcb36016d36d55132a7}{\index{Finding a single Object covering at least C\+P\+U set@{Finding a single Object covering at least C\+P\+U set}!hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset@{hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset}}
\index{hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset@{hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset}!Finding a single Object covering at least C\+P\+U set@{Finding a single Object covering at least C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t} topology}]{\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+unused, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set, }
\item[{{\bf hwloc\+\_\+obj\+\_\+t}}]{parent}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__covering_gab56b99460194bbcb36016d36d55132a7}


Get the child covering at least C\+P\+U set {\ttfamily set}. 

\begin{DoxyReturn}{Returns}
{\ttfamily N\+U\+L\+L} if no child matches or if {\ttfamily set} is empty. 
\end{DoxyReturn}


References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+obj\+::first\+\_\+child, hwloc\+\_\+bitmap\+\_\+isincluded(), hwloc\+\_\+bitmap\+\_\+iszero(), and hwloc\+\_\+obj\+::next\+\_\+sibling.



Referenced by hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset().

\hypertarget{group__hwlocality__helper__find__covering_ga2a0de36ea0c3c70fb5f4cba0bb192582}{\index{Finding a single Object covering at least C\+P\+U set@{Finding a single Object covering at least C\+P\+U set}!hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset@{hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset}}
\index{hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset@{hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset}!Finding a single Object covering at least C\+P\+U set@{Finding a single Object covering at least C\+P\+U set}}
\subsubsection[{hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+obj\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+get\+\_\+obj\+\_\+covering\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology, }
\item[{{\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t}}]{set}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__find__covering_ga2a0de36ea0c3c70fb5f4cba0bb192582}


Get the lowest object covering at least C\+P\+U set {\ttfamily set}. 

\begin{DoxyReturn}{Returns}
{\ttfamily N\+U\+L\+L} if no object matches or if {\ttfamily set} is empty. 
\end{DoxyReturn}


References hwloc\+\_\+obj\+::cpuset, hwloc\+\_\+bitmap\+\_\+isincluded(), hwloc\+\_\+bitmap\+\_\+iszero(), hwloc\+\_\+get\+\_\+child\+\_\+covering\+\_\+cpuset(), and hwloc\+\_\+get\+\_\+root\+\_\+obj().



Referenced by hwloc\+\_\+get\+\_\+cache\+\_\+covering\+\_\+cpuset().

