Debian Codegraph @

doc/doxygen-doc/html/a00206.html

raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
3 <head>
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <meta http-equiv="X-UA-Compatible" content="IE=11"/>
6 <meta name="generator" content="Doxygen 1.15.0"/>
7 <meta name="viewport" content="width=device-width, initial-scale=1"/>
8 <title>Hardware Locality (hwloc): Interoperability with the NVIDIA Management Library</title>
9 <link href="tabs.css" rel="stylesheet" type="text/css"/>
10 <script type="text/javascript" src="jquery.js"></script>
11 <script type="text/javascript" src="dynsections.js"></script>
12 <script type="text/javascript" src="clipboard.js"></script>
13 <link href="doxygen.css" rel="stylesheet" type="text/css" />
14 </head>
15 <body>
16 <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
17 <div id="titlearea">
18 <table cellspacing="0" cellpadding="0">
19 <tbody>
20 <tr id="projectrow">
21 <td id="projectalign">
22 <div id="projectname">Hardware Locality (hwloc)<span id="projectnumber">&#160;2.14.0</span>
23 </div>
24 </td>
25 </tr>
26 </tbody>
27 </table>
28 </div>
29 <!-- end header part -->
30 <!-- Generated by Doxygen 1.15.0 -->
31 <script type="text/javascript">
32 $(function() { codefold.init(); });
33 </script>
34 <script type="text/javascript" src="menudata.js"></script>
35 <script type="text/javascript" src="menu.js"></script>
36 <script type="text/javascript">
37 $(function() {
38 initMenu('',false,false,'search.php','Search',false);
39 });
40 </script>
41 <div id="main-nav"></div>
42 </div><!-- top -->
43 <div id="doc-content">
44 <div class="header">
45 <div class="summary">
46 <a href="#func-members">Functions</a> </div>
47 <div class="headertitle"><div class="title">Interoperability with the NVIDIA Management Library </div></div>
48 </div><!--header-->
49 <div class="contents">
50 <table class="memberdecls">
51 <tr class="heading"><td colspan="2"><h2 id="header-func-members" class="groupheader"><a id="func-members" name="func-members"></a>
52 Functions</h2></td></tr>
53 <tr class="memitem:gaad455019ab82cc36ec0c27d6d31d760c" id="r_gaad455019ab82cc36ec0c27d6d31d760c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gaad455019ab82cc36ec0c27d6d31d760c">hwloc_nvml_get_device_cpuset</a> (<a class="el" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, nvmlDevice_t device, <a class="el" href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a> set)</td></tr>
54 <tr class="memitem:gaf2ff5cb6760289199d3b9947ae662a80" id="r_gaf2ff5cb6760289199d3b9947ae662a80"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#gaf2ff5cb6760289199d3b9947ae662a80">hwloc_nvml_get_device_osdev_by_index</a> (<a class="el" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, unsigned idx)</td></tr>
55 <tr class="memitem:ga938521c26b11604303192f9409e44932" id="r_ga938521c26b11604303192f9409e44932"><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ga938521c26b11604303192f9409e44932">hwloc_nvml_get_device_osdev</a> (<a class="el" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, nvmlDevice_t device)</td></tr>
56 </table>
57 <a name="details" id="details"></a><h2 id="header-details" class="groupheader">Detailed Description</h2>
58 <p>This interface offers ways to retrieve topology information about devices managed by the NVIDIA Management Library (NVML). </p>
59 <a name="doc-func-members" id="doc-func-members"></a><h2 id="header-doc-func-members" class="groupheader">Function Documentation</h2>
60 <a id="gaad455019ab82cc36ec0c27d6d31d760c" name="gaad455019ab82cc36ec0c27d6d31d760c"></a>
61 <h2 class="memtitle"><span class="permalink"><a href="#gaad455019ab82cc36ec0c27d6d31d760c">&#9670;&#160;</a></span>hwloc_nvml_get_device_cpuset()</h2>
62
63 <div class="memitem">
64 <div class="memproto">
65 <table class="mlabels">
66 <tr>
67 <td class="mlabels-left">
68 <table class="memname">
69 <tr>
70 <td class="memname">int hwloc_nvml_get_device_cpuset </td>
71 <td>(</td>
72 <td class="paramtype"><a class="el" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a></td> <td class="paramname"><span class="paramname"><em>topology</em></span>, </td>
73 </tr>
74 <tr>
75 <td class="paramkey"></td>
76 <td></td>
77 <td class="paramtype">nvmlDevice_t</td> <td class="paramname"><span class="paramname"><em>device</em></span>, </td>
78 </tr>
79 <tr>
80 <td class="paramkey"></td>
81 <td></td>
82 <td class="paramtype"><a class="el" href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a></td> <td class="paramname"><span class="paramname"><em>set</em></span>&#160;)</td>
83 </tr>
84 </table>
85 </td>
86 <td class="mlabels-right">
87 <span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
88 </tr>
89 </table>
90 </div><div class="memdoc">
91
92 <p>Get the CPU set of processors that are physically close to NVML device <code class="param">device</code>. </p>
93 <p>Store in <code class="param">set</code> the CPU-set describing the locality of the NVML device <code class="param">device</code>.</p>
94 <p>Topology <code class="param">topology</code> and device <code class="param">device</code> must match the local machine. I/O devices detection and the NVML component are not needed in the topology.</p>
95 <p>The function only returns the locality of the device. If more information about the device is needed, OS objects should be used instead, see <a class="el" href="#ga938521c26b11604303192f9409e44932" title="Get the hwloc OS device object corresponding to NVML device device.">hwloc_nvml_get_device_osdev()</a> and <a class="el" href="#gaf2ff5cb6760289199d3b9947ae662a80" title="Get the hwloc OS device object corresponding to the NVML device whose index is idx.">hwloc_nvml_get_device_osdev_by_index()</a>.</p>
96 <p>This function is currently only implemented in a meaningful way for Linux; other systems will simply get the cpuset of the entire topology.</p>
97 <dl class="section return"><dt>Returns</dt><dd>0 on success. </dd>
98 <dd>
99 -1 on error, for instance if device information could not be found. </dd></dl>
100
101 </div>
102 </div>
103 <a id="ga938521c26b11604303192f9409e44932" name="ga938521c26b11604303192f9409e44932"></a>
104 <h2 class="memtitle"><span class="permalink"><a href="#ga938521c26b11604303192f9409e44932">&#9670;&#160;</a></span>hwloc_nvml_get_device_osdev()</h2>
105
106 <div class="memitem">
107 <div class="memproto">
108 <table class="mlabels">
109 <tr>
110 <td class="mlabels-left">
111 <table class="memname">
112 <tr>
113 <td class="memname"><a class="el" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> hwloc_nvml_get_device_osdev </td>
114 <td>(</td>
115 <td class="paramtype"><a class="el" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a></td> <td class="paramname"><span class="paramname"><em>topology</em></span>, </td>
116 </tr>
117 <tr>
118 <td class="paramkey"></td>
119 <td></td>
120 <td class="paramtype">nvmlDevice_t</td> <td class="paramname"><span class="paramname"><em>device</em></span>&#160;)</td>
121 </tr>
122 </table>
123 </td>
124 <td class="mlabels-right">
125 <span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
126 </tr>
127 </table>
128 </div><div class="memdoc">
129
130 <p>Get the hwloc OS device object corresponding to NVML device <code class="param">device</code>. </p>
131 <dl class="section return"><dt>Returns</dt><dd>The hwloc OS device object that describes the given NVML device <code class="param">device</code>. </dd>
132 <dd>
133 <code>NULL</code> if none could be found.</dd></dl>
134 <p>Topology <code class="param">topology</code> and device <code class="param">device</code> must match the local machine. I/O devices detection and the NVML component must be enabled in the topology. If not, the locality of the object may still be found using <a class="el" href="#gaad455019ab82cc36ec0c27d6d31d760c" title="Get the CPU set of processors that are physically close to NVML device device.">hwloc_nvml_get_device_cpuset()</a>.</p>
135 <dl class="section note"><dt>Note</dt><dd>The corresponding hwloc PCI device may be found by looking at the result parent pointer (unless PCI devices are filtered out). </dd></dl>
136
137 </div>
138 </div>
139 <a id="gaf2ff5cb6760289199d3b9947ae662a80" name="gaf2ff5cb6760289199d3b9947ae662a80"></a>
140 <h2 class="memtitle"><span class="permalink"><a href="#gaf2ff5cb6760289199d3b9947ae662a80">&#9670;&#160;</a></span>hwloc_nvml_get_device_osdev_by_index()</h2>
141
142 <div class="memitem">
143 <div class="memproto">
144 <table class="mlabels">
145 <tr>
146 <td class="mlabels-left">
147 <table class="memname">
148 <tr>
149 <td class="memname"><a class="el" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> hwloc_nvml_get_device_osdev_by_index </td>
150 <td>(</td>
151 <td class="paramtype"><a class="el" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a></td> <td class="paramname"><span class="paramname"><em>topology</em></span>, </td>
152 </tr>
153 <tr>
154 <td class="paramkey"></td>
155 <td></td>
156 <td class="paramtype">unsigned</td> <td class="paramname"><span class="paramname"><em>idx</em></span>&#160;)</td>
157 </tr>
158 </table>
159 </td>
160 <td class="mlabels-right">
161 <span class="mlabels"><span class="mlabel inline">inline</span></span> </td>
162 </tr>
163 </table>
164 </div><div class="memdoc">
165
166 <p>Get the hwloc OS device object corresponding to the NVML device whose index is <code class="param">idx</code>. </p>
167 <dl class="section return"><dt>Returns</dt><dd>The hwloc OS device object describing the NVML device whose index is <code class="param">idx</code>. </dd>
168 <dd>
169 <code>NULL</code> if none could be found.</dd></dl>
170 <p>The topology <code class="param">topology</code> does not necessarily have to match the current machine. For instance the topology may be an XML import of a remote host. I/O devices detection and the NVML component must be enabled in the topology.</p>
171 <dl class="section note"><dt>Note</dt><dd>The corresponding PCI device object can be obtained by looking at the OS device parent object (unless PCI devices are filtered out). </dd></dl>
172
173 </div>
174 </div>
175 </div><!-- contents -->
176 <!-- start footer part -->
177 <hr class="footer"/><address class="footer"><small>
178 Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.15.0
179 </small></address>
180 </div><!-- doc-content -->
181 </body>
182 </html>