| 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): linux-libnuma.h Source File</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"> 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 id="nav-path" class="navpath"> |
| 43 |
<ul> |
| 44 |
<li class="navelem"><a href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a href="dir_5cb306d949c7931a3b6c77517393dd34.html">hwloc</a></li> </ul> |
| 45 |
</div> |
| 46 |
</div><!-- top --> |
| 47 |
<div id="doc-content"> |
| 48 |
<div class="header"> |
| 49 |
<div class="headertitle"><div class="title">linux-libnuma.h</div></div> |
| 50 |
</div><!--header--> |
| 51 |
<div class="contents"> |
| 52 |
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div> |
| 53 |
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div> |
| 54 |
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * Copyright © 2009 CNRS</span></div> |
| 55 |
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * Copyright © 2009-2023 Inria. All rights reserved.</span></div> |
| 56 |
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * Copyright © 2009-2010, 2012 Université Bordeaux</span></div> |
| 57 |
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * See COPYING in top-level directory.</span></div> |
| 58 |
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> */</span></div> |
| 59 |
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span></div> |
| 60 |
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span> </div> |
| 61 |
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="preprocessor">#ifndef HWLOC_LINUX_LIBNUMA_H</span></div> |
| 62 |
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#define HWLOC_LINUX_LIBNUMA_H</span></div> |
| 63 |
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span> </div> |
| 64 |
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include "hwloc.h"</span></div> |
| 65 |
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div> |
| 66 |
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include <numa.h></span></div> |
| 67 |
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span> </div> |
| 68 |
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span> </div> |
| 69 |
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#ifdef __cplusplus</span></div> |
| 70 |
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> |
| 71 |
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#endif</span></div> |
| 72 |
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span> </div> |
| 73 |
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span></div> |
| 74 |
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div> |
| 75 |
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span></div> |
| 76 |
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 77 |
<div class="foldopen" id="foldopen00061" data-start="{" data-end="}"> |
| 78 |
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"><a class="line" href="a00199.html#gad681f9d6a3d4b3c3bbd815e371d127e8"> 61</a></span><a class="code hl_function" href="a00199.html#gad681f9d6a3d4b3c3bbd815e371d127e8">hwloc_cpuset_to_linux_libnuma_ulongs</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga1f784433e9b606261f62d1134f6a3b25">hwloc_const_cpuset_t</a> cpuset,</div> |
| 79 |
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *mask, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *maxnode)</div> |
| 80 |
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span>{</div> |
| 81 |
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 82 |
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> outmaxnode = -1;</div> |
| 83 |
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 84 |
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> </div> |
| 85 |
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> <span class="comment">/* round-up to the next ulong and clear all bytes */</span></div> |
| 86 |
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> *maxnode = (*maxnode + 8*<span class="keyword">sizeof</span>(*mask) - 1) & ~(8*<span class="keyword">sizeof</span>(*mask) - 1);</div> |
| 87 |
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> memset(mask, 0, *maxnode/8);</div> |
| 88 |
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div> |
| 89 |
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00180.html#ga98c864a575327bfbfdb92b701e5069dd">hwloc_get_next_obj_covering_cpuset_by_depth</a>(topology, cpuset, depth, node)) != NULL) {</div> |
| 90 |
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordflow">if</span> (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> >= *maxnode)</div> |
| 91 |
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> <span class="keywordflow">continue</span>;</div> |
| 92 |
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> mask[node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>/<span class="keyword">sizeof</span>(*mask)/8] |= 1UL << (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> % (<span class="keyword">sizeof</span>(*mask)*8));</div> |
| 93 |
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> <span class="keywordflow">if</span> (outmaxnode == (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>) -1 || outmaxnode < node->os_index)</div> |
| 94 |
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> outmaxnode = node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>;</div> |
| 95 |
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> }</div> |
| 96 |
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div> |
| 97 |
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> *maxnode = outmaxnode+1;</div> |
| 98 |
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> <span class="keywordflow">return</span> 0;</div> |
| 99 |
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span>}</div> |
| 100 |
</div> |
| 101 |
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span></div> |
| 102 |
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 103 |
<div class="foldopen" id="foldopen00097" data-start="{" data-end="}"> |
| 104 |
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="a00199.html#ga01582d6806cf9d9a7f843b03f9b8ce56"> 97</a></span><a class="code hl_function" href="a00199.html#ga01582d6806cf9d9a7f843b03f9b8ce56">hwloc_nodeset_to_linux_libnuma_ulongs</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga2f5276235841ad66a79bedad16a5a10c">hwloc_const_nodeset_t</a> nodeset,</div> |
| 105 |
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *mask, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *maxnode)</div> |
| 106 |
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span>{</div> |
| 107 |
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 108 |
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> outmaxnode = -1;</div> |
| 109 |
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"> 102</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 110 |
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div> |
| 111 |
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="comment">/* round-up to the next ulong and clear all bytes */</span></div> |
| 112 |
<div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</span> *maxnode = (*maxnode + 8*<span class="keyword">sizeof</span>(*mask) - 1) & ~(8*<span class="keyword">sizeof</span>(*mask) - 1);</div> |
| 113 |
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> memset(mask, 0, *maxnode/8);</div> |
| 114 |
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div> |
| 115 |
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a>(topology, depth, node)) != NULL) {</div> |
| 116 |
<div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keywordflow">if</span> (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> >= *maxnode)</div> |
| 117 |
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> <span class="keywordflow">continue</span>;</div> |
| 118 |
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="a00188.html#ga11340dd487f110bb84f0a6e4ae90bd06">hwloc_bitmap_isset</a>(nodeset, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>))</div> |
| 119 |
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> <span class="keywordflow">continue</span>;</div> |
| 120 |
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> mask[node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>/<span class="keyword">sizeof</span>(*mask)/8] |= 1UL << (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> % (<span class="keyword">sizeof</span>(*mask)*8));</div> |
| 121 |
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> <span class="keywordflow">if</span> (outmaxnode == (<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>) -1 || outmaxnode < node->os_index)</div> |
| 122 |
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> outmaxnode = node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>;</div> |
| 123 |
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> }</div> |
| 124 |
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div> |
| 125 |
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> *maxnode = outmaxnode+1;</div> |
| 126 |
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keywordflow">return</span> 0;</div> |
| 127 |
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span>}</div> |
| 128 |
</div> |
| 129 |
<div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span></div> |
| 130 |
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 131 |
<div class="foldopen" id="foldopen00135" data-start="{" data-end="}"> |
| 132 |
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="a00199.html#gaacfe1849ef4b085666702bc882a47119"> 135</a></span><a class="code hl_function" href="a00199.html#gaacfe1849ef4b085666702bc882a47119">hwloc_cpuset_from_linux_libnuma_ulongs</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a> cpuset,</div> |
| 133 |
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *mask, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> maxnode)</div> |
| 134 |
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span>{</div> |
| 135 |
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 136 |
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 137 |
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> <a class="code hl_function" href="a00188.html#gaa97c5217613c8cae9862287170ea2132">hwloc_bitmap_zero</a>(cpuset);</div> |
| 138 |
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a>(topology, depth, node)) != NULL)</div> |
| 139 |
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keywordflow">if</span> (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> < maxnode</div> |
| 140 |
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> && (mask[node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>/<span class="keyword">sizeof</span>(*mask)/8] & (1UL << (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> % (<span class="keyword">sizeof</span>(*mask)*8)))))</div> |
| 141 |
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00188.html#ga120b8aefb9ce7ef349929656359b1859">hwloc_bitmap_or</a>(cpuset, cpuset, node-><a class="code hl_variable" href="a00224.html#a67925e0f2c47f50408fbdb9bddd0790f">cpuset</a>) < 0)</div> |
| 142 |
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordflow">return</span> -1;</div> |
| 143 |
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keywordflow">return</span> 0;</div> |
| 144 |
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span>}</div> |
| 145 |
</div> |
| 146 |
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span></div> |
| 147 |
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 148 |
<div class="foldopen" id="foldopen00162" data-start="{" data-end="}"> |
| 149 |
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="a00199.html#gad0b499b76557d4d2c535574c4e661efc"> 162</a></span><a class="code hl_function" href="a00199.html#gad0b499b76557d4d2c535574c4e661efc">hwloc_nodeset_from_linux_libnuma_ulongs</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga37e35730fa7e775b5bb0afe893d6d508">hwloc_nodeset_t</a> nodeset,</div> |
| 150 |
<div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *mask, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> maxnode)</div> |
| 151 |
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span>{</div> |
| 152 |
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 153 |
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"> 166</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 154 |
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <a class="code hl_function" href="a00188.html#gaa97c5217613c8cae9862287170ea2132">hwloc_bitmap_zero</a>(nodeset);</div> |
| 155 |
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a>(topology, depth, node)) != NULL)</div> |
| 156 |
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keywordflow">if</span> (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> < maxnode</div> |
| 157 |
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> && (mask[node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>/<span class="keyword">sizeof</span>(*mask)/8] & (1UL << (node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a> % (<span class="keyword">sizeof</span>(*mask)*8)))))</div> |
| 158 |
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00188.html#ga062dbff93baeff3b425a7260c5463646">hwloc_bitmap_set</a>(nodeset, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>) < 0)</div> |
| 159 |
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="keywordflow">return</span> -1;</div> |
| 160 |
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> <span class="keywordflow">return</span> 0;</div> |
| 161 |
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span>}</div> |
| 162 |
</div> |
| 163 |
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span></div> |
| 164 |
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> </div> |
| 165 |
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div> |
| 166 |
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span></div> |
| 167 |
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div> |
| 168 |
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span></div> |
| 169 |
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span><span class="keyword">static</span> __hwloc_inline <span class="keyword">struct </span>bitmask *</div> |
| 170 |
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span><a class="code hl_function" href="a00200.html#ga2511974d8ace16203a42c64584ce010d">hwloc_cpuset_to_linux_libnuma_bitmask</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga1f784433e9b606261f62d1134f6a3b25">hwloc_const_cpuset_t</a> cpuset) __hwloc_attribute_malloc;</div> |
| 171 |
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span><span class="keyword">static</span> __hwloc_inline <span class="keyword">struct </span>bitmask *</div> |
| 172 |
<div class="foldopen" id="foldopen00211" data-start="{" data-end="}"> |
| 173 |
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="a00200.html#ga2511974d8ace16203a42c64584ce010d"> 211</a></span><a class="code hl_function" href="a00200.html#ga2511974d8ace16203a42c64584ce010d">hwloc_cpuset_to_linux_libnuma_bitmask</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga1f784433e9b606261f62d1134f6a3b25">hwloc_const_cpuset_t</a> cpuset)</div> |
| 174 |
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span>{</div> |
| 175 |
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 176 |
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 177 |
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> <span class="keyword">struct </span>bitmask *bitmask = numa_allocate_cpumask();</div> |
| 178 |
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> <span class="keywordflow">if</span> (!bitmask)</div> |
| 179 |
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> <span class="keywordflow">return</span> NULL;</div> |
| 180 |
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00180.html#ga98c864a575327bfbfdb92b701e5069dd">hwloc_get_next_obj_covering_cpuset_by_depth</a>(topology, cpuset, depth, node)) != NULL)</div> |
| 181 |
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> <span class="keywordflow">if</span> (node-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#ad066b9612802ffa01e132dc3a8e6cc86">numanode</a>.<a class="code hl_variable" href="a00232.html#a6703cbf2afbf63c9d60c5ff4dc0c73aa">local_memory</a>)</div> |
| 182 |
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> numa_bitmask_setbit(bitmask, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>);</div> |
| 183 |
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> <span class="keywordflow">return</span> bitmask;</div> |
| 184 |
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span>}</div> |
| 185 |
</div> |
| 186 |
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span></div> |
| 187 |
<div class="line"><a id="l00233" name="l00233"></a><span class="lineno"> 233</span><span class="keyword">static</span> __hwloc_inline <span class="keyword">struct </span>bitmask *</div> |
| 188 |
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"> 234</span><a class="code hl_function" href="a00200.html#gaff816fe5f4ca66b3c850a8b7787b805d">hwloc_nodeset_to_linux_libnuma_bitmask</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga2f5276235841ad66a79bedad16a5a10c">hwloc_const_nodeset_t</a> nodeset) __hwloc_attribute_malloc;</div> |
| 189 |
<div class="line"><a id="l00235" name="l00235"></a><span class="lineno"> 235</span><span class="keyword">static</span> __hwloc_inline <span class="keyword">struct </span>bitmask *</div> |
| 190 |
<div class="foldopen" id="foldopen00236" data-start="{" data-end="}"> |
| 191 |
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="a00200.html#gaff816fe5f4ca66b3c850a8b7787b805d"> 236</a></span><a class="code hl_function" href="a00200.html#gaff816fe5f4ca66b3c850a8b7787b805d">hwloc_nodeset_to_linux_libnuma_bitmask</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga2f5276235841ad66a79bedad16a5a10c">hwloc_const_nodeset_t</a> nodeset)</div> |
| 192 |
<div class="line"><a id="l00237" name="l00237"></a><span class="lineno"> 237</span>{</div> |
| 193 |
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"> 238</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 194 |
<div class="line"><a id="l00239" name="l00239"></a><span class="lineno"> 239</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 195 |
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"> 240</span> <span class="keyword">struct </span>bitmask *bitmask = numa_allocate_cpumask();</div> |
| 196 |
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> <span class="keywordflow">if</span> (!bitmask)</div> |
| 197 |
<div class="line"><a id="l00242" name="l00242"></a><span class="lineno"> 242</span> <span class="keywordflow">return</span> NULL;</div> |
| 198 |
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a>(topology, depth, node)) != NULL)</div> |
| 199 |
<div class="line"><a id="l00244" name="l00244"></a><span class="lineno"> 244</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00188.html#ga11340dd487f110bb84f0a6e4ae90bd06">hwloc_bitmap_isset</a>(nodeset, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>) && node-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#ad066b9612802ffa01e132dc3a8e6cc86">numanode</a>.<a class="code hl_variable" href="a00232.html#a6703cbf2afbf63c9d60c5ff4dc0c73aa">local_memory</a>)</div> |
| 200 |
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"> 245</span> numa_bitmask_setbit(bitmask, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>);</div> |
| 201 |
<div class="line"><a id="l00246" name="l00246"></a><span class="lineno"> 246</span> <span class="keywordflow">return</span> bitmask;</div> |
| 202 |
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"> 247</span>}</div> |
| 203 |
</div> |
| 204 |
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span></div> |
| 205 |
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 206 |
<div class="foldopen" id="foldopen00258" data-start="{" data-end="}"> |
| 207 |
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"><a class="line" href="a00200.html#ga7ae208f867a96ba68bee45f277b8b8c3"> 258</a></span><a class="code hl_function" href="a00200.html#ga7ae208f867a96ba68bee45f277b8b8c3">hwloc_cpuset_from_linux_libnuma_bitmask</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a> cpuset,</div> |
| 208 |
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> <span class="keyword">const</span> <span class="keyword">struct</span> bitmask *bitmask)</div> |
| 209 |
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span>{</div> |
| 210 |
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 211 |
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 212 |
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <a class="code hl_function" href="a00188.html#gaa97c5217613c8cae9862287170ea2132">hwloc_bitmap_zero</a>(cpuset);</div> |
| 213 |
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a>(topology, depth, node)) != NULL)</div> |
| 214 |
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">if</span> (numa_bitmask_isbitset(bitmask, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>))</div> |
| 215 |
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00188.html#ga120b8aefb9ce7ef349929656359b1859">hwloc_bitmap_or</a>(cpuset, cpuset, node-><a class="code hl_variable" href="a00224.html#a67925e0f2c47f50408fbdb9bddd0790f">cpuset</a>) < 0)</div> |
| 216 |
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordflow">return</span> -1;</div> |
| 217 |
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="keywordflow">return</span> 0;</div> |
| 218 |
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span>}</div> |
| 219 |
</div> |
| 220 |
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span></div> |
| 221 |
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 222 |
<div class="foldopen" id="foldopen00280" data-start="{" data-end="}"> |
| 223 |
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"><a class="line" href="a00200.html#ga605c3fbbbee114a6c7d0606849be97fa"> 280</a></span><a class="code hl_function" href="a00200.html#ga605c3fbbbee114a6c7d0606849be97fa">hwloc_nodeset_from_linux_libnuma_bitmask</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, <a class="code hl_typedef" href="a00166.html#ga37e35730fa7e775b5bb0afe893d6d508">hwloc_nodeset_t</a> nodeset,</div> |
| 224 |
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <span class="keyword">const</span> <span class="keyword">struct</span> bitmask *bitmask)</div> |
| 225 |
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span>{</div> |
| 226 |
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> <span class="keywordtype">int</span> depth = <a class="code hl_function" href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a>(topology, <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a>);</div> |
| 227 |
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> node = NULL;</div> |
| 228 |
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> <a class="code hl_function" href="a00188.html#gaa97c5217613c8cae9862287170ea2132">hwloc_bitmap_zero</a>(nodeset);</div> |
| 229 |
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> <span class="keywordflow">while</span> ((node = <a class="code hl_function" href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a>(topology, depth, node)) != NULL)</div> |
| 230 |
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keywordflow">if</span> (numa_bitmask_isbitset(bitmask, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>))</div> |
| 231 |
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00188.html#ga062dbff93baeff3b425a7260c5463646">hwloc_bitmap_set</a>(nodeset, node-><a class="code hl_variable" href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">os_index</a>) < 0)</div> |
| 232 |
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="keywordflow">return</span> -1;</div> |
| 233 |
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> <span class="keywordflow">return</span> 0;</div> |
| 234 |
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span>}</div> |
| 235 |
</div> |
| 236 |
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span></div> |
| 237 |
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> </div> |
| 238 |
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> </div> |
| 239 |
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span><span class="preprocessor">#ifdef __cplusplus</span></div> |
| 240 |
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span>} <span class="comment">/* extern "C" */</span></div> |
| 241 |
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span><span class="preprocessor">#endif</span></div> |
| 242 |
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> </div> |
| 243 |
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span> </div> |
| 244 |
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span><span class="preprocessor">#endif </span><span class="comment">/* HWLOC_LINUX_NUMA_H */</span><span class="preprocessor"></span></div> |
| 245 |
<div class="ttc" id="aa00166_html_ga1f784433e9b606261f62d1134f6a3b25"><div class="ttname"><a href="a00166.html#ga1f784433e9b606261f62d1134f6a3b25">hwloc_const_cpuset_t</a></div><div class="ttdeci">hwloc_const_bitmap_t hwloc_const_cpuset_t</div><div class="ttdoc">A non-modifiable hwloc_cpuset_t.</div><div class="ttdef"><b>Definition</b> hwloc.h:167</div></div> |
| 246 |
<div class="ttc" id="aa00166_html_ga2f5276235841ad66a79bedad16a5a10c"><div class="ttname"><a href="a00166.html#ga2f5276235841ad66a79bedad16a5a10c">hwloc_const_nodeset_t</a></div><div class="ttdeci">hwloc_const_bitmap_t hwloc_const_nodeset_t</div><div class="ttdoc">A non-modifiable hwloc_nodeset_t.</div><div class="ttdef"><b>Definition</b> hwloc.h:186</div></div> |
| 247 |
<div class="ttc" id="aa00166_html_ga37e35730fa7e775b5bb0afe893d6d508"><div class="ttname"><a href="a00166.html#ga37e35730fa7e775b5bb0afe893d6d508">hwloc_nodeset_t</a></div><div class="ttdeci">hwloc_bitmap_t hwloc_nodeset_t</div><div class="ttdoc">A node set is a bitmap whose bits are set according to NUMA memory node physical OS indexes.</div><div class="ttdef"><b>Definition</b> hwloc.h:183</div></div> |
| 248 |
<div class="ttc" id="aa00166_html_ga4bbf39b68b6f568fb92739e7c0ea7801"><div class="ttname"><a href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a></div><div class="ttdeci">hwloc_bitmap_t hwloc_cpuset_t</div><div class="ttdoc">A CPU set is a bitmap whose bits are set according to CPU physical OS indexes.</div><div class="ttdef"><b>Definition</b> hwloc.h:165</div></div> |
| 249 |
<div class="ttc" id="aa00167_html_ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a"><div class="ttname"><a href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a9d917a3e5497950c6d8948b8e183db5a">HWLOC_OBJ_NUMANODE</a></div><div class="ttdeci">@ HWLOC_OBJ_NUMANODE</div><div class="ttdoc">NUMA node. An object that contains memory that is directly and byte-accessible to the host processors...</div><div class="ttdef"><b>Definition</b> hwloc.h:262</div></div> |
| 250 |
<div class="ttc" id="aa00168_html_ga79b8ab56877ef99ac59b833203391c7d"><div class="ttname"><a href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a></div><div class="ttdeci">struct hwloc_obj * hwloc_obj_t</div><div class="ttdoc">Convenience typedef; a pointer to a struct hwloc_obj.</div><div class="ttdef"><b>Definition</b> hwloc.h:637</div></div> |
| 251 |
<div class="ttc" id="aa00169_html_ga9d1e76ee15a7dee158b786c30b6a6e38"><div class="ttname"><a href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a></div><div class="ttdeci">struct hwloc_topology * hwloc_topology_t</div><div class="ttdoc">Topology context.</div><div class="ttdef"><b>Definition</b> hwloc.h:748</div></div> |
| 252 |
<div class="ttc" id="aa00170_html_ga77627ae88797cb15344ae32cf0298820"><div class="ttname"><a href="a00170.html#ga77627ae88797cb15344ae32cf0298820">hwloc_get_next_obj_by_depth</a></div><div class="ttdeci">hwloc_obj_t hwloc_get_next_obj_by_depth(hwloc_topology_t topology, int depth, hwloc_obj_t prev)</div><div class="ttdoc">Returns the next object at depth depth.</div></div> |
| 253 |
<div class="ttc" id="aa00170_html_ga8bec782e21be313750da70cf7428b374"><div class="ttname"><a href="a00170.html#ga8bec782e21be313750da70cf7428b374">hwloc_get_type_depth</a></div><div class="ttdeci">int hwloc_get_type_depth(hwloc_topology_t topology, hwloc_obj_type_t type)</div><div class="ttdoc">Returns the depth of objects of type type.</div></div> |
| 254 |
<div class="ttc" id="aa00180_html_ga98c864a575327bfbfdb92b701e5069dd"><div class="ttname"><a href="a00180.html#ga98c864a575327bfbfdb92b701e5069dd">hwloc_get_next_obj_covering_cpuset_by_depth</a></div><div class="ttdeci">hwloc_obj_t hwloc_get_next_obj_covering_cpuset_by_depth(hwloc_topology_t topology, hwloc_const_cpuset_t set, int depth, hwloc_obj_t prev)</div><div class="ttdoc">Iterate through same-depth objects covering at least CPU set set.</div><div class="ttdef"><b>Definition</b> helper.h:429</div></div> |
| 255 |
<div class="ttc" id="aa00188_html_ga062dbff93baeff3b425a7260c5463646"><div class="ttname"><a href="a00188.html#ga062dbff93baeff3b425a7260c5463646">hwloc_bitmap_set</a></div><div class="ttdeci">int hwloc_bitmap_set(hwloc_bitmap_t bitmap, unsigned id)</div><div class="ttdoc">Add index id in bitmap bitmap.</div></div> |
| 256 |
<div class="ttc" id="aa00188_html_ga11340dd487f110bb84f0a6e4ae90bd06"><div class="ttname"><a href="a00188.html#ga11340dd487f110bb84f0a6e4ae90bd06">hwloc_bitmap_isset</a></div><div class="ttdeci">int hwloc_bitmap_isset(hwloc_const_bitmap_t bitmap, unsigned id)</div><div class="ttdoc">Test whether index id is part of bitmap bitmap.</div></div> |
| 257 |
<div class="ttc" id="aa00188_html_ga120b8aefb9ce7ef349929656359b1859"><div class="ttname"><a href="a00188.html#ga120b8aefb9ce7ef349929656359b1859">hwloc_bitmap_or</a></div><div class="ttdeci">int hwloc_bitmap_or(hwloc_bitmap_t res, hwloc_const_bitmap_t bitmap1, hwloc_const_bitmap_t bitmap2)</div><div class="ttdoc">Or bitmaps bitmap1 and bitmap2 and store the result in bitmap res.</div></div> |
| 258 |
<div class="ttc" id="aa00188_html_gaa97c5217613c8cae9862287170ea2132"><div class="ttname"><a href="a00188.html#gaa97c5217613c8cae9862287170ea2132">hwloc_bitmap_zero</a></div><div class="ttdeci">void hwloc_bitmap_zero(hwloc_bitmap_t bitmap)</div><div class="ttdoc">Empty the bitmap bitmap.</div></div> |
| 259 |
<div class="ttc" id="aa00199_html_ga01582d6806cf9d9a7f843b03f9b8ce56"><div class="ttname"><a href="a00199.html#ga01582d6806cf9d9a7f843b03f9b8ce56">hwloc_nodeset_to_linux_libnuma_ulongs</a></div><div class="ttdeci">int hwloc_nodeset_to_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_const_nodeset_t nodeset, unsigned long *mask, unsigned long *maxnode)</div><div class="ttdoc">Convert hwloc NUMA node set nodeset into the array of unsigned long mask.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:97</div></div> |
| 260 |
<div class="ttc" id="aa00199_html_gaacfe1849ef4b085666702bc882a47119"><div class="ttname"><a href="a00199.html#gaacfe1849ef4b085666702bc882a47119">hwloc_cpuset_from_linux_libnuma_ulongs</a></div><div class="ttdeci">int hwloc_cpuset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_cpuset_t cpuset, const unsigned long *mask, unsigned long maxnode)</div><div class="ttdoc">Convert the array of unsigned long mask into hwloc CPU set.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:135</div></div> |
| 261 |
<div class="ttc" id="aa00199_html_gad0b499b76557d4d2c535574c4e661efc"><div class="ttname"><a href="a00199.html#gad0b499b76557d4d2c535574c4e661efc">hwloc_nodeset_from_linux_libnuma_ulongs</a></div><div class="ttdeci">int hwloc_nodeset_from_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_nodeset_t nodeset, const unsigned long *mask, unsigned long maxnode)</div><div class="ttdoc">Convert the array of unsigned long mask into hwloc NUMA node set.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:162</div></div> |
| 262 |
<div class="ttc" id="aa00199_html_gad681f9d6a3d4b3c3bbd815e371d127e8"><div class="ttname"><a href="a00199.html#gad681f9d6a3d4b3c3bbd815e371d127e8">hwloc_cpuset_to_linux_libnuma_ulongs</a></div><div class="ttdeci">int hwloc_cpuset_to_linux_libnuma_ulongs(hwloc_topology_t topology, hwloc_const_cpuset_t cpuset, unsigned long *mask, unsigned long *maxnode)</div><div class="ttdoc">Convert hwloc CPU set cpuset into the array of unsigned long mask.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:61</div></div> |
| 263 |
<div class="ttc" id="aa00200_html_ga2511974d8ace16203a42c64584ce010d"><div class="ttname"><a href="a00200.html#ga2511974d8ace16203a42c64584ce010d">hwloc_cpuset_to_linux_libnuma_bitmask</a></div><div class="ttdeci">struct bitmask * hwloc_cpuset_to_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_const_cpuset_t cpuset)</div><div class="ttdoc">Convert hwloc CPU set cpuset into the returned libnuma bitmask.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:211</div></div> |
| 264 |
<div class="ttc" id="aa00200_html_ga605c3fbbbee114a6c7d0606849be97fa"><div class="ttname"><a href="a00200.html#ga605c3fbbbee114a6c7d0606849be97fa">hwloc_nodeset_from_linux_libnuma_bitmask</a></div><div class="ttdeci">int hwloc_nodeset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_nodeset_t nodeset, const struct bitmask *bitmask)</div><div class="ttdoc">Convert libnuma bitmask bitmask into hwloc NUMA node set nodeset.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:280</div></div> |
| 265 |
<div class="ttc" id="aa00200_html_ga7ae208f867a96ba68bee45f277b8b8c3"><div class="ttname"><a href="a00200.html#ga7ae208f867a96ba68bee45f277b8b8c3">hwloc_cpuset_from_linux_libnuma_bitmask</a></div><div class="ttdeci">int hwloc_cpuset_from_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_cpuset_t cpuset, const struct bitmask *bitmask)</div><div class="ttdoc">Convert libnuma bitmask bitmask into hwloc CPU set cpuset.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:258</div></div> |
| 266 |
<div class="ttc" id="aa00200_html_gaff816fe5f4ca66b3c850a8b7787b805d"><div class="ttname"><a href="a00200.html#gaff816fe5f4ca66b3c850a8b7787b805d">hwloc_nodeset_to_linux_libnuma_bitmask</a></div><div class="ttdeci">struct bitmask * hwloc_nodeset_to_linux_libnuma_bitmask(hwloc_topology_t topology, hwloc_const_nodeset_t nodeset)</div><div class="ttdoc">Convert hwloc NUMA node set nodeset into the returned libnuma bitmask.</div><div class="ttdef"><b>Definition</b> linux-libnuma.h:236</div></div> |
| 267 |
<div class="ttc" id="aa00224_html_a61a7a80a68eaccbaaa28269e678c81a9"><div class="ttname"><a href="a00224.html#a61a7a80a68eaccbaaa28269e678c81a9">hwloc_obj::os_index</a></div><div class="ttdeci">unsigned os_index</div><div class="ttdoc">OS-provided physical index number. It is not guaranteed unique across the entire machine,...</div><div class="ttdef"><b>Definition</b> hwloc.h:442</div></div> |
| 268 |
<div class="ttc" id="aa00224_html_a67925e0f2c47f50408fbdb9bddd0790f"><div class="ttname"><a href="a00224.html#a67925e0f2c47f50408fbdb9bddd0790f">hwloc_obj::cpuset</a></div><div class="ttdeci">hwloc_cpuset_t cpuset</div><div class="ttdoc">CPUs covered by this object.</div><div class="ttdef"><b>Definition</b> hwloc.h:553</div></div> |
| 269 |
<div class="ttc" id="aa00224_html_accd40e29f71f19e88db62ea3df02adc8"><div class="ttname"><a href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">hwloc_obj::attr</a></div><div class="ttdeci">union hwloc_obj_attr_u * attr</div><div class="ttdoc">Object type-specific Attributes, may be NULL if no attribute value was found.</div><div class="ttdef"><b>Definition</b> hwloc.h:456</div></div> |
| 270 |
<div class="ttc" id="aa00228_html_ad066b9612802ffa01e132dc3a8e6cc86"><div class="ttname"><a href="a00228.html#ad066b9612802ffa01e132dc3a8e6cc86">hwloc_obj_attr_u::numanode</a></div><div class="ttdeci">struct hwloc_obj_attr_u::hwloc_numanode_attr_s numanode</div></div> |
| 271 |
<div class="ttc" id="aa00232_html_a6703cbf2afbf63c9d60c5ff4dc0c73aa"><div class="ttname"><a href="a00232.html#a6703cbf2afbf63c9d60c5ff4dc0c73aa">hwloc_obj_attr_u::hwloc_numanode_attr_s::local_memory</a></div><div class="ttdeci">hwloc_uint64_t local_memory</div><div class="ttdoc">Local memory (in bytes).</div><div class="ttdef"><b>Definition</b> hwloc.h:643</div></div> |
| 272 |
</div><!-- fragment --></div><!-- contents --> |
| 273 |
<!-- start footer part --> |
| 274 |
<hr class="footer"/><address class="footer"><small> |
| 275 |
Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.15.0 |
| 276 |
</small></address> |
| 277 |
</div><!-- doc-content --> |
| 278 |
</body> |
| 279 |
</html> |