\hypertarget{group__hwlocality__cudart}{\section{C\+U\+D\+A Runtime A\+P\+I Specific Functions}
\label{group__hwlocality__cudart}\index{C\+U\+D\+A Runtime A\+P\+I Specific Functions@{C\+U\+D\+A Runtime A\+P\+I Specific Functions}}
}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
static \+\_\+\+\_\+hwloc\+\_\+inline int \hyperlink{group__hwlocality__cudart_ga2daaf1dd1a9a7f11ccbc6821374120e9}{hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset} (\hyperlink{group__hwlocality__topology_ga9d1e76ee15a7dee158b786c30b6a6e38}{hwloc\+\_\+topology\+\_\+t} topology \+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+unused, int device, \hyperlink{group__hwlocality__sets_ga4bbf39b68b6f568fb92739e7c0ea7801}{hwloc\+\_\+cpuset\+\_\+t} set)
\begin{DoxyCompactList}\small\item\em Get the C\+P\+U set of logical processors that are physically close to device {\ttfamily cudevice}. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}


\subsection{Function Documentation}
\hypertarget{group__hwlocality__cudart_ga2daaf1dd1a9a7f11ccbc6821374120e9}{\index{C\+U\+D\+A Runtime A\+P\+I Specific Functions@{C\+U\+D\+A Runtime A\+P\+I Specific Functions}!hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset@{hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset}}
\index{hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset@{hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset}!C\+U\+D\+A Runtime A\+P\+I Specific Functions@{C\+U\+D\+A Runtime A\+P\+I Specific Functions}}
\subsubsection[{hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset}]{\setlength{\rightskip}{0pt plus 5cm}static \+\_\+\+\_\+hwloc\+\_\+inline int hwloc\+\_\+cudart\+\_\+get\+\_\+device\+\_\+cpuset (
\begin{DoxyParamCaption}
\item[{{\bf hwloc\+\_\+topology\+\_\+t} topology}]{\+\_\+\+\_\+hwloc\+\_\+attribute\+\_\+unused, }
\item[{int}]{device, }
\item[{{\bf hwloc\+\_\+cpuset\+\_\+t}}]{set}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{group__hwlocality__cudart_ga2daaf1dd1a9a7f11ccbc6821374120e9}


Get the C\+P\+U set of logical processors that are physically close to device {\ttfamily cudevice}. 

For the given C\+U\+D\+A Runtime A\+P\+I device {\ttfamily cudevice}, read the corresponding kernel-\/provided cpumap file and return the corresponding C\+P\+U set. This function is currently only implemented in a meaningful way for Linux; other systems will simply get a full cpuset. 

References hwloc\+\_\+bitmap\+\_\+copy(), hwloc\+\_\+linux\+\_\+parse\+\_\+cpumap\+\_\+file(), and hwloc\+\_\+topology\+\_\+get\+\_\+complete\+\_\+cpuset().

