Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: NeonInterceptorScheduler Class Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('classarmnn_1_1_neon_interceptor_scheduler.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#pub-methods">Public Member Functions</a> | |
| 99 | <a href="classarmnn_1_1_neon_interceptor_scheduler-members.xhtml">List of all members</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">NeonInterceptorScheduler Class Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | |
| 105 | <p><code>#include <<a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml">NeonInterceptorScheduler.hpp</a>></code></p> |
| 106 | <div class="dynheader"> |
| 107 | Inheritance diagram for NeonInterceptorScheduler:</div> |
| 108 | <div class="dyncontent"> |
| 109 | <div class="center"> |
| 110 | <img src="classarmnn_1_1_neon_interceptor_scheduler.png" usemap="#NeonInterceptorScheduler_map" alt=""/> |
| 111 | <map id="NeonInterceptorScheduler_map" name="NeonInterceptorScheduler_map"> |
| 112 | </map> |
| 113 | </div></div> |
| 114 | <table class="memberdecls"> |
| 115 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 116 | Public Member Functions</h2></td></tr> |
| 117 | <tr class="memitem:a54394a4d67b6c4e7878cdf36ace0b9a8"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#a54394a4d67b6c4e7878cdf36ace0b9a8">NeonInterceptorScheduler</a> (arm_compute::IScheduler &realScheduler)</td></tr> |
| 118 | <tr class="separator:a54394a4d67b6c4e7878cdf36ace0b9a8"><td class="memSeparator" colspan="2"> </td></tr> |
| 119 | <tr class="memitem:a896550e0f6cf5c9d7fa652e04529a06e"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#a896550e0f6cf5c9d7fa652e04529a06e">~NeonInterceptorScheduler</a> ()=default</td></tr> |
| 120 | <tr class="separator:a896550e0f6cf5c9d7fa652e04529a06e"><td class="memSeparator" colspan="2"> </td></tr> |
| 121 | <tr class="memitem:ad0debf97bd7013d6aadba6db2fd0dc14"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#ad0debf97bd7013d6aadba6db2fd0dc14">set_num_threads</a> (unsigned int numThreads) override</td></tr> |
| 122 | <tr class="separator:ad0debf97bd7013d6aadba6db2fd0dc14"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:a0da94220ee1e0f4928aa31ed0d4b30f7"><td class="memItemLeft" align="right" valign="top">unsigned int </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#a0da94220ee1e0f4928aa31ed0d4b30f7">num_threads</a> () const override</td></tr> |
| 124 | <tr class="separator:a0da94220ee1e0f4928aa31ed0d4b30f7"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | <tr class="memitem:ae5ed8b38eb9777881ee7c7e56025b5cb"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#ae5ed8b38eb9777881ee7c7e56025b5cb">schedule</a> (arm_compute::ICPPKernel *kernel, const Hints &hints) override</td></tr> |
| 126 | <tr class="separator:ae5ed8b38eb9777881ee7c7e56025b5cb"><td class="memSeparator" colspan="2"> </td></tr> |
| 127 | <tr class="memitem:acbe7dbaeedd9d2cf45f50a4c1c4260c3"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#acbe7dbaeedd9d2cf45f50a4c1c4260c3">run_workloads</a> (std::vector< Workload > &workloads) override</td></tr> |
| 128 | <tr class="separator:acbe7dbaeedd9d2cf45f50a4c1c4260c3"><td class="memSeparator" colspan="2"> </td></tr> |
| 129 | <tr class="memitem:a666fa6ef79ac975094aaf8844ffee914"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#a666fa6ef79ac975094aaf8844ffee914">run_tagged_workloads</a> (std::vector< Workload > &workloads, const char *tag) override</td></tr> |
| 130 | <tr class="separator:a666fa6ef79ac975094aaf8844ffee914"><td class="memSeparator" colspan="2"> </td></tr> |
| 131 | <tr class="memitem:a263bc4fda3d6b99de64681a2ae5661ef"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#a263bc4fda3d6b99de64681a2ae5661ef">SetKernels</a> (<a class="el" href="classarmnn_1_1_neon_timer.xhtml#a278b62df38ce93dfb6de3fa2a711f5bb">NeonTimer::KernelMeasurements</a> *kernels)</td></tr> |
| 132 | <tr class="separator:a263bc4fda3d6b99de64681a2ae5661ef"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | <tr class="memitem:ac050f766763f2140578363b25f324617"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarmnn_1_1_neon_timer.xhtml#a278b62df38ce93dfb6de3fa2a711f5bb">NeonTimer::KernelMeasurements</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml#ac050f766763f2140578363b25f324617">GetKernels</a> ()</td></tr> |
| 134 | <tr class="separator:ac050f766763f2140578363b25f324617"><td class="memSeparator" colspan="2"> </td></tr> |
| 135 | </table> |
| 136 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 137 | <div class="textblock"> |
| 138 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml#l00017">17</a> of file <a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml">NeonInterceptorScheduler.hpp</a>.</p> |
| 139 | </div><h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 140 | <a id="a54394a4d67b6c4e7878cdf36ace0b9a8"></a> |
| 141 | <h2 class="memtitle"><span class="permalink"><a href="#a54394a4d67b6c4e7878cdf36ace0b9a8">◆ </a></span>NeonInterceptorScheduler()</h2> |
| 142 | |
| 143 | <div class="memitem"> |
| 144 | <div class="memproto"> |
| 145 | <table class="memname"> |
| 146 | <tr> |
| 147 | <td class="memname"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml">NeonInterceptorScheduler</a> </td> |
| 148 | <td>(</td> |
| 149 | <td class="paramtype">arm_compute::IScheduler & </td> |
| 150 | <td class="paramname"><em>realScheduler</em></td><td>)</td> |
| 151 | <td></td> |
| 152 | </tr> |
| 153 | </table> |
| 154 | </div><div class="memdoc"> |
| 155 | |
| 156 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml#l00012">12</a> of file <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a>.</p> |
| 157 | <div class="fragment"><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>  : m_Kernels(<span class="keyword">nullptr</span>), m_RealScheduler(realScheduler)</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> {</div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> }</div></div><!-- fragment --> |
| 158 | </div> |
| 159 | </div> |
| 160 | <a id="a896550e0f6cf5c9d7fa652e04529a06e"></a> |
| 161 | <h2 class="memtitle"><span class="permalink"><a href="#a896550e0f6cf5c9d7fa652e04529a06e">◆ </a></span>~NeonInterceptorScheduler()</h2> |
| 162 | |
| 163 | <div class="memitem"> |
| 164 | <div class="memproto"> |
| 165 | <table class="mlabels"> |
| 166 | <tr> |
| 167 | <td class="mlabels-left"> |
| 168 | <table class="memname"> |
| 169 | <tr> |
| 170 | <td class="memname">~<a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml">NeonInterceptorScheduler</a> </td> |
| 171 | <td>(</td> |
| 172 | <td class="paramname"></td><td>)</td> |
| 173 | <td></td> |
| 174 | </tr> |
| 175 | </table> |
| 176 | </td> |
| 177 | <td class="mlabels-right"> |
| 178 | <span class="mlabels"><span class="mlabel">default</span></span> </td> |
| 179 | </tr> |
| 180 | </table> |
| 181 | </div><div class="memdoc"> |
| 182 | |
| 183 | </div> |
| 184 | </div> |
| 185 | <h2 class="groupheader">Member Function Documentation</h2> |
| 186 | <a id="ac050f766763f2140578363b25f324617"></a> |
| 187 | <h2 class="memtitle"><span class="permalink"><a href="#ac050f766763f2140578363b25f324617">◆ </a></span>GetKernels()</h2> |
| 188 | |
| 189 | <div class="memitem"> |
| 190 | <div class="memproto"> |
| 191 | <table class="mlabels"> |
| 192 | <tr> |
| 193 | <td class="mlabels-left"> |
| 194 | <table class="memname"> |
| 195 | <tr> |
| 196 | <td class="memname"><a class="el" href="classarmnn_1_1_neon_timer.xhtml#a278b62df38ce93dfb6de3fa2a711f5bb">NeonTimer::KernelMeasurements</a>* GetKernels </td> |
| 197 | <td>(</td> |
| 198 | <td class="paramname"></td><td>)</td> |
| 199 | <td></td> |
| 200 | </tr> |
| 201 | </table> |
| 202 | </td> |
| 203 | <td class="mlabels-right"> |
| 204 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 205 | </tr> |
| 206 | </table> |
| 207 | </div><div class="memdoc"> |
| 208 | |
| 209 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml#l00034">34</a> of file <a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml">NeonInterceptorScheduler.hpp</a>.</p> |
| 210 | <div class="fragment"><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> { <span class="keywordflow">return</span> m_Kernels; }</div></div><!-- fragment --> |
| 211 | </div> |
| 212 | </div> |
| 213 | <a id="a0da94220ee1e0f4928aa31ed0d4b30f7"></a> |
| 214 | <h2 class="memtitle"><span class="permalink"><a href="#a0da94220ee1e0f4928aa31ed0d4b30f7">◆ </a></span>num_threads()</h2> |
| 215 | |
| 216 | <div class="memitem"> |
| 217 | <div class="memproto"> |
| 218 | <table class="mlabels"> |
| 219 | <tr> |
| 220 | <td class="mlabels-left"> |
| 221 | <table class="memname"> |
| 222 | <tr> |
| 223 | <td class="memname">unsigned int num_threads </td> |
| 224 | <td>(</td> |
| 225 | <td class="paramname"></td><td>)</td> |
| 226 | <td> const</td> |
| 227 | </tr> |
| 228 | </table> |
| 229 | </td> |
| 230 | <td class="mlabels-right"> |
| 231 | <span class="mlabels"><span class="mlabel">override</span></span> </td> |
| 232 | </tr> |
| 233 | </table> |
| 234 | </div><div class="memdoc"> |
| 235 | |
| 236 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml#l00022">22</a> of file <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a>.</p> |
| 237 | <div class="fragment"><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> {</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>  <span class="keywordflow">return</span> m_RealScheduler.num_threads();</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> }</div></div><!-- fragment --> |
| 238 | </div> |
| 239 | </div> |
| 240 | <a id="a666fa6ef79ac975094aaf8844ffee914"></a> |
| 241 | <h2 class="memtitle"><span class="permalink"><a href="#a666fa6ef79ac975094aaf8844ffee914">◆ </a></span>run_tagged_workloads()</h2> |
| 242 | |
| 243 | <div class="memitem"> |
| 244 | <div class="memproto"> |
| 245 | <table class="mlabels"> |
| 246 | <tr> |
| 247 | <td class="mlabels-left"> |
| 248 | <table class="memname"> |
| 249 | <tr> |
| 250 | <td class="memname">void run_tagged_workloads </td> |
| 251 | <td>(</td> |
| 252 | <td class="paramtype">std::vector< Workload > & </td> |
| 253 | <td class="paramname"><em>workloads</em>, </td> |
| 254 | </tr> |
| 255 | <tr> |
| 256 | <td class="paramkey"></td> |
| 257 | <td></td> |
| 258 | <td class="paramtype">const char * </td> |
| 259 | <td class="paramname"><em>tag</em> </td> |
| 260 | </tr> |
| 261 | <tr> |
| 262 | <td></td> |
| 263 | <td>)</td> |
| 264 | <td></td><td></td> |
| 265 | </tr> |
| 266 | </table> |
| 267 | </td> |
| 268 | <td class="mlabels-right"> |
| 269 | <span class="mlabels"><span class="mlabel">override</span></span> </td> |
| 270 | </tr> |
| 271 | </table> |
| 272 | </div><div class="memdoc"> |
| 273 | |
| 274 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml#l00047">47</a> of file <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a>.</p> |
| 275 | <div class="fragment"><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  m_RealScheduler.run_tagged_workloads(workloads, tag);</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keyword">const</span> <span class="keyword">auto</span> delta = std::chrono::duration<double, std::micro>(stopTime - startTime);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  m_Kernels->emplace_back(std::string(tag != <span class="keyword">nullptr</span> ? tag : <span class="stringliteral">"Unknown"</span>), delta.count(), Measurement::Unit::TIME_US);</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> }</div></div><!-- fragment --> |
| 276 | </div> |
| 277 | </div> |
| 278 | <a id="acbe7dbaeedd9d2cf45f50a4c1c4260c3"></a> |
| 279 | <h2 class="memtitle"><span class="permalink"><a href="#acbe7dbaeedd9d2cf45f50a4c1c4260c3">◆ </a></span>run_workloads()</h2> |
| 280 | |
| 281 | <div class="memitem"> |
| 282 | <div class="memproto"> |
| 283 | <table class="mlabels"> |
| 284 | <tr> |
| 285 | <td class="mlabels-left"> |
| 286 | <table class="memname"> |
| 287 | <tr> |
| 288 | <td class="memname">void run_workloads </td> |
| 289 | <td>(</td> |
| 290 | <td class="paramtype">std::vector< Workload > & </td> |
| 291 | <td class="paramname"><em>workloads</em></td><td>)</td> |
| 292 | <td></td> |
| 293 | </tr> |
| 294 | </table> |
| 295 | </td> |
| 296 | <td class="mlabels-right"> |
| 297 | <span class="mlabels"><span class="mlabel">override</span></span> </td> |
| 298 | </tr> |
| 299 | </table> |
| 300 | </div><div class="memdoc"> |
| 301 | |
| 302 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml#l00037">37</a> of file <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a>.</p> |
| 303 | <div class="fragment"><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> {</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  m_RealScheduler.run_tagged_workloads(workloads, <span class="keyword">nullptr</span>);</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> </div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  <span class="keyword">const</span> <span class="keyword">auto</span> delta = std::chrono::duration<double, std::micro>(stopTime - startTime);</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  m_Kernels->emplace_back(std::string(<span class="stringliteral">"Workload"</span>), delta.count(), Measurement::Unit::TIME_US);</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> }</div></div><!-- fragment --> |
| 304 | </div> |
| 305 | </div> |
| 306 | <a id="ae5ed8b38eb9777881ee7c7e56025b5cb"></a> |
| 307 | <h2 class="memtitle"><span class="permalink"><a href="#ae5ed8b38eb9777881ee7c7e56025b5cb">◆ </a></span>schedule()</h2> |
| 308 | |
| 309 | <div class="memitem"> |
| 310 | <div class="memproto"> |
| 311 | <table class="mlabels"> |
| 312 | <tr> |
| 313 | <td class="mlabels-left"> |
| 314 | <table class="memname"> |
| 315 | <tr> |
| 316 | <td class="memname">void schedule </td> |
| 317 | <td>(</td> |
| 318 | <td class="paramtype">arm_compute::ICPPKernel * </td> |
| 319 | <td class="paramname"><em>kernel</em>, </td> |
| 320 | </tr> |
| 321 | <tr> |
| 322 | <td class="paramkey"></td> |
| 323 | <td></td> |
| 324 | <td class="paramtype">const Hints & </td> |
| 325 | <td class="paramname"><em>hints</em> </td> |
| 326 | </tr> |
| 327 | <tr> |
| 328 | <td></td> |
| 329 | <td>)</td> |
| 330 | <td></td><td></td> |
| 331 | </tr> |
| 332 | </table> |
| 333 | </td> |
| 334 | <td class="mlabels-right"> |
| 335 | <span class="mlabels"><span class="mlabel">override</span></span> </td> |
| 336 | </tr> |
| 337 | </table> |
| 338 | </div><div class="memdoc"> |
| 339 | |
| 340 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml#l00027">27</a> of file <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a>.</p> |
| 341 | <div class="fragment"><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> {</div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  WallClockTimer::clock::time_point startTime = WallClockTimer::clock::now();</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>  m_RealScheduler.schedule(kernel, hints.split_dimension());</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  WallClockTimer::clock::time_point stopTime = WallClockTimer::clock::now();</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> </div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  <span class="keyword">const</span> <span class="keyword">auto</span> delta = std::chrono::duration<double, std::micro>(stopTime - startTime);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  m_Kernels->emplace_back(kernel->name(), delta.count(), Measurement::Unit::TIME_US);</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> }</div></div><!-- fragment --> |
| 342 | </div> |
| 343 | </div> |
| 344 | <a id="ad0debf97bd7013d6aadba6db2fd0dc14"></a> |
| 345 | <h2 class="memtitle"><span class="permalink"><a href="#ad0debf97bd7013d6aadba6db2fd0dc14">◆ </a></span>set_num_threads()</h2> |
| 346 | |
| 347 | <div class="memitem"> |
| 348 | <div class="memproto"> |
| 349 | <table class="mlabels"> |
| 350 | <tr> |
| 351 | <td class="mlabels-left"> |
| 352 | <table class="memname"> |
| 353 | <tr> |
| 354 | <td class="memname">void set_num_threads </td> |
| 355 | <td>(</td> |
| 356 | <td class="paramtype">unsigned int </td> |
| 357 | <td class="paramname"><em>numThreads</em></td><td>)</td> |
| 358 | <td></td> |
| 359 | </tr> |
| 360 | </table> |
| 361 | </td> |
| 362 | <td class="mlabels-right"> |
| 363 | <span class="mlabels"><span class="mlabel">override</span></span> </td> |
| 364 | </tr> |
| 365 | </table> |
| 366 | </div><div class="memdoc"> |
| 367 | |
| 368 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml#l00017">17</a> of file <a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a>.</p> |
| 369 | <div class="fragment"><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> {</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  m_RealScheduler.set_num_threads(numThreads);</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> }</div></div><!-- fragment --> |
| 370 | </div> |
| 371 | </div> |
| 372 | <a id="a263bc4fda3d6b99de64681a2ae5661ef"></a> |
| 373 | <h2 class="memtitle"><span class="permalink"><a href="#a263bc4fda3d6b99de64681a2ae5661ef">◆ </a></span>SetKernels()</h2> |
| 374 | |
| 375 | <div class="memitem"> |
| 376 | <div class="memproto"> |
| 377 | <table class="mlabels"> |
| 378 | <tr> |
| 379 | <td class="mlabels-left"> |
| 380 | <table class="memname"> |
| 381 | <tr> |
| 382 | <td class="memname">void SetKernels </td> |
| 383 | <td>(</td> |
| 384 | <td class="paramtype"><a class="el" href="classarmnn_1_1_neon_timer.xhtml#a278b62df38ce93dfb6de3fa2a711f5bb">NeonTimer::KernelMeasurements</a> * </td> |
| 385 | <td class="paramname"><em>kernels</em></td><td>)</td> |
| 386 | <td></td> |
| 387 | </tr> |
| 388 | </table> |
| 389 | </td> |
| 390 | <td class="mlabels-right"> |
| 391 | <span class="mlabels"><span class="mlabel">inline</span></span> </td> |
| 392 | </tr> |
| 393 | </table> |
| 394 | </div><div class="memdoc"> |
| 395 | |
| 396 | <p class="definition">Definition at line <a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml#l00033">33</a> of file <a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml">NeonInterceptorScheduler.hpp</a>.</p> |
| 397 | <div class="fragment"><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> { m_Kernels = kernels; }</div></div><!-- fragment --> |
| 398 | </div> |
| 399 | </div> |
| 400 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 401 | <li>src/backends/neon/<a class="el" href="_neon_interceptor_scheduler_8hpp_source.xhtml">NeonInterceptorScheduler.hpp</a></li> |
| 402 | <li>src/backends/neon/<a class="el" href="_neon_interceptor_scheduler_8cpp_source.xhtml">NeonInterceptorScheduler.cpp</a></li> |
| 403 | </ul> |
| 404 | </div><!-- contents --> |
| 405 | </div><!-- doc-content --> |
| 406 | <!-- start footer part --> |
| 407 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 408 | <ul> |
| 409 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_neon_interceptor_scheduler.xhtml">NeonInterceptorScheduler</a></li> |
| 410 | <li class="footer">Generated on Fri Mar 13 2020 16:09:19 for ArmNN by |
| 411 | <a href="http://www.doxygen.org/index.html"> |
| 412 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 413 | </ul> |
| 414 | </div> |
| 415 | </body> |
| 416 | </html> |