| 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): levelzero.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">levelzero.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 © 2021-2026 Inria. All rights reserved.</span></div> |
| 55 |
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * See COPYING in top-level directory.</span></div> |
| 56 |
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> */</span></div> |
| 57 |
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span></div> |
| 58 |
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span> </div> |
| 59 |
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="preprocessor">#ifndef HWLOC_LEVELZERO_H</span></div> |
| 60 |
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="preprocessor">#define HWLOC_LEVELZERO_H</span></div> |
| 61 |
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span> </div> |
| 62 |
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="preprocessor">#include "hwloc.h"</span></div> |
| 63 |
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="preprocessor">#include "hwloc/autogen/config.h"</span></div> |
| 64 |
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="preprocessor">#include "hwloc/helper.h"</span></div> |
| 65 |
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#ifdef HWLOC_LINUX_SYS</span></div> |
| 66 |
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#include "hwloc/linux.h"</span></div> |
| 67 |
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#endif</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">#include <level_zero/ze_api.h></span></div> |
| 70 |
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include <level_zero/zes_api.h></span></div> |
| 71 |
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</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><span class="preprocessor">#ifdef __cplusplus</span></div> |
| 74 |
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {</div> |
| 75 |
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#endif</span></div> |
| 76 |
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div> |
| 77 |
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span></div> |
| 78 |
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span></div> |
| 79 |
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 80 |
<div class="foldopen" id="foldopen00067" data-start="{" data-end="}"> |
| 81 |
<div class="line"><a id="l00067" name="l00067"></a><span class="lineno"><a class="line" href="a00209.html#gac99688cac5174738d9cf8284dda8b769"> 67</a></span><a class="code hl_function" href="a00209.html#gac99688cac5174738d9cf8284dda8b769">hwloc_levelzero_get_device_cpuset</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology __hwloc_attribute_unused,</div> |
| 82 |
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> ze_device_handle_t device, <a class="code hl_typedef" href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a> set)</div> |
| 83 |
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span>{</div> |
| 84 |
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span><span class="preprocessor">#ifdef HWLOC_LINUX_SYS</span></div> |
| 85 |
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> <span class="comment">/* If we're on Linux, use the sysfs mechanism to get the local cpus */</span></div> |
| 86 |
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span><span class="preprocessor">#define HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX 128</span></div> |
| 87 |
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keywordtype">char</span> path[HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX];</div> |
| 88 |
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> ze_pci_ext_properties_t pci;</div> |
| 89 |
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> ze_result_t res;</div> |
| 90 |
<div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div> |
| 91 |
<div class="line"><a id="l00077" name="l00077"></a><span class="lineno"> 77</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="a00176.html#ga68ffdcfd9175cdf40709801092f18017">hwloc_topology_is_thissystem</a>(topology)) {</div> |
| 92 |
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> errno = EINVAL;</div> |
| 93 |
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> <span class="keywordflow">return</span> -1;</div> |
| 94 |
<div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</span> }</div> |
| 95 |
<div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div> |
| 96 |
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> pci.stype = ZE_STRUCTURE_TYPE_PCI_EXT_PROPERTIES;</div> |
| 97 |
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> pci.pNext = NULL;</div> |
| 98 |
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> res = zeDevicePciGetPropertiesExt(device, &pci);</div> |
| 99 |
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> <span class="keywordflow">if</span> (res != ZE_RESULT_SUCCESS) {</div> |
| 100 |
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> errno = EINVAL;</div> |
| 101 |
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> -1;</div> |
| 102 |
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div> |
| 103 |
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div> |
| 104 |
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> sprintf(path, <span class="stringliteral">"/sys/bus/pci/devices/%04x:%02x:%02x.%01x/local_cpus"</span>,</div> |
| 105 |
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> pci.address.domain, pci.address.bus, pci.address.device, pci.address.function);</div> |
| 106 |
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00198.html#gaf72d83e273803226ce772973e37b85de">hwloc_linux_read_path_as_cpumask</a>(path, set) < 0</div> |
| 107 |
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> || <a class="code hl_function" href="a00188.html#ga5b64be28f5a7176ed8ad0d6a90bdf108">hwloc_bitmap_iszero</a>(set))</div> |
| 108 |
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <a class="code hl_function" href="a00188.html#ga72a29824798b48784b8217471ec8f14c">hwloc_bitmap_copy</a>(set, <a class="code hl_function" href="a00185.html#gaee30e03391c1ed7dfd617fb5c7bbb033">hwloc_topology_get_complete_cpuset</a>(topology));</div> |
| 109 |
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span><span class="preprocessor">#else</span></div> |
| 110 |
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="comment">/* Non-Linux systems simply get a full cpuset */</span></div> |
| 111 |
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> <a class="code hl_function" href="a00188.html#ga72a29824798b48784b8217471ec8f14c">hwloc_bitmap_copy</a>(set, <a class="code hl_function" href="a00185.html#gaee30e03391c1ed7dfd617fb5c7bbb033">hwloc_topology_get_complete_cpuset</a>(topology));</div> |
| 112 |
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"> 98</span><span class="preprocessor">#endif</span></div> |
| 113 |
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keywordflow">return</span> 0;</div> |
| 114 |
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span>}</div> |
| 115 |
</div> |
| 116 |
<div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span></div> |
| 117 |
<div class="line"><a id="l00124" name="l00124"></a><span class="lineno"> 124</span><span class="keyword">static</span> __hwloc_inline <span class="keywordtype">int</span></div> |
| 118 |
<div class="foldopen" id="foldopen00125" data-start="{" data-end="}"> |
| 119 |
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="a00209.html#gaca49a9ca9e8e9e845a4ff98cde6ef3e1"> 125</a></span><a class="code hl_function" href="a00209.html#gaca49a9ca9e8e9e845a4ff98cde6ef3e1">hwloc_levelzero_get_sysman_device_cpuset</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology __hwloc_attribute_unused,</div> |
| 120 |
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> zes_device_handle_t device, <a class="code hl_typedef" href="a00166.html#ga4bbf39b68b6f568fb92739e7c0ea7801">hwloc_cpuset_t</a> set)</div> |
| 121 |
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span>{</div> |
| 122 |
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span><span class="preprocessor">#ifdef HWLOC_LINUX_SYS</span></div> |
| 123 |
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="comment">/* If we're on Linux, use the sysfs mechanism to get the local cpus */</span></div> |
| 124 |
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span><span class="preprocessor">#define HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX 128</span></div> |
| 125 |
<div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keywordtype">char</span> path[HWLOC_LEVELZERO_DEVICE_SYSFS_PATH_MAX];</div> |
| 126 |
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> zes_pci_properties_t pci;</div> |
| 127 |
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> ze_result_t res;</div> |
| 128 |
<div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div> |
| 129 |
<div class="line"><a id="l00135" name="l00135"></a><span class="lineno"> 135</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="a00176.html#ga68ffdcfd9175cdf40709801092f18017">hwloc_topology_is_thissystem</a>(topology)) {</div> |
| 130 |
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> errno = EINVAL;</div> |
| 131 |
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> <span class="keywordflow">return</span> -1;</div> |
| 132 |
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> }</div> |
| 133 |
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div> |
| 134 |
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"> 140</span> pci.stype = ZES_STRUCTURE_TYPE_PCI_PROPERTIES;</div> |
| 135 |
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> pci.pNext = NULL;</div> |
| 136 |
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> res = zesDevicePciGetProperties(device, &pci);</div> |
| 137 |
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keywordflow">if</span> (res != ZE_RESULT_SUCCESS) {</div> |
| 138 |
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> errno = EINVAL;</div> |
| 139 |
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keywordflow">return</span> -1;</div> |
| 140 |
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> }</div> |
| 141 |
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> </div> |
| 142 |
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> sprintf(path, <span class="stringliteral">"/sys/bus/pci/devices/%04x:%02x:%02x.%01x/local_cpus"</span>,</div> |
| 143 |
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> pci.address.domain, pci.address.bus, pci.address.device, pci.address.function);</div> |
| 144 |
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="keywordflow">if</span> (<a class="code hl_function" href="a00198.html#gaf72d83e273803226ce772973e37b85de">hwloc_linux_read_path_as_cpumask</a>(path, set) < 0</div> |
| 145 |
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> || <a class="code hl_function" href="a00188.html#ga5b64be28f5a7176ed8ad0d6a90bdf108">hwloc_bitmap_iszero</a>(set))</div> |
| 146 |
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> <a class="code hl_function" href="a00188.html#ga72a29824798b48784b8217471ec8f14c">hwloc_bitmap_copy</a>(set, <a class="code hl_function" href="a00185.html#gaee30e03391c1ed7dfd617fb5c7bbb033">hwloc_topology_get_complete_cpuset</a>(topology));</div> |
| 147 |
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span><span class="preprocessor">#else</span></div> |
| 148 |
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="comment">/* Non-Linux systems simply get a full cpuset */</span></div> |
| 149 |
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <a class="code hl_function" href="a00188.html#ga72a29824798b48784b8217471ec8f14c">hwloc_bitmap_copy</a>(set, <a class="code hl_function" href="a00185.html#gaee30e03391c1ed7dfd617fb5c7bbb033">hwloc_topology_get_complete_cpuset</a>(topology));</div> |
| 150 |
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span><span class="preprocessor">#endif</span></div> |
| 151 |
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <span class="keywordflow">return</span> 0;</div> |
| 152 |
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span>}</div> |
| 153 |
</div> |
| 154 |
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span></div> |
| 155 |
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span><span class="keyword">static</span> __hwloc_inline <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a></div> |
| 156 |
<div class="foldopen" id="foldopen00182" data-start="{" data-end="}"> |
| 157 |
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="a00209.html#ga96bd686ed762bb53152d7dd1524391d8"> 182</a></span><a class="code hl_function" href="a00209.html#ga96bd686ed762bb53152d7dd1524391d8">hwloc_levelzero_get_device_osdev</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, ze_device_handle_t device)</div> |
| 158 |
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span>{</div> |
| 159 |
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"> 184</span> ze_pci_ext_properties_t pci;</div> |
| 160 |
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> ze_result_t res;</div> |
| 161 |
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> osdev;</div> |
| 162 |
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> </div> |
| 163 |
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="a00176.html#ga68ffdcfd9175cdf40709801092f18017">hwloc_topology_is_thissystem</a>(topology)) {</div> |
| 164 |
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> errno = EINVAL;</div> |
| 165 |
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keywordflow">return</span> NULL;</div> |
| 166 |
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> }</div> |
| 167 |
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div> |
| 168 |
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> pci.stype = ZE_STRUCTURE_TYPE_PCI_EXT_PROPERTIES;</div> |
| 169 |
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> pci.pNext = NULL;</div> |
| 170 |
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> res = zeDevicePciGetPropertiesExt(device, &pci);</div> |
| 171 |
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> <span class="keywordflow">if</span> (res != ZE_RESULT_SUCCESS) {</div> |
| 172 |
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> errno = EINVAL;</div> |
| 173 |
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> <span class="keywordflow">return</span> NULL;</div> |
| 174 |
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> }</div> |
| 175 |
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> </div> |
| 176 |
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> osdev = NULL;</div> |
| 177 |
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> <span class="keywordflow">while</span> ((osdev = <a class="code hl_function" href="a00187.html#ga17bba843ffa24978505961f104ee2efb">hwloc_get_next_osdev</a>(topology, osdev)) != NULL) {</div> |
| 178 |
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> pcidev;</div> |
| 179 |
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div> |
| 180 |
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span> <span class="keywordflow">if</span> (strncmp(osdev-><a class="code hl_variable" href="a00224.html#abb709ec38f2970677e4e57d1d30be96d">name</a>, <span class="stringliteral">"ze"</span>, 2))</div> |
| 181 |
<div class="line"><a id="l00206" name="l00206"></a><span class="lineno"> 206</span> <span class="keywordflow">continue</span>;</div> |
| 182 |
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"> 207</span> </div> |
| 183 |
<div class="line"><a id="l00208" name="l00208"></a><span class="lineno"> 208</span> pcidev = osdev;</div> |
| 184 |
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"> 209</span> <span class="keywordflow">while</span> (pcidev && pcidev-><a class="code hl_variable" href="a00224.html#acc4f0803f244867e68fe0036800be5de">type</a> != <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a5d8117a54df1fbd3606ab19e42cb0ea9">HWLOC_OBJ_PCI_DEVICE</a>)</div> |
| 185 |
<div class="line"><a id="l00210" name="l00210"></a><span class="lineno"> 210</span> pcidev = pcidev-><a class="code hl_variable" href="a00224.html#adc494f6aed939992be1c55cca5822900">parent</a>;</div> |
| 186 |
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"> 211</span> <span class="keywordflow">if</span> (!pcidev)</div> |
| 187 |
<div class="line"><a id="l00212" name="l00212"></a><span class="lineno"> 212</span> <span class="keywordflow">continue</span>;</div> |
| 188 |
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"> 213</span> </div> |
| 189 |
<div class="line"><a id="l00214" name="l00214"></a><span class="lineno"> 214</span> <span class="keywordflow">if</span> (pcidev</div> |
| 190 |
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"> 215</span> && pcidev-><a class="code hl_variable" href="a00224.html#acc4f0803f244867e68fe0036800be5de">type</a> == <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a5d8117a54df1fbd3606ab19e42cb0ea9">HWLOC_OBJ_PCI_DEVICE</a></div> |
| 191 |
<div class="line"><a id="l00216" name="l00216"></a><span class="lineno"> 216</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#a8fba44988deb98613c1505a4019a34dc">domain</a> == pci.address.domain</div> |
| 192 |
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"> 217</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#aae99e035e8d1387d7b8768aaa8eceb0a">bus</a> == pci.address.bus</div> |
| 193 |
<div class="line"><a id="l00218" name="l00218"></a><span class="lineno"> 218</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#a3d70c84a12f7e93d14c8d47bf4fd9dc5">dev</a> == pci.address.device</div> |
| 194 |
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"> 219</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#a695f32df53f4ef728670bfcf31b74e0f">func</a> == pci.address.function)</div> |
| 195 |
<div class="line"><a id="l00220" name="l00220"></a><span class="lineno"> 220</span> <span class="keywordflow">return</span> osdev;</div> |
| 196 |
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"> 221</span> </div> |
| 197 |
<div class="line"><a id="l00222" name="l00222"></a><span class="lineno"> 222</span> <span class="comment">/* FIXME: when we'll have serialnumber, try it in case PCI is filtered-out */</span></div> |
| 198 |
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"> 223</span> }</div> |
| 199 |
<div class="line"><a id="l00224" name="l00224"></a><span class="lineno"> 224</span> </div> |
| 200 |
<div class="line"><a id="l00225" name="l00225"></a><span class="lineno"> 225</span> <span class="keywordflow">return</span> NULL;</div> |
| 201 |
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"> 226</span>}</div> |
| 202 |
</div> |
| 203 |
<div class="line"><a id="l00227" name="l00227"></a><span class="lineno"> 227</span></div> |
| 204 |
<div class="line"><a id="l00248" name="l00248"></a><span class="lineno"> 248</span><span class="keyword">static</span> __hwloc_inline <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a></div> |
| 205 |
<div class="foldopen" id="foldopen00249" data-start="{" data-end="}"> |
| 206 |
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="a00209.html#ga3316db956816c5d1da4f9aa5fef415db"> 249</a></span><a class="code hl_function" href="a00209.html#ga3316db956816c5d1da4f9aa5fef415db">hwloc_levelzero_get_sysman_device_osdev</a>(<a class="code hl_typedef" href="a00169.html#ga9d1e76ee15a7dee158b786c30b6a6e38">hwloc_topology_t</a> topology, zes_device_handle_t device)</div> |
| 207 |
<div class="line"><a id="l00250" name="l00250"></a><span class="lineno"> 250</span>{</div> |
| 208 |
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"> 251</span> zes_pci_properties_t pci;</div> |
| 209 |
<div class="line"><a id="l00252" name="l00252"></a><span class="lineno"> 252</span> ze_result_t res;</div> |
| 210 |
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"> 253</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> osdev;</div> |
| 211 |
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span> </div> |
| 212 |
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> <span class="keywordflow">if</span> (!<a class="code hl_function" href="a00176.html#ga68ffdcfd9175cdf40709801092f18017">hwloc_topology_is_thissystem</a>(topology)) {</div> |
| 213 |
<div class="line"><a id="l00256" name="l00256"></a><span class="lineno"> 256</span> errno = EINVAL;</div> |
| 214 |
<div class="line"><a id="l00257" name="l00257"></a><span class="lineno"> 257</span> <span class="keywordflow">return</span> NULL;</div> |
| 215 |
<div class="line"><a id="l00258" name="l00258"></a><span class="lineno"> 258</span> }</div> |
| 216 |
<div class="line"><a id="l00259" name="l00259"></a><span class="lineno"> 259</span> </div> |
| 217 |
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"> 260</span> pci.stype = ZES_STRUCTURE_TYPE_PCI_PROPERTIES;</div> |
| 218 |
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> pci.pNext = NULL;</div> |
| 219 |
<div class="line"><a id="l00262" name="l00262"></a><span class="lineno"> 262</span> res = zesDevicePciGetProperties(device, &pci);</div> |
| 220 |
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keywordflow">if</span> (res != ZE_RESULT_SUCCESS) {</div> |
| 221 |
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> errno = EINVAL;</div> |
| 222 |
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordflow">return</span> NULL;</div> |
| 223 |
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> }</div> |
| 224 |
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> </div> |
| 225 |
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> osdev = NULL;</div> |
| 226 |
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="keywordflow">while</span> ((osdev = <a class="code hl_function" href="a00187.html#ga17bba843ffa24978505961f104ee2efb">hwloc_get_next_osdev</a>(topology, osdev)) != NULL) {</div> |
| 227 |
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <a class="code hl_typedef" href="a00168.html#ga79b8ab56877ef99ac59b833203391c7d">hwloc_obj_t</a> pcidev;</div> |
| 228 |
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> </div> |
| 229 |
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keywordflow">if</span> (strncmp(osdev-><a class="code hl_variable" href="a00224.html#abb709ec38f2970677e4e57d1d30be96d">name</a>, <span class="stringliteral">"ze"</span>, 2))</div> |
| 230 |
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> <span class="keywordflow">continue</span>;</div> |
| 231 |
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> </div> |
| 232 |
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> pcidev = osdev;</div> |
| 233 |
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> <span class="keywordflow">while</span> (pcidev && pcidev-><a class="code hl_variable" href="a00224.html#acc4f0803f244867e68fe0036800be5de">type</a> != <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a5d8117a54df1fbd3606ab19e42cb0ea9">HWLOC_OBJ_PCI_DEVICE</a>)</div> |
| 234 |
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> pcidev = pcidev-><a class="code hl_variable" href="a00224.html#adc494f6aed939992be1c55cca5822900">parent</a>;</div> |
| 235 |
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> <span class="keywordflow">if</span> (!pcidev)</div> |
| 236 |
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> <span class="keywordflow">continue</span>;</div> |
| 237 |
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> </div> |
| 238 |
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> <span class="keywordflow">if</span> (pcidev</div> |
| 239 |
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> && pcidev-><a class="code hl_variable" href="a00224.html#acc4f0803f244867e68fe0036800be5de">type</a> == <a class="code hl_enumvalue" href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a5d8117a54df1fbd3606ab19e42cb0ea9">HWLOC_OBJ_PCI_DEVICE</a></div> |
| 240 |
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#a8fba44988deb98613c1505a4019a34dc">domain</a> == pci.address.domain</div> |
| 241 |
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#aae99e035e8d1387d7b8768aaa8eceb0a">bus</a> == pci.address.bus</div> |
| 242 |
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#a3d70c84a12f7e93d14c8d47bf4fd9dc5">dev</a> == pci.address.device</div> |
| 243 |
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> && pcidev-><a class="code hl_variable" href="a00224.html#accd40e29f71f19e88db62ea3df02adc8">attr</a>-><a class="code hl_variable" href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">pcidev</a>.<a class="code hl_variable" href="a00248.html#a695f32df53f4ef728670bfcf31b74e0f">func</a> == pci.address.function)</div> |
| 244 |
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> <span class="keywordflow">return</span> osdev;</div> |
| 245 |
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> </div> |
| 246 |
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> <span class="comment">/* FIXME: when we'll have serialnumber, try it in case PCI is filtered-out */</span></div> |
| 247 |
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> }</div> |
| 248 |
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> </div> |
| 249 |
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> <span class="keywordflow">return</span> NULL;</div> |
| 250 |
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span>}</div> |
| 251 |
</div> |
| 252 |
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span></div> |
| 253 |
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> </div> |
| 254 |
<div class="line"><a id="l00297" name="l00297"></a><span class="lineno"> 297</span> </div> |
| 255 |
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span><span class="preprocessor">#ifdef __cplusplus</span></div> |
| 256 |
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span>} <span class="comment">/* extern "C" */</span></div> |
| 257 |
<div class="line"><a id="l00300" name="l00300"></a><span class="lineno"> 300</span><span class="preprocessor">#endif</span></div> |
| 258 |
<div class="line"><a id="l00301" name="l00301"></a><span class="lineno"> 301</span> </div> |
| 259 |
<div class="line"><a id="l00302" name="l00302"></a><span class="lineno"> 302</span> </div> |
| 260 |
<div class="line"><a id="l00303" name="l00303"></a><span class="lineno"> 303</span><span class="preprocessor">#endif </span><span class="comment">/* HWLOC_LEVELZERO_H */</span><span class="preprocessor"></span></div> |
| 261 |
<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> |
| 262 |
<div class="ttc" id="aa00167_html_ggacd37bb612667dc437d66bfb175a8dc55a5d8117a54df1fbd3606ab19e42cb0ea9"><div class="ttname"><a href="a00167.html#ggacd37bb612667dc437d66bfb175a8dc55a5d8117a54df1fbd3606ab19e42cb0ea9">HWLOC_OBJ_PCI_DEVICE</a></div><div class="ttdeci">@ HWLOC_OBJ_PCI_DEVICE</div><div class="ttdoc">PCI device (filtered out by default).</div><div class="ttdef"><b>Definition</b> hwloc.h:300</div></div> |
| 263 |
<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> |
| 264 |
<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> |
| 265 |
<div class="ttc" id="aa00176_html_ga68ffdcfd9175cdf40709801092f18017"><div class="ttname"><a href="a00176.html#ga68ffdcfd9175cdf40709801092f18017">hwloc_topology_is_thissystem</a></div><div class="ttdeci">int hwloc_topology_is_thissystem(hwloc_topology_t restrict topology)</div><div class="ttdoc">Does the topology context come from this system?</div></div> |
| 266 |
<div class="ttc" id="aa00185_html_gaee30e03391c1ed7dfd617fb5c7bbb033"><div class="ttname"><a href="a00185.html#gaee30e03391c1ed7dfd617fb5c7bbb033">hwloc_topology_get_complete_cpuset</a></div><div class="ttdeci">hwloc_const_cpuset_t hwloc_topology_get_complete_cpuset(hwloc_topology_t topology)</div><div class="ttdoc">Get complete CPU set.</div></div> |
| 267 |
<div class="ttc" id="aa00187_html_ga17bba843ffa24978505961f104ee2efb"><div class="ttname"><a href="a00187.html#ga17bba843ffa24978505961f104ee2efb">hwloc_get_next_osdev</a></div><div class="ttdeci">hwloc_obj_t hwloc_get_next_osdev(hwloc_topology_t topology, hwloc_obj_t prev)</div><div class="ttdoc">Get the next OS device in the system.</div><div class="ttdef"><b>Definition</b> helper.h:1291</div></div> |
| 268 |
<div class="ttc" id="aa00188_html_ga5b64be28f5a7176ed8ad0d6a90bdf108"><div class="ttname"><a href="a00188.html#ga5b64be28f5a7176ed8ad0d6a90bdf108">hwloc_bitmap_iszero</a></div><div class="ttdeci">int hwloc_bitmap_iszero(hwloc_const_bitmap_t bitmap)</div><div class="ttdoc">Test whether bitmap bitmap is empty.</div></div> |
| 269 |
<div class="ttc" id="aa00188_html_ga72a29824798b48784b8217471ec8f14c"><div class="ttname"><a href="a00188.html#ga72a29824798b48784b8217471ec8f14c">hwloc_bitmap_copy</a></div><div class="ttdeci">int hwloc_bitmap_copy(hwloc_bitmap_t dst, hwloc_const_bitmap_t src)</div><div class="ttdoc">Copy the contents of bitmap src into the already allocated bitmap dst.</div></div> |
| 270 |
<div class="ttc" id="aa00198_html_gaf72d83e273803226ce772973e37b85de"><div class="ttname"><a href="a00198.html#gaf72d83e273803226ce772973e37b85de">hwloc_linux_read_path_as_cpumask</a></div><div class="ttdeci">int hwloc_linux_read_path_as_cpumask(const char *path, hwloc_bitmap_t set)</div><div class="ttdoc">Convert a linux kernel cpumask file path into a hwloc bitmap set.</div></div> |
| 271 |
<div class="ttc" id="aa00209_html_ga3316db956816c5d1da4f9aa5fef415db"><div class="ttname"><a href="a00209.html#ga3316db956816c5d1da4f9aa5fef415db">hwloc_levelzero_get_sysman_device_osdev</a></div><div class="ttdeci">hwloc_obj_t hwloc_levelzero_get_sysman_device_osdev(hwloc_topology_t topology, zes_device_handle_t device)</div><div class="ttdoc">Get the hwloc OS device object corresponding to Level Zero Sysman device device.</div><div class="ttdef"><b>Definition</b> levelzero.h:249</div></div> |
| 272 |
<div class="ttc" id="aa00209_html_ga96bd686ed762bb53152d7dd1524391d8"><div class="ttname"><a href="a00209.html#ga96bd686ed762bb53152d7dd1524391d8">hwloc_levelzero_get_device_osdev</a></div><div class="ttdeci">hwloc_obj_t hwloc_levelzero_get_device_osdev(hwloc_topology_t topology, ze_device_handle_t device)</div><div class="ttdoc">Get the hwloc OS device object corresponding to Level Zero device device.</div><div class="ttdef"><b>Definition</b> levelzero.h:182</div></div> |
| 273 |
<div class="ttc" id="aa00209_html_gac99688cac5174738d9cf8284dda8b769"><div class="ttname"><a href="a00209.html#gac99688cac5174738d9cf8284dda8b769">hwloc_levelzero_get_device_cpuset</a></div><div class="ttdeci">int hwloc_levelzero_get_device_cpuset(hwloc_topology_t topology, ze_device_handle_t device, hwloc_cpuset_t set)</div><div class="ttdoc">Get the CPU set of logical processors that are physically close to the Level Zero device device.</div><div class="ttdef"><b>Definition</b> levelzero.h:67</div></div> |
| 274 |
<div class="ttc" id="aa00209_html_gaca49a9ca9e8e9e845a4ff98cde6ef3e1"><div class="ttname"><a href="a00209.html#gaca49a9ca9e8e9e845a4ff98cde6ef3e1">hwloc_levelzero_get_sysman_device_cpuset</a></div><div class="ttdeci">int hwloc_levelzero_get_sysman_device_cpuset(hwloc_topology_t topology, zes_device_handle_t device, hwloc_cpuset_t set)</div><div class="ttdoc">Get the CPU set of logical processors that are physically close to the Level Zero Sysman device devic...</div><div class="ttdef"><b>Definition</b> levelzero.h:125</div></div> |
| 275 |
<div class="ttc" id="aa00224_html_abb709ec38f2970677e4e57d1d30be96d"><div class="ttname"><a href="a00224.html#abb709ec38f2970677e4e57d1d30be96d">hwloc_obj::name</a></div><div class="ttdeci">char * name</div><div class="ttdoc">Object-specific name if any. Mostly used for identifying OS devices and Misc objects where a name str...</div><div class="ttdef"><b>Definition</b> hwloc.h:449</div></div> |
| 276 |
<div class="ttc" id="aa00224_html_acc4f0803f244867e68fe0036800be5de"><div class="ttname"><a href="a00224.html#acc4f0803f244867e68fe0036800be5de">hwloc_obj::type</a></div><div class="ttdeci">hwloc_obj_type_t type</div><div class="ttdoc">Type of object.</div><div class="ttdef"><b>Definition</b> hwloc.h:439</div></div> |
| 277 |
<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> |
| 278 |
<div class="ttc" id="aa00224_html_adc494f6aed939992be1c55cca5822900"><div class="ttname"><a href="a00224.html#adc494f6aed939992be1c55cca5822900">hwloc_obj::parent</a></div><div class="ttdeci">struct hwloc_obj * parent</div><div class="ttdoc">Parent, NULL if root (Machine object).</div><div class="ttdef"><b>Definition</b> hwloc.h:487</div></div> |
| 279 |
<div class="ttc" id="aa00228_html_a0b66da7ab072f7c016f8ed86701f5a7c"><div class="ttname"><a href="a00228.html#a0b66da7ab072f7c016f8ed86701f5a7c">hwloc_obj_attr_u::pcidev</a></div><div class="ttdeci">struct hwloc_obj_attr_u::hwloc_pcidev_attr_s pcidev</div></div> |
| 280 |
<div class="ttc" id="aa00248_html_a3d70c84a12f7e93d14c8d47bf4fd9dc5"><div class="ttname"><a href="a00248.html#a3d70c84a12f7e93d14c8d47bf4fd9dc5">hwloc_obj_attr_u::hwloc_pcidev_attr_s::dev</a></div><div class="ttdeci">unsigned char dev</div><div class="ttdoc">Device number (zz in the PCI BDF notation xxxx:yy:zz.t).</div><div class="ttdef"><b>Definition</b> hwloc.h:683</div></div> |
| 281 |
<div class="ttc" id="aa00248_html_a695f32df53f4ef728670bfcf31b74e0f"><div class="ttname"><a href="a00248.html#a695f32df53f4ef728670bfcf31b74e0f">hwloc_obj_attr_u::hwloc_pcidev_attr_s::func</a></div><div class="ttdeci">unsigned char func</div><div class="ttdoc">Function number (t in the PCI BDF notation xxxx:yy:zz.t).</div><div class="ttdef"><b>Definition</b> hwloc.h:684</div></div> |
| 282 |
<div class="ttc" id="aa00248_html_a8fba44988deb98613c1505a4019a34dc"><div class="ttname"><a href="a00248.html#a8fba44988deb98613c1505a4019a34dc">hwloc_obj_attr_u::hwloc_pcidev_attr_s::domain</a></div><div class="ttdeci">unsigned short domain</div><div class="ttdoc">Domain number (xxxx in the PCI BDF notation xxxx:yy:zz.t). Only 16bits PCI domains are supported by d...</div><div class="ttdef"><b>Definition</b> hwloc.h:676</div></div> |
| 283 |
<div class="ttc" id="aa00248_html_aae99e035e8d1387d7b8768aaa8eceb0a"><div class="ttname"><a href="a00248.html#aae99e035e8d1387d7b8768aaa8eceb0a">hwloc_obj_attr_u::hwloc_pcidev_attr_s::bus</a></div><div class="ttdeci">unsigned char bus</div><div class="ttdoc">Bus number (yy in the PCI BDF notation xxxx:yy:zz.t).</div><div class="ttdef"><b>Definition</b> hwloc.h:682</div></div> |
| 284 |
</div><!-- fragment --></div><!-- contents --> |
| 285 |
<!-- start footer part --> |
| 286 |
<hr class="footer"/><address class="footer"><small> |
| 287 |
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 |
| 288 |
</small></address> |
| 289 |
</div><!-- doc-content --> |
| 290 |
</body> |
| 291 |
</html> |