blob: 545a6eaf749bb1e10c936d5b56e1491708ccfd95 [file] [log] [blame]
<!-- Copyright (c) 2020 ARM Limited. -->
<!-- -->
<!-- SPDX-License-Identifier: MIT -->
<!-- -->
<!-- HTML header for doxygen 1.8.13-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" />
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ArmNN: IGpuAccTunedParameters Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/>
<td style="padding-left: 0.5em;">
<div id="projectname">
&#160;<span id="projectnumber">20.02</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classarmnn_1_1_i_gpu_acc_tuned_parameters-members.xhtml">List of all members</a> </div>
<div class="headertitle">
<div class="title">IGpuAccTunedParameters Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span></div> </div>
</div><!--header-->
<div class="contents">
<p>Manages a set of GpuAcc parameters which have been tuned for maximum performance.
<a href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for IGpuAccTunedParameters:</div>
<div class="dyncontent">
<div class="center">
<img src="classarmnn_1_1_i_gpu_acc_tuned_parameters.png" usemap="#IGpuAccTunedParameters_map" alt=""/>
<map id="IGpuAccTunedParameters_map" name="IGpuAccTunedParameters_map">
<area href="classarmnn_1_1_cl_tuned_parameters.xhtml" alt="ClTunedParameters" shape="rect" coords="0,56,160,80"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a46c8a310cf4c094f8c80e1cb8dc1f911"><td class="memItemLeft" align="right" valign="top">enum &#160;</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>,
<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104">UpdateTunedParameters</a>
}</td></tr>
<tr class="separator:a46c8a310cf4c094f8c80e1cb8dc1f911"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a707090747256af276c389e0cf1cb0a9a"><td class="memItemLeft" align="right" valign="top">enum &#160;</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,
<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">Normal</a> = 1,
<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">Exhaustive</a> = 2
}</td></tr>
<tr class="separator:a707090747256af276c389e0cf1cb0a9a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a45a36d69dc436c159d724481d5e9d34a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</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>
<tr class="memdesc:a45a36d69dc436c159d724481d5e9d34a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Loads an existing set of tuned parameters from the given file. <a href="#a45a36d69dc436c159d724481d5e9d34a">More...</a><br /></td></tr>
<tr class="separator:a45a36d69dc436c159d724481d5e9d34a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11d846652618fd5fe876891076cc6a68"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</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>
<tr class="memdesc:a11d846652618fd5fe876891076cc6a68"><td class="mdescLeft">&#160;</td><td class="mdescRight">Saves the current set of tuned parameters to the given file. <a href="#a11d846652618fd5fe876891076cc6a68">More...</a><br /></td></tr>
<tr class="separator:a11d846652618fd5fe876891076cc6a68"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a2c9ba55e7d8c02cb8596149e4e94e009"><td class="memItemLeft" align="right" valign="top">static void&#160;</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>
<tr class="separator:a2c9ba55e7d8c02cb8596149e4e94e009"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader"></div></td></tr>
<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> *&#160;</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>
<tr class="memdesc:aab5b1541a77a293348a19f5885a4245e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an IClTunedParameters with the given mode. <a href="#aab5b1541a77a293348a19f5885a4245e">More...</a><br /></td></tr>
<tr class="separator:aab5b1541a77a293348a19f5885a4245e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a44a119f8130b33053df7b48615729868"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">IGpuAccTunedParametersPtr</a>&#160;</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>
<tr class="separator:a44a119f8130b33053df7b48615729868"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a42b98f24092313b6a7673b54a3a84aa4"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a42b98f24092313b6a7673b54a3a84aa4">~IGpuAccTunedParameters</a> ()</td></tr>
<tr class="separator:a42b98f24092313b6a7673b54a3a84aa4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Manages a set of GpuAcc parameters which have been tuned for maximum performance. </p>
<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>
<p>Can be created in two modes:</p><ul>
<li>In UseTunedParameters mode, the parameters stored in this object are used to execute GPU workloads.</li>
<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>
</ul>
<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>
<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>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a46c8a310cf4c094f8c80e1cb8dc1f911"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a46c8a310cf4c094f8c80e1cb8dc1f911">&#9670;&nbsp;</a></span>Mode</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a46c8a310cf4c094f8c80e1cb8dc1f911aa5094385565dc10dda530dcc17a1159b"></a>UseTunedParameters&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a46c8a310cf4c094f8c80e1cb8dc1f911ac20468a4ef4b1707d13a1aea2ece6104"></a>UpdateTunedParameters&#160;</td><td class="fielddoc"></td></tr>
</table>
<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>
<div class="fragment"><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>&#160; {</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span>&#160; UseTunedParameters,</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; UpdateTunedParameters</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; };</div></div><!-- fragment -->
</div>
</div>
<a id="a707090747256af276c389e0cf1cb0a9a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a707090747256af276c389e0cf1cb0a9a">&#9670;&nbsp;</a></span>TuningLevel</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">strong</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68"></a>Rapid&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0"></a>Normal&#160;</td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f"></a>Exhaustive&#160;</td><td class="fielddoc"></td></tr>
</table>
<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>
<div class="fragment"><div class="line"><a name="l00193"></a><span class="lineno"> 193</span>&#160; {</div><div class="line"><a name="l00194"></a><span class="lineno"> 194</span>&#160; <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">Rapid</a> = 0,</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">Normal</a> = 1,</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <a class="code" href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">Exhaustive</a> = 2</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160; };</div><div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aab571ef5b2664270d25bea4f4b61ffe68">armnn::TuningLevel::Rapid</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aafaf34f09ea1e93bfbf591e19dc0dfb9f">armnn::TuningLevel::Exhaustive</a></div></div>
<div class="ttc" id="namespacearmnn_xhtml_a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0"><div class="ttname"><a href="namespacearmnn.xhtml#a707090747256af276c389e0cf1cb0a9aa960b44c579bc2f6818d2daaf9e4c16f0">armnn::TuningLevel::Normal</a></div></div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a42b98f24092313b6a7673b54a3a84aa4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a42b98f24092313b6a7673b54a3a84aa4">&#9670;&nbsp;</a></span>~IGpuAccTunedParameters()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual ~<a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">protected</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<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>
<div class="fragment"><div class="line"><a name="l00215"></a><span class="lineno"> 215</span>&#160;{};</div></div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a44a119f8130b33053df7b48615729868"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44a119f8130b33053df7b48615729868">&#9670;&nbsp;</a></span>Create()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="namespacearmnn.xhtml#a2d3a708a26ac6d77bf8f15506e89a25a">armnn::IGpuAccTunedParametersPtr</a> Create </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a>&#160;</td>
<td class="paramname"><em>mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a>&#160;</td>
<td class="paramname"><em>tunerMode</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<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>
<p class="reference">References <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00180">IGpuAccTunedParameters::Destroy()</a>.</p>
<div class="fragment"><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;{</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; <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), &amp;<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>&#160;}</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>
<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>
<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&lt; IGpuAccTunedParameters &gt; 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>
</div><!-- fragment -->
</div>
</div>
<a id="aab5b1541a77a293348a19f5885a4245e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab5b1541a77a293348a19f5885a4245e">&#9670;&nbsp;</a></span>CreateRaw()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">armnn::IGpuAccTunedParameters</a> * CreateRaw </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a46c8a310cf4c094f8c80e1cb8dc1f911">Mode</a>&#160;</td>
<td class="paramname"><em>mode</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml#a707090747256af276c389e0cf1cb0a9a">TuningLevel</a>&#160;</td>
<td class="paramname"><em>tunerMode</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates an IClTunedParameters with the given mode. </p>
<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>
<div class="fragment"><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160;{</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <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>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a2c9ba55e7d8c02cb8596149e4e94e009"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2c9ba55e7d8c02cb8596149e4e94e009">&#9670;&nbsp;</a></span>Destroy()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void Destroy </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml">IGpuAccTunedParameters</a> *&#160;</td>
<td class="paramname"><em>params</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<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>
<p class="reference">Referenced by <a class="el" href="_cl_context_control_8cpp_source.xhtml#l00174">IGpuAccTunedParameters::Create()</a>.</p>
<div class="fragment"><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160;{</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; <span class="keyword">delete</span> params;</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;}</div></div><!-- fragment -->
</div>
</div>
<a id="a45a36d69dc436c159d724481d5e9d34a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45a36d69dc436c159d724481d5e9d34a">&#9670;&nbsp;</a></span>Load()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Load </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Loads an existing set of tuned parameters from the given file. </p>
<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>
<p>Implemented in <a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#a889d1f94053989d53d14a401d38cbe66">ClTunedParameters</a>.</p>
</div>
</div>
<a id="a11d846652618fd5fe876891076cc6a68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a11d846652618fd5fe876891076cc6a68">&#9670;&nbsp;</a></span>Save()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">virtual void Save </td>
<td>(</td>
<td class="paramtype">const char *&#160;</td>
<td class="paramname"><em>filename</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">pure virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Saves the current set of tuned parameters to the given file. </p>
<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>
<p>Implemented in <a class="el" href="classarmnn_1_1_cl_tuned_parameters.xhtml#abba27f4c1828aae6b0103bf1bc093f2c">ClTunedParameters</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/armnn/<a class="el" href="_i_runtime_8hpp_source.xhtml">IRuntime.hpp</a></li>
<li>src/backends/cl/<a class="el" href="_cl_context_control_8cpp_source.xhtml">ClContextControl.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<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>
<li class="footer">Generated on Fri Mar 13 2020 16:09:18 for ArmNN by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
</ul>
</div>
</body>
</html>