\hypertarget{group__hwlocality__helper__cpuset}{\section{Cpuset Helpers}
\label{group__hwlocality__helper__cpuset}\index{Cpuset Helpers@{Cpuset Helpers}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__cpuset_ga75f0ac3ac41e9915541c3ae3153a6e26}{hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology)
\begin{DoxyCompactList}\small\item\em Get complete C\+P\+U set. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__cpuset_ga4497338d1cbae6f8a6d68cb14234d5d8}{hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology)
\begin{DoxyCompactList}\small\item\em Get topology C\+P\+U set. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__cpuset_gad00abc77f1670049a5b2139471d0c8db}{hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology)
\begin{DoxyCompactList}\small\item\em Get online C\+P\+U set. \end{DoxyCompactList}\item 
static \+\_\+\+\_\+hwloc\+\_\+inline \\*
\hyperlink{group__hwlocality__sets_ga1f784433e9b606261f62d1134f6a3b25}{hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \\*
\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure \hyperlink{group__hwlocality__helper__cpuset_ga95f116c4c0b1ff2c6418c16341fc2e57}{hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology)
\begin{DoxyCompactList}\small\item\em Get allowed C\+P\+U set. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{group__hwlocality__helper__cpuset_ga95f116c4c0b1ff2c6418c16341fc2e57}{\index{Cpuset Helpers@{Cpuset Helpers}!hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset}}
\index{hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset}!Cpuset Helpers@{Cpuset Helpers}}
\subsubsection[{hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+topology\+\_\+get\+\_\+allowed\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__cpuset_ga95f116c4c0b1ff2c6418c16341fc2e57}


Get allowed C\+P\+U set. 

\begin{DoxyReturn}{Returns}
the C\+P\+U set of allowed logical processors of the system. If the topology is the result of a combination of several systems, N\+U\+L\+L is returned.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The returned cpuset is not newly allocated and should thus not be changed or freed, hwloc\+\_\+cpuset\+\_\+dup must be used to obtain a local copy. 
\end{DoxyNote}


References hwloc\+\_\+obj\+::allowed\+\_\+cpuset, and hwloc\+\_\+get\+\_\+root\+\_\+obj().

\hypertarget{group__hwlocality__helper__cpuset_ga75f0ac3ac41e9915541c3ae3153a6e26}{\index{Cpuset Helpers@{Cpuset Helpers}!hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset}}
\index{hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset}!Cpuset Helpers@{Cpuset Helpers}}
\subsubsection[{hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__cpuset_ga75f0ac3ac41e9915541c3ae3153a6e26}


Get complete C\+P\+U set. 

\begin{DoxyReturn}{Returns}
the complete C\+P\+U set of logical processors of the system. If the topology is the result of a combination of several systems, N\+U\+L\+L is returned.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The returned cpuset is not newly allocated and should thus not be changed or freed; hwloc\+\_\+cpuset\+\_\+dup must be used to obtain a local copy. 
\end{DoxyNote}


References hwloc\+\_\+obj\+::complete\+\_\+cpuset, and hwloc\+\_\+get\+\_\+root\+\_\+obj().



Referenced by hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+bitmask(), hwloc\+\_\+cpuset\+\_\+from\+\_\+linux\+\_\+libnuma\+\_\+ulongs(), hwloc\+\_\+cuda\+\_\+get\+\_\+device\+\_\+cpuset(), hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset(), hwloc\+\_\+ibv\+\_\+get\+\_\+device\+\_\+cpuset(), and hwloc\+\_\+mx\+\_\+board\+\_\+get\+\_\+device\+\_\+cpuset().

\hypertarget{group__hwlocality__helper__cpuset_gad00abc77f1670049a5b2139471d0c8db}{\index{Cpuset Helpers@{Cpuset Helpers}!hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset}}
\index{hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset}!Cpuset Helpers@{Cpuset Helpers}}
\subsubsection[{hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+topology\+\_\+get\+\_\+online\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__cpuset_gad00abc77f1670049a5b2139471d0c8db}


Get online C\+P\+U set. 

\begin{DoxyReturn}{Returns}
the C\+P\+U set of online logical processors of the system. If the topology is the result of a combination of several systems, N\+U\+L\+L is returned.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The returned cpuset is not newly allocated and should thus not be changed or freed; hwloc\+\_\+cpuset\+\_\+dup must be used to obtain a local copy. 
\end{DoxyNote}


References hwloc\+\_\+get\+\_\+root\+\_\+obj(), and hwloc\+\_\+obj\+::online\+\_\+cpuset.

\hypertarget{group__hwlocality__helper__cpuset_ga4497338d1cbae6f8a6d68cb14234d5d8}{\index{Cpuset Helpers@{Cpuset Helpers}!hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset}}
\index{hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset@{hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset}!Cpuset Helpers@{Cpuset Helpers}}
\subsubsection[{hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline {\bf hwloc\+\_\+const\+\_\+cpuset\+\_\+t} \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+pure hwloc\+\_\+topology\+\_\+get\+\_\+topology\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t}}]{topology}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__helper__cpuset_ga4497338d1cbae6f8a6d68cb14234d5d8}


Get topology C\+P\+U set. 

\begin{DoxyReturn}{Returns}
the C\+P\+U set of logical processors of the system for which hwloc provides topology information. This is equivalent to the cpuset of the system object. If the topology is the result of a combination of several systems, N\+U\+L\+L is returned.
\end{DoxyReturn}
\begin{DoxyNote}{Note}
The returned cpuset is not newly allocated and should thus not be changed or freed; hwloc\+\_\+cpuset\+\_\+dup must be used to obtain a local copy. 
\end{DoxyNote}


References hwloc\+\_\+obj\+::cpuset, and hwloc\+\_\+get\+\_\+root\+\_\+obj().

