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: IGpuAccTunedParameters 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_i_gpu_acc_tuned_parameters.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-types">Public Types</a> | |
| 99 | <a href="#pub-methods">Public Member Functions</a> | |
| 100 | <a href="#pub-static-methods">Static Public Member Functions</a> | |
| 101 | <a href="#pro-methods">Protected Member Functions</a> | |
| 102 | <a href="classarmnn_1_1_i_gpu_acc_tuned_parameters-members.xhtml">List of all members</a> </div> |
| 103 | <div class="headertitle"> |
| 104 | <div class="title">IGpuAccTunedParameters Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div> |
| 105 | </div><!--header--> |
| 106 | <div class="contents"> |
| 107 | |
| 108 | <p>Manages a set of GpuAcc parameters which have been tuned for maximum performance. |
| 109 | <a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#details">More...</a></p> |
| 110 | |
| 111 | <p><code>#include <<a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a>></code></p> |
| 112 | <div class="dynheader"> |
| 113 | Inheritance diagram for IGpuAccTunedParameters:</div> |
| 114 | <div class="dyncontent"> |
| 115 | <div class="center"> |
| 116 | <img src="classarmnn_1_1_i_gpu_acc_tuned_parameters.png" usemap="#IGpuAccTunedParameters_map" alt=""/> |
| 117 | <map id="IGpuAccTunedParameters_map" name="IGpuAccTunedParameters_map"> |
| 118 | <area href="classarmnn_1_1_cl_tuned_parameters.xhtml" alt="ClTunedParameters" shape="rect" coords="0,56,160,80"/> |
| 119 | </map> |
| 120 | </div></div> |
| 121 | <table class="memberdecls"> |
| 122 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> |
| 123 | Public Types</h2></td></tr> |
| 124 | <tr class="memitem:a46c8a310cf4c094f8c80e1cb8dc1f911"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> { <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b">UseTunedParameters</a>, |
| 125 | <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104">UpdateTunedParameters</a> |
| 126 | }</td></tr> |
| 127 | <tr class="separator:a46c8a310cf4c094f8c80e1cb8dc1f911"><td class="memSeparator" colspan="2"> </td></tr> |
| 128 | <tr class="memitem:a707090747256af276c389e0cf1cb0a9a"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> { <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">Rapid</a> = 0, |
| 129 | <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">Normal</a> = 1, |
| 130 | <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">Exhaustive</a> = 2 |
| 131 | }</td></tr> |
| 132 | <tr class="separator:a707090747256af276c389e0cf1cb0a9a"><td class="memSeparator" colspan="2"> </td></tr> |
| 133 | </table><table class="memberdecls"> |
| 134 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a> |
| 135 | Public Member Functions</h2></td></tr> |
| 136 | <tr class="memitem:a45a36d69dc436c159d724481d5e9d34a"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a45a36d69dc436c159d724481d5e9d34a">Load</a> (const char *filename)=0</td></tr> |
| 137 | <tr class="memdesc:a45a36d69dc436c159d724481d5e9d34a"><td class="mdescLeft"> </td><td class="mdescRight">Loads an existing set of tuned parameters from the given file. <a href="#a45a36d69dc436c159d724481d5e9d34a">More...</a><br /></td></tr> |
| 138 | <tr class="separator:a45a36d69dc436c159d724481d5e9d34a"><td class="memSeparator" colspan="2"> </td></tr> |
| 139 | <tr class="memitem:a11d846652618fd5fe876891076cc6a68"><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a11d846652618fd5fe876891076cc6a68">Save</a> (const char *filename) const =0</td></tr> |
| 140 | <tr class="memdesc:a11d846652618fd5fe876891076cc6a68"><td class="mdescLeft"> </td><td class="mdescRight">Saves the current set of tuned parameters to the given file. <a href="#a11d846652618fd5fe876891076cc6a68">More...</a><br /></td></tr> |
| 141 | <tr class="separator:a11d846652618fd5fe876891076cc6a68"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | </table><table class="memberdecls"> |
| 143 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a> |
| 144 | Static Public Member Functions</h2></td></tr> |
| 145 | <tr class="memitem:a2c9ba55e7d8c02cb8596149e4e94e009"><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a2c9ba55e7d8c02cb8596149e4e94e009">Destroy</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> *params)</td></tr> |
| 146 | <tr class="separator:a2c9ba55e7d8c02cb8596149e4e94e009"><td class="memSeparator" colspan="2"> </td></tr> |
| 147 | <tr><td colspan="2"><div class="groupHeader"></div></td></tr> |
| 148 | <tr class="memitem:aab5b1541a77a293348a19f5885a4245e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#aab5b1541a77a293348a19f5885a4245e">CreateRaw</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> mode, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> tunerMode)</td></tr> |
| 149 | <tr class="memdesc:aab5b1541a77a293348a19f5885a4245e"><td class="mdescLeft"> </td><td class="mdescRight">Creates an IClTunedParameters with the given mode. <a href="#aab5b1541a77a293348a19f5885a4245e">More...</a><br /></td></tr> |
| 150 | <tr class="separator:aab5b1541a77a293348a19f5885a4245e"><td class="memSeparator" colspan="2"> </td></tr> |
| 151 | <tr class="memitem:a44a119f8130b33053df7b48615729868"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">IGpuAccTunedParametersPtr</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a44a119f8130b33053df7b48615729868">Create</a> (<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> mode, <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> tunerMode)</td></tr> |
| 152 | <tr class="separator:a44a119f8130b33053df7b48615729868"><td class="memSeparator" colspan="2"> </td></tr> |
| 153 | </table><table class="memberdecls"> |
| 154 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a> |
| 155 | Protected Member Functions</h2></td></tr> |
| 156 | <tr class="memitem:a42b98f24092313b6a7673b54a3a84aa4"><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a42b98f24092313b6a7673b54a3a84aa4">~IGpuAccTunedParameters</a> ()</td></tr> |
| 157 | <tr class="separator:a42b98f24092313b6a7673b54a3a84aa4"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | </table> |
| 159 | <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> |
| 160 | <div class="textblock"><p>Manages a set of GpuAcc parameters which have been tuned for maximum performance. </p> |
| 161 | <p>Passes an instance of this object to the <a class="el" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">IRuntime::Create()</a> method (via <a class="el" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a>) to use it for all GPU workload execution.</p> |
| 162 | <p>Can be created in two modes:</p><ul> |
| 163 | <li>In UseTunedParameters mode, the parameters stored in this object are used to execute GPU workloads.</li> |
| 164 | <li>In UpdateTunedParameters mode, additionally, whenever a GPU workload is executed for the first time, the optimum parameters will be found and stored in this object. WARNING - This tuning can be slow.</li> |
| 165 | </ul> |
| 166 | <p>The parameters can be loaded from and saved to a file so that you can first run a slow initial read-write execution, save the parameters for later and then run fast read-only executions using the optimised parameters. </p> |
| 167 | |
| 168 | <p class="definition">Definition at line <a class="el" href="_i_runtime_8hpp_source.xhtml#l00183">183</a> of file <a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a>.</p> |
| 169 | </div><h2 class="groupheader">Member Enumeration Documentation</h2> |
| 170 | <a id="a46c8a310cf4c094f8c80e1cb8dc1f911"></a> |
| 171 | <h2 class="memtitle"><span class="permalink"><a href="#a46c8a310cf4c094f8c80e1cb8dc1f911">◆ </a></span>Mode</h2> |
| 172 | |
| 173 | <div class="memitem"> |
| 174 | <div class="memproto"> |
| 175 | <table class="mlabels"> |
| 176 | <tr> |
| 177 | <td class="mlabels-left"> |
| 178 | <table class="memname"> |
| 179 | <tr> |
| 180 | <td class="memname">enum <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a></td> |
| 181 | </tr> |
| 182 | </table> |
| 183 | </td> |
| 184 | <td class="mlabels-right"> |
| 185 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 186 | </tr> |
| 187 | </table> |
| 188 | </div><div class="memdoc"> |
| 189 | <table class="fieldtable"> |
| 190 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b"></a>UseTunedParameters </td><td class="fielddoc"></td></tr> |
| 191 | <tr><td class="fieldname"><a id="a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104"></a>UpdateTunedParameters </td><td class="fielddoc"></td></tr> |
| 192 | </table> |
| 193 | |
| 194 | <p class="definition">Definition at line <a class="el" href="_i_runtime_8hpp_source.xhtml#l00186">186</a> of file <a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a>.</p> |
| 195 | <div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  {</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>  UseTunedParameters,</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  UpdateTunedParameters</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  };</div></div><!-- fragment --> |
| 196 | </div> |
| 197 | </div> |
| 198 | <a id="a707090747256af276c389e0cf1cb0a9a"></a> |
| 199 | <h2 class="memtitle"><span class="permalink"><a href="#a707090747256af276c389e0cf1cb0a9a">◆ </a></span>TuningLevel</h2> |
| 200 | |
| 201 | <div class="memitem"> |
| 202 | <div class="memproto"> |
| 203 | <table class="mlabels"> |
| 204 | <tr> |
| 205 | <td class="mlabels-left"> |
| 206 | <table class="memname"> |
| 207 | <tr> |
| 208 | <td class="memname">enum <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a></td> |
| 209 | </tr> |
| 210 | </table> |
| 211 | </td> |
| 212 | <td class="mlabels-right"> |
| 213 | <span class="mlabels"><span class="mlabel">strong</span></span> </td> |
| 214 | </tr> |
| 215 | </table> |
| 216 | </div><div class="memdoc"> |
| 217 | <table class="fieldtable"> |
| 218 | <tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68"></a>Rapid </td><td class="fielddoc"></td></tr> |
| 219 | <tr><td class="fieldname"><a id="a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0"></a>Normal </td><td class="fielddoc"></td></tr> |
| 220 | <tr><td class="fieldname"><a id="a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f"></a>Exhaustive </td><td class="fielddoc"></td></tr> |
| 221 | </table> |
| 222 | |
| 223 | <p class="definition">Definition at line <a class="el" href="_i_runtime_8hpp_source.xhtml#l00192">192</a> of file <a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a>.</p> |
| 224 | <div class="fragment"><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>  {</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>  <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">Rapid</a> = 0,</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>  <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">Normal</a> = 1,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">Exhaustive</a> = 2</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>  };</div><div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">armnn::TuningLevel::Rapid</a></div></div> |
| 225 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">armnn::TuningLevel::Exhaustive</a></div></div> |
| 226 | <div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">armnn::TuningLevel::Normal</a></div></div> |
| 227 | </div><!-- fragment --> |
| 228 | </div> |
| 229 | </div> |
| 230 | <h2 class="groupheader">Constructor & Destructor Documentation</h2> |
| 231 | <a id="a42b98f24092313b6a7673b54a3a84aa4"></a> |
| 232 | <h2 class="memtitle"><span class="permalink"><a href="#a42b98f24092313b6a7673b54a3a84aa4">◆ </a></span>~IGpuAccTunedParameters()</h2> |
| 233 | |
| 234 | <div class="memitem"> |
| 235 | <div class="memproto"> |
| 236 | <table class="mlabels"> |
| 237 | <tr> |
| 238 | <td class="mlabels-left"> |
| 239 | <table class="memname"> |
| 240 | <tr> |
| 241 | <td class="memname">virtual ~<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> </td> |
| 242 | <td>(</td> |
| 243 | <td class="paramname"></td><td>)</td> |
| 244 | <td></td> |
| 245 | </tr> |
| 246 | </table> |
| 247 | </td> |
| 248 | <td class="mlabels-right"> |
| 249 | <span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td> |
| 250 | </tr> |
| 251 | </table> |
| 252 | </div><div class="memdoc"> |
| 253 | |
| 254 | <p class="definition">Definition at line <a class="el" href="_i_runtime_8hpp_source.xhtml#l00215">215</a> of file <a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a>.</p> |
| 255 | <div class="fragment"><div class="line"><a name="l00215"></a><span class="lineno"> 215</span> {};</div></div><!-- fragment --> |
| 256 | </div> |
| 257 | </div> |
| 258 | <h2 class="groupheader">Member Function Documentation</h2> |
| 259 | <a id="a44a119f8130b33053df7b48615729868"></a> |
| 260 | <h2 class="memtitle"><span class="permalink"><a href="#a44a119f8130b33053df7b48615729868">◆ </a></span>Create()</h2> |
| 261 | |
| 262 | <div class="memitem"> |
| 263 | <div class="memproto"> |
| 264 | <table class="mlabels"> |
| 265 | <tr> |
| 266 | <td class="mlabels-left"> |
| 267 | <table class="memname"> |
| 268 | <tr> |
| 269 | <td class="memname"><a class="el" href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">armnn::IGpuAccTunedParametersPtr</a> Create </td> |
| 270 | <td>(</td> |
| 271 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> </td> |
| 272 | <td class="paramname"><em>mode</em>, </td> |
| 273 | </tr> |
| 274 | <tr> |
| 275 | <td class="paramkey"></td> |
| 276 | <td></td> |
| 277 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> </td> |
| 278 | <td class="paramname"><em>tunerMode</em> </td> |
| 279 | </tr> |
| 280 | <tr> |
| 281 | <td></td> |
| 282 | <td>)</td> |
| 283 | <td></td><td></td> |
| 284 | </tr> |
| 285 | </table> |
| 286 | </td> |
| 287 | <td class="mlabels-right"> |
| 288 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 289 | </tr> |
| 290 | </table> |
| 291 | </div><div class="memdoc"> |
| 292 | |
| 293 | <p class="definition">Definition at line <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00174">174</a> of file <a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a>.</p> |
| 294 | |
| 295 | <p class="reference">References <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00180">IGpuAccTunedParameters::Destroy()</a>.</p> |
| 296 | <div class="fragment"><div class="line"><a name="l00176"></a><span class="lineno"> 176</span> {</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keywordflow">return</span> <a class="code" href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">IGpuAccTunedParametersPtr</a>(<a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#aab5b1541a77a293348a19f5885a4245e">CreateRaw</a>(mode, tuningLevel), &<a class="code" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a2c9ba55e7d8c02cb8596149e4e94e009">IGpuAccTunedParameters::Destroy</a>);</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> }</div><div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_aab5b1541a77a293348a19f5885a4245e"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#aab5b1541a77a293348a19f5885a4245e">armnn::IGpuAccTunedParameters::CreateRaw</a></div><div class="ttdeci">static IGpuAccTunedParameters * CreateRaw(Mode mode, TuningLevel tunerMode)</div><div class="ttdoc">Creates an IClTunedParameters with the given mode. </div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8cpp_source.xhtml#l00168">ClContextControl.cpp:168</a></div></div> |
| 297 | <div class="ttc" id="classarmnn_1_1_i_gpu_acc_tuned_parameters_xhtml_a2c9ba55e7d8c02cb8596149e4e94e009"><div class="ttname"><a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a2c9ba55e7d8c02cb8596149e4e94e009">armnn::IGpuAccTunedParameters::Destroy</a></div><div class="ttdeci">static void Destroy(IGpuAccTunedParameters *params)</div><div class="ttdef"><b>Definition:</b> <a href="_cl_context_control_8cpp_source.xhtml#l00180">ClContextControl.cpp:180</a></div></div> |
| 298 | <div class="ttc" id="namespacearmnn_xhtml_a2d3a708a26ac6d77bf8f15506e89a25a"><div class="ttname"><a href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">armnn::IGpuAccTunedParametersPtr</a></div><div class="ttdeci">std::shared_ptr< IGpuAccTunedParameters > IGpuAccTunedParametersPtr</div><div class="ttdoc">The following API is replaced by the backend options API. </div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00170">IRuntime.hpp:170</a></div></div> |
| 299 | </div><!-- fragment --> |
| 300 | </div> |
| 301 | </div> |
| 302 | <a id="aab5b1541a77a293348a19f5885a4245e"></a> |
| 303 | <h2 class="memtitle"><span class="permalink"><a href="#aab5b1541a77a293348a19f5885a4245e">◆ </a></span>CreateRaw()</h2> |
| 304 | |
| 305 | <div class="memitem"> |
| 306 | <div class="memproto"> |
| 307 | <table class="mlabels"> |
| 308 | <tr> |
| 309 | <td class="mlabels-left"> |
| 310 | <table class="memname"> |
| 311 | <tr> |
| 312 | <td class="memname"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">armnn::IGpuAccTunedParameters</a> * CreateRaw </td> |
| 313 | <td>(</td> |
| 314 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a> </td> |
| 315 | <td class="paramname"><em>mode</em>, </td> |
| 316 | </tr> |
| 317 | <tr> |
| 318 | <td class="paramkey"></td> |
| 319 | <td></td> |
| 320 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a> </td> |
| 321 | <td class="paramname"><em>tunerMode</em> </td> |
| 322 | </tr> |
| 323 | <tr> |
| 324 | <td></td> |
| 325 | <td>)</td> |
| 326 | <td></td><td></td> |
| 327 | </tr> |
| 328 | </table> |
| 329 | </td> |
| 330 | <td class="mlabels-right"> |
| 331 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 332 | </tr> |
| 333 | </table> |
| 334 | </div><div class="memdoc"> |
| 335 | |
| 336 | <p>Creates an IClTunedParameters with the given mode. </p> |
| 337 | |
| 338 | <p class="definition">Definition at line <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00168">168</a> of file <a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a>.</p> |
| 339 | <div class="fragment"><div class="line"><a name="l00170"></a><span class="lineno"> 170</span> {</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  <span class="keywordflow">return</span> <span class="keyword">new</span> ClTunedParameters(mode, tuningLevel);</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span> }</div></div><!-- fragment --> |
| 340 | </div> |
| 341 | </div> |
| 342 | <a id="a2c9ba55e7d8c02cb8596149e4e94e009"></a> |
| 343 | <h2 class="memtitle"><span class="permalink"><a href="#a2c9ba55e7d8c02cb8596149e4e94e009">◆ </a></span>Destroy()</h2> |
| 344 | |
| 345 | <div class="memitem"> |
| 346 | <div class="memproto"> |
| 347 | <table class="mlabels"> |
| 348 | <tr> |
| 349 | <td class="mlabels-left"> |
| 350 | <table class="memname"> |
| 351 | <tr> |
| 352 | <td class="memname">void Destroy </td> |
| 353 | <td>(</td> |
| 354 | <td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> * </td> |
| 355 | <td class="paramname"><em>params</em></td><td>)</td> |
| 356 | <td></td> |
| 357 | </tr> |
| 358 | </table> |
| 359 | </td> |
| 360 | <td class="mlabels-right"> |
| 361 | <span class="mlabels"><span class="mlabel">static</span></span> </td> |
| 362 | </tr> |
| 363 | </table> |
| 364 | </div><div class="memdoc"> |
| 365 | |
| 366 | <p class="definition">Definition at line <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00180">180</a> of file <a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a>.</p> |
| 367 | |
| 368 | <p class="reference">Referenced by <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00174">IGpuAccTunedParameters::Create()</a>.</p> |
| 369 | <div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> {</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <span class="keyword">delete</span> params;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div></div><!-- fragment --> |
| 370 | </div> |
| 371 | </div> |
| 372 | <a id="a45a36d69dc436c159d724481d5e9d34a"></a> |
| 373 | <h2 class="memtitle"><span class="permalink"><a href="#a45a36d69dc436c159d724481d5e9d34a">◆ </a></span>Load()</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">virtual void Load </td> |
| 383 | <td>(</td> |
| 384 | <td class="paramtype">const char * </td> |
| 385 | <td class="paramname"><em>filename</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">pure virtual</span></span> </td> |
| 392 | </tr> |
| 393 | </table> |
| 394 | </div><div class="memdoc"> |
| 395 | |
| 396 | <p>Loads an existing set of tuned parameters from the given file. </p> |
| 397 | <p>If there is an error loading the file, an <a class="el" href="classarmnn_1_1_exception.xhtml" title="Base class for all ArmNN exceptions so that users can filter to just those. ">armnn::Exception</a> is thrown. </p> |
| 398 | |
| 399 | <p>Implemented in <a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#a889d1f94053989d53d14a401d38cbe66">ClTunedParameters</a>.</p> |
| 400 | |
| 401 | </div> |
| 402 | </div> |
| 403 | <a id="a11d846652618fd5fe876891076cc6a68"></a> |
| 404 | <h2 class="memtitle"><span class="permalink"><a href="#a11d846652618fd5fe876891076cc6a68">◆ </a></span>Save()</h2> |
| 405 | |
| 406 | <div class="memitem"> |
| 407 | <div class="memproto"> |
| 408 | <table class="mlabels"> |
| 409 | <tr> |
| 410 | <td class="mlabels-left"> |
| 411 | <table class="memname"> |
| 412 | <tr> |
| 413 | <td class="memname">virtual void Save </td> |
| 414 | <td>(</td> |
| 415 | <td class="paramtype">const char * </td> |
| 416 | <td class="paramname"><em>filename</em></td><td>)</td> |
| 417 | <td> const</td> |
| 418 | </tr> |
| 419 | </table> |
| 420 | </td> |
| 421 | <td class="mlabels-right"> |
| 422 | <span class="mlabels"><span class="mlabel">pure virtual</span></span> </td> |
| 423 | </tr> |
| 424 | </table> |
| 425 | </div><div class="memdoc"> |
| 426 | |
| 427 | <p>Saves the current set of tuned parameters to the given file. </p> |
| 428 | <p>If there is an error saving to the file, an <a class="el" href="classarmnn_1_1_exception.xhtml" title="Base class for all ArmNN exceptions so that users can filter to just those. ">armnn::Exception</a> is thrown. </p> |
| 429 | |
| 430 | <p>Implemented in <a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#abba27f4c1828aae6b0103bf1bc093f2c">ClTunedParameters</a>.</p> |
| 431 | |
| 432 | </div> |
| 433 | </div> |
| 434 | <hr/>The documentation for this class was generated from the following files:<ul> |
| 435 | <li>include/armnn/<a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a></li> |
| 436 | <li>src/backends/cl/<a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a></li> |
| 437 | </ul> |
| 438 | </div><!-- contents --> |
| 439 | </div><!-- doc-content --> |
| 440 | <!-- start footer part --> |
| 441 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 442 | <ul> |
| 443 | <li class="navelem"><a class="el" href="namespacearmnn.xhtml">armnn</a></li><li class="navelem"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a></li> |
| 444 | <li class="footer">Generated on Fri Mar 13 2020 16:09:18 for ArmNN by |
| 445 | <a href="http://www.doxygen.org/index.html"> |
| 446 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 447 | </ul> |
| 448 | </div> |
| 449 | </body> |
| 450 | </html> |