blob: 32aa7d7d30e52928690bde42d58565924711af37 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.9.1-->
<!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.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: tests/main.cpp File 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);
$(window).load(resizeHeight);
</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/javascript">
$(document).ready(function() { init_search(); });
</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" />
</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;">
<td style="padding-left: 0.5em;">
<div id="projectname">Compute Library
&#160;<span id="projectnumber">18.01</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
<li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
<li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.xhtml"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.xhtml"><span>File&#160;List</span></a></li>
<li><a href="globals.xhtml"><span>Globals</span></a></li>
</ul>
</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('main_8cpp.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="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">main.cpp File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="_toolchain_support_8h_source.xhtml">support/ToolchainSupport.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_assets_library_8h_source.xhtml">tests/AssetsLibrary.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_dataset_modes_8h_source.xhtml">tests/framework/DatasetModes.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_exceptions_8h_source.xhtml">tests/framework/Exceptions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_framework_8h_source.xhtml">tests/framework/Framework.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tests_2framework_2_macros_8h_source.xhtml">tests/framework/Macros.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_profiler_8h_source.xhtml">tests/framework/Profiler.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_command_line_options_8h_source.xhtml">tests/framework/command_line/CommandLineOptions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_command_line_parser_8h_source.xhtml">tests/framework/command_line/CommandLineParser.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_common_options_8h_source.xhtml">tests/framework/command_line/CommonOptions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_instruments_8h_source.xhtml">tests/framework/instruments/Instruments.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="tests_2framework_2printers_2_printers_8h_source.xhtml">tests/framework/printers/Printers.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="_scheduler_8h_source.xhtml">arm_compute/runtime/Scheduler.h</a>&quot;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;initializer_list&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;memory&gt;</code><br />
<code>#include &lt;random&gt;</code><br />
<code>#include &lt;utility&gt;</code><br />
</div>
<p><a href="main_8cpp_source.xhtml">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacearm__compute"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></td></tr>
<tr class="memdesc:namespacearm__compute"><td class="mdescLeft">&#160;</td><td class="mdescRight">This file contains all available output stages for GEMMLowp on OpenCL. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:namespacearm__compute_1_1test"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacearm__compute_1_1test.xhtml">arm_compute::test</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="main_8cpp.xhtml#a3c04138a5bfe5d72780bb7e82a18e627">main</a> (int argc, char **argv)</td></tr>
<tr class="separator:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a3c04138a5bfe5d72780bb7e82a18e627"></a>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int main </td>
<td>(</td>
<td class="paramtype">int&#160;</td>
<td class="paramname"><em>argc</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">char **&#160;</td>
<td class="paramname"><em>argv</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="main_8cpp_source.xhtml#l00063">63</a> of file <a class="el" href="main_8cpp_source.xhtml">main.cpp</a>.</p>
<p>References <a class="el" href="_command_line_parser_8h_source.xhtml#l00102">CommandLineParser::add_option()</a>, <a class="el" href="_command_line_parser_8h_source.xhtml#l00109">CommandLineParser::add_positional_option()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00599">Framework::add_printer()</a>, <a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cfa5fb1f955b45e38e31789286a1790398d">arm_compute::test::framework::ALL</a>, <a class="el" href="namespacearm__compute.xhtml#a64c17a5a42d2499a1626222ff9753b4d">arm_compute::build_information()</a>, <a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml#aca1fd1d8935433e6ba2e3918214e07f9a73e99d350a4aa6f1a5af04ec29173f73">arm_compute::test::framework::CONFIG</a>, <a class="el" href="_common_options_8cpp_source.xhtml#l00098">CommonOptions::create_printers()</a>, <a class="el" href="classarm__compute_1_1_g_c_scheduler.xhtml#a19bb5002a62b62e050e89c975f7b9fdf">GCScheduler::default_init()</a>, <a class="el" href="_c_l_scheduler_8h_source.xhtml#l00071">CLScheduler::default_init()</a>, <a class="el" href="namespacearm__compute.xhtml#a568b0fbfa3d903099d9c9f7b6acf188d">arm_compute::error()</a>, <a class="el" href="classarm__compute_1_1_g_c_scheduler.xhtml#ac758c6b5a7ccc31b7193cfde59c32109">GCScheduler::get()</a>, <a class="el" href="classarm__compute_1_1_scheduler.xhtml#acb4f87f1831680d8d1b70e1bef06bb81">Scheduler::get()</a>, <a class="el" href="classarm__compute_1_1_c_l_scheduler.xhtml#a60f9a6836b628a7171914c4afe43b4a7">CLScheduler::get()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00086">Framework::get()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00570">Framework::get_profiler()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00070">CommonOptions::help</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00092">Framework::init()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00071">CommonOptions::instruments</a>, <a class="el" href="_option_8cpp_source.xhtml#l00062">Option::is_set()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00072">CommonOptions::iterations</a>, <a class="el" href="main_8cpp_source.xhtml#l00059">arm_compute::test::library</a>, <a class="el" href="_common_options_8h_source.xhtml#l00076">CommonOptions::log_level</a>, <a class="el" href="_profiler_8cpp_source.xhtml#l00064">Profiler::measurements()</a>, <a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cfad791cd54143e331164a2b216451a5dd3">arm_compute::test::framework::NIGHTLY</a>, <a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml#aca1fd1d8935433e6ba2e3918214e07f9ab50339a10e1de285ac99d4c3990b8693">arm_compute::test::framework::NONE</a>, <a class="el" href="_command_line_parser_8cpp_source.xhtml#l00035">CommandLineParser::parse()</a>, <a class="el" href="caffe__data__extractor_8py_source.xhtml#l00018">caffe_data_extractor::parser</a>, <a class="el" href="namespacearm__compute_1_1test_1_1framework.xhtml#a7edf31944a6144ffd493d2f9a7bfb5cfab829534c7b40afdbd3c3ffea05202a97">arm_compute::test::framework::PRECOMMIT</a>, <a class="el" href="_command_line_parser_8cpp_source.xhtml#l00136">CommandLineParser::print_help()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00493">Framework::run()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00245">Framework::set_error_on_missing_assets()</a>, <a class="el" href="_option_8cpp_source.xhtml#l00052">Option::set_help()</a>, <a class="el" href="classarm__compute_1_1_i_scheduler.xhtml#a645ac2d9d4144fd0174296de7eb1e1b5">IScheduler::set_num_threads()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00235">Framework::set_stop_on_error()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00225">Framework::set_throw_errors()</a>, <a class="el" href="_profiler_8cpp_source.xhtml#l00040">Profiler::start()</a>, <a class="el" href="_profiler_8cpp_source.xhtml#l00048">Profiler::stop()</a>, <a class="el" href="_c_l_scheduler_8h_source.xhtml#l00180">CLScheduler::sync()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00604">Framework::test_infos()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00073">CommonOptions::threads</a>, <a class="el" href="_common_options_8h_source.xhtml#l00077">CommonOptions::throw_errors</a>, <a class="el" href="_type_printer_8h_source.xhtml#l00081">arm_compute::to_string()</a>, <a class="el" href="_toolchain_support_8h_source.xhtml#l00187">arm_compute::support::cpp11::to_string()</a>, <a class="el" href="_command_line_parser_8cpp_source.xhtml#l00101">CommandLineParser::validate()</a>, <a class="el" href="_simple_option_8h_source.xhtml#l00098">SimpleOption&lt; T &gt;::value()</a>, <a class="el" href="classarm__compute_1_1test_1_1framework_1_1_enum_option.xhtml#a56e1c8bae880a4eedf8d23194eca95ca">EnumOption&lt; T &gt;::value()</a>, and <a class="el" href="_enum_list_option_8h_source.xhtml#l00141">EnumListOption&lt; T &gt;::value()</a>.</p>
<div class="fragment"><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;{</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; CLScheduler::get().default_init();</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;</div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_GC</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span>&#160; GCScheduler::get().default_init();</div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_GC */</span><span class="preprocessor"></span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span>&#160;</div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span>&#160; <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml">framework::Framework</a> &amp;framework = framework::Framework::get();</div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span>&#160;</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml">framework::CommandLineParser</a> <a class="code" href="namespacecaffe__data__extractor.xhtml#a90eee7a4677ca8b1ed116364a24367f9">parser</a>;</div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span>&#160; std::set&lt;framework::DatasetMode&gt; allowed_modes</div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span>&#160; {</div><div class="line"><a name="l00079"></a><span class="lineno"> 79</span>&#160; framework::DatasetMode::PRECOMMIT,</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; framework::DatasetMode::NIGHTLY,</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160; framework::DatasetMode::ALL</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; };</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160; <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_common_options.xhtml">framework::CommonOptions</a> options(parser);</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; <span class="keyword">auto</span> dataset_mode = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_enum_option.xhtml">framework::EnumOption&lt;framework::DatasetMode&gt;</a>&gt;(<span class="stringliteral">&quot;mode&quot;</span>, allowed_modes, framework::DatasetMode::PRECOMMIT);</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160; dataset_mode-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;For managed datasets select which group to use&quot;</span>);</div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>&#160; <span class="keyword">auto</span> filter = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_simple_option.xhtml">framework::SimpleOption&lt;std::string&gt;</a>&gt;(<span class="stringliteral">&quot;filter&quot;</span>, <span class="stringliteral">&quot;.*&quot;</span>);</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>&#160; filter-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Regular expression to select test cases&quot;</span>);</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span>&#160; <span class="keyword">auto</span> filter_id = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_simple_option.xhtml">framework::SimpleOption&lt;std::string&gt;</a>&gt;(<span class="stringliteral">&quot;filter-id&quot;</span>);</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; filter_id-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;List of test ids. ... can be used to define a range.&quot;</span>);</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; <span class="keyword">auto</span> stop_on_error = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_toggle_option.xhtml">framework::ToggleOption</a>&gt;(<span class="stringliteral">&quot;stop-on-error&quot;</span>);</div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; stop_on_error-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Abort execution after the first failed test (useful for debugging)&quot;</span>);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keyword">auto</span> seed = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_simple_option.xhtml">framework::SimpleOption&lt;std::random_device::result_type&gt;</a>&gt;(<span class="stringliteral">&quot;seed&quot;</span>, std::random_device()());</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; seed-&gt;set_help(<span class="stringliteral">&quot;Global seed for random number generation&quot;</span>);</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">auto</span> list_tests = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_toggle_option.xhtml">framework::ToggleOption</a>&gt;(<span class="stringliteral">&quot;list-tests&quot;</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; list_tests-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;List all test names&quot;</span>);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">auto</span> test_instruments = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_toggle_option.xhtml">framework::ToggleOption</a>&gt;(<span class="stringliteral">&quot;test-instruments&quot;</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; test_instruments-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Test if the instruments work on the platform&quot;</span>);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <span class="keyword">auto</span> error_on_missing_assets = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">add_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_toggle_option.xhtml">framework::ToggleOption</a>&gt;(<span class="stringliteral">&quot;error-on-missing-assets&quot;</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; error_on_missing_assets-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Mark a test as failed instead of skipping it when assets are missing&quot;</span>);</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="keyword">auto</span> assets = parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a079cbecac60787502777460ef65491c0">add_positional_option</a>&lt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_simple_option.xhtml">framework::SimpleOption&lt;std::string&gt;</a>&gt;(<span class="stringliteral">&quot;assets&quot;</span>);</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; assets-&gt;<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Path to the assets directory&quot;</span>);</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keywordflow">try</span></div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; {</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a66fa8f960eac1bf561ba2cb8be0cc58a">parse</a>(argc, argv);</div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">if</span>(options.help-&gt;is_set() &amp;&amp; options.help-&gt;value())</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; {</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a5ff56e81c580d778a11ef91d5757be80">print_help</a>(argv[0]);</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; std::vector&lt;std::unique_ptr&lt;framework::Printer&gt;&gt; printers = options.create_printers();</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; Scheduler::get().set_num_threads(options.threads-&gt;value());</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; <span class="keywordflow">if</span>(options.log_level-&gt;value() &gt; framework::LogLevel::NONE)</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; {</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160; p-&gt;print_global_header();</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160; }</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; }</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; <span class="keywordflow">if</span>(options.log_level-&gt;value() &gt;= framework::LogLevel::CONFIG)</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;Version&quot;</span>, <a class="code" href="namespacearm__compute.xhtml#a64c17a5a42d2499a1626222ff9753b4d">build_information</a>());</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;Seed&quot;</span>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>(seed-&gt;value()));</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;Iterations&quot;</span>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>(options.iterations-&gt;value()));</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;Threads&quot;</span>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>(options.threads-&gt;value()));</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; {</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keyword">using</span> <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;Dataset mode&quot;</span>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">to_string</a>(dataset_mode-&gt;value()));</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; }</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a47fbbce86aea0ba4a9d539c069f840c9">init</a>(options.instruments-&gt;value(), options.iterations-&gt;value(), dataset_mode-&gt;value(), filter-&gt;value(), filter_id-&gt;value(), options.log_level-&gt;value());</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; {</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a5f16ced78873ee3a193490197fbf57a5">add_printer</a>(p.get());</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>&#160; }</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>&#160; framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a5e61ba4403f0d2bd4f755f59193af692">set_throw_errors</a>(options.throw_errors-&gt;value());</div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#ab4b7e9757ad7e9d23b608b617c5dffa6">set_stop_on_error</a>(stop_on_error-&gt;value());</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a46a0cefc3b9a13645548ec705f438ce9">set_error_on_missing_assets</a>(error_on_missing_assets-&gt;value());</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;</div><div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160; <span class="keywordtype">bool</span> success = <span class="keyword">true</span>;</div><div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160; <span class="keywordflow">if</span>(list_tests-&gt;value())</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; {</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; {</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; p-&gt;print_list_tests(framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#af77825496fa0fbf840b676d2c9aabaf4">test_infos</a>());</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; p-&gt;print_global_footer();</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; }</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160;</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keywordflow">if</span>(test_instruments-&gt;value())</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; {</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <a class="code" href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml">framework::Profiler</a> profiler = framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a0e42876589150f9ae9ad78d6446ef3b6">get_profiler</a>();</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; profiler.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#a60de64d75454385b23995437f1d72669">start</a>();</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; profiler.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#a8c528baf37154d347366083f0f816846">stop</a>();</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><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; p-&gt;print_measurements(profiler.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#a89d7c3c7bab828a9e87e23b269935ee4">measurements</a>());</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; }</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160;</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; }</div><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; <a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a> = support::cpp14::make_unique&lt;AssetsLibrary&gt;(assets-&gt;value(), seed-&gt;value());</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; <span class="keywordflow">if</span>(!parser.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#afd5aa83cd390b855c74887fca8407e84">validate</a>())</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; {</div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>&#160; <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>&#160; }</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno"> 184</span>&#160; success = framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a149ad6701e3e2414cb566bb414029841">run</a>();</div><div class="line"><a name="l00185"></a><span class="lineno"> 185</span>&#160;</div><div class="line"><a name="l00186"></a><span class="lineno"> 186</span>&#160; <span class="keywordflow">if</span>(options.log_level-&gt;value() &gt; framework::LogLevel::NONE)</div><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; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>&#160; {</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>&#160; p-&gt;print_global_footer();</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>&#160; }</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; }</div><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;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; CLScheduler::get().sync();</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>&#160; <span class="keywordflow">return</span> (success ? 0 : 1);</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>&#160; }</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>&#160; <span class="keywordflow">catch</span>(<span class="keyword">const</span> std::exception &amp;<a class="code" href="namespacearm__compute.xhtml#a568b0fbfa3d903099d9c9f7b6acf188d">error</a>)</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; {</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; std::cerr &lt;&lt; error.what() &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; <span class="keywordflow">if</span>(options.throw_errors-&gt;value())</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>&#160; {</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span>&#160; <span class="keywordflow">throw</span>;</div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>&#160; }</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>&#160; }</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>&#160;</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_toggle_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_toggle_option.xhtml">arm_compute::test::framework::ToggleOption</a></div><div class="ttdoc">Implementation of an option that can be either true or false. </div><div class="ttdef"><b>Definition:</b> <a href="_toggle_option_8h_source.xhtml#l00038">ToggleOption.h:38</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_command_line_parser_xhtml_a533951910a8df4f26eac7e534a226c5f"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a533951910a8df4f26eac7e534a226c5f">arm_compute::test::framework::CommandLineParser::add_option</a></div><div class="ttdeci">T * add_option(const std::string &amp;name, As &amp;&amp;...args)</div><div class="ttdoc">Function to add a new option to the parser. </div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8h_source.xhtml#l00102">CommandLineParser.h:102</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_1_1framework_xhtml_ace86dc6f3dfa4f3c256b3999ab250c0a"><div class="ttname"><a href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">arm_compute::test::framework::to_string</a></div><div class="ttdeci">std::string to_string(DatasetMode mode)</div><div class="ttdef"><b>Definition:</b> <a href="_dataset_modes_8h_source.xhtml#l00097">DatasetModes.h:97</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml">arm_compute::test::framework::Framework</a></div><div class="ttdoc">Main framework class. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8h_source.xhtml#l00083">Framework.h:83</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_profiler_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml">arm_compute::test::framework::Profiler</a></div><div class="ttdoc">Profiler class to collect benchmark numbers. </div><div class="ttdef"><b>Definition:</b> <a href="_profiler_8h_source.xhtml#l00045">Profiler.h:45</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a5e61ba4403f0d2bd4f755f59193af692"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a5e61ba4403f0d2bd4f755f59193af692">arm_compute::test::framework::Framework::set_throw_errors</a></div><div class="ttdeci">void set_throw_errors(bool throw_errors)</div><div class="ttdoc">Set whether errors are caught or thrown by the framework. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00225">Framework.cpp:225</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_simple_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_simple_option.xhtml">arm_compute::test::framework::SimpleOption&lt; std::string &gt;</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_command_line_parser_xhtml_a66fa8f960eac1bf561ba2cb8be0cc58a"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a66fa8f960eac1bf561ba2cb8be0cc58a">arm_compute::test::framework::CommandLineParser::parse</a></div><div class="ttdeci">void parse(int argc, char **argv)</div><div class="ttdoc">Parses the command line arguments and updates the options accordingly. </div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8cpp_source.xhtml#l00035">CommandLineParser.cpp:35</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a46a0cefc3b9a13645548ec705f438ce9"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a46a0cefc3b9a13645548ec705f438ce9">arm_compute::test::framework::Framework::set_error_on_missing_assets</a></div><div class="ttdeci">void set_error_on_missing_assets(bool error_on_missing_assets)</div><div class="ttdoc">Set whether a test should be considered as failed if its assets cannot be found. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00245">Framework.cpp:245</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_command_line_parser_xhtml_a079cbecac60787502777460ef65491c0"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a079cbecac60787502777460ef65491c0">arm_compute::test::framework::CommandLineParser::add_positional_option</a></div><div class="ttdeci">T * add_positional_option(As &amp;&amp;...args)</div><div class="ttdoc">Function to add a new positional argument to the parser. </div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8h_source.xhtml#l00109">CommandLineParser.h:109</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a47fbbce86aea0ba4a9d539c069f840c9"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a47fbbce86aea0ba4a9d539c069f840c9">arm_compute::test::framework::Framework::init</a></div><div class="ttdeci">void init(const std::vector&lt; framework::InstrumentsDescription &gt; &amp;instruments, int num_iterations, DatasetMode mode, const std::string &amp;name_filter, const std::string &amp;id_filter, LogLevel log_level)</div><div class="ttdoc">Init the framework. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00092">Framework.cpp:92</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_a568b0fbfa3d903099d9c9f7b6acf188d"><div class="ttname"><a href="namespacearm__compute.xhtml#a568b0fbfa3d903099d9c9f7b6acf188d">arm_compute::error</a></div><div class="ttdeci">void error(const char *function, const char *file, const int line, const char *msg,...)</div><div class="ttdoc">Print an error message then throw an std::runtime_error. </div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a149ad6701e3e2414cb566bb414029841"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a149ad6701e3e2414cb566bb414029841">arm_compute::test::framework::Framework::run</a></div><div class="ttdeci">bool run()</div><div class="ttdoc">Run all enabled test cases. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00493">Framework.cpp:493</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_af77825496fa0fbf840b676d2c9aabaf4"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#af77825496fa0fbf840b676d2c9aabaf4">arm_compute::test::framework::Framework::test_infos</a></div><div class="ttdeci">std::vector&lt; TestInfo &gt; test_infos() const </div><div class="ttdoc">List of TestInfo&amp;#39;s. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00604">Framework.cpp:604</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_command_line_parser_xhtml_afd5aa83cd390b855c74887fca8407e84"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#afd5aa83cd390b855c74887fca8407e84">arm_compute::test::framework::CommandLineParser::validate</a></div><div class="ttdeci">bool validate() const </div><div class="ttdoc">Validates the previously parsed command line arguments. </div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8cpp_source.xhtml#l00101">CommandLineParser.cpp:101</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_xhtml_a71326f0909d77386e29b511e1990a11f"><div class="ttname"><a href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">arm_compute::test::library</a></div><div class="ttdeci">std::unique_ptr&lt; AssetsLibrary &gt; library</div><div class="ttdef"><b>Definition:</b> <a href="main_8cpp_source.xhtml#l00059">main.cpp:59</a></div></div>
<div class="ttc" id="namespacecaffe__data__extractor_xhtml_a90eee7a4677ca8b1ed116364a24367f9"><div class="ttname"><a href="namespacecaffe__data__extractor.xhtml#a90eee7a4677ca8b1ed116364a24367f9">caffe_data_extractor.parser</a></div><div class="ttdeci">parser</div><div class="ttdef"><b>Definition:</b> <a href="caffe__data__extractor_8py_source.xhtml#l00018">caffe_data_extractor.py:18</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_enum_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_enum_option.xhtml">arm_compute::test::framework::EnumOption</a></div><div class="ttdoc">Implementation of a simple option that accepts a value from a fixed set. </div><div class="ttdef"><b>Definition:</b> <a href="_enum_option_8h_source.xhtml#l00042">EnumOption.h:42</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_profiler_xhtml_a89d7c3c7bab828a9e87e23b269935ee4"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#a89d7c3c7bab828a9e87e23b269935ee4">arm_compute::test::framework::Profiler::measurements</a></div><div class="ttdeci">const MeasurementsMap &amp; measurements() const </div><div class="ttdoc">Return measurements for all instruments. </div><div class="ttdef"><b>Definition:</b> <a href="_profiler_8cpp_source.xhtml#l00064">Profiler.cpp:64</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_profiler_xhtml_a60de64d75454385b23995437f1d72669"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#a60de64d75454385b23995437f1d72669">arm_compute::test::framework::Profiler::start</a></div><div class="ttdeci">void start()</div><div class="ttdoc">Start all added instruments to measure performance. </div><div class="ttdef"><b>Definition:</b> <a href="_profiler_8cpp_source.xhtml#l00040">Profiler.cpp:40</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a0e42876589150f9ae9ad78d6446ef3b6"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a0e42876589150f9ae9ad78d6446ef3b6">arm_compute::test::framework::Framework::get_profiler</a></div><div class="ttdeci">Profiler get_profiler() const </div><div class="ttdoc">Factory method to obtain a configured profiler. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00570">Framework.cpp:570</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_a64c17a5a42d2499a1626222ff9753b4d"><div class="ttname"><a href="namespacearm__compute.xhtml#a64c17a5a42d2499a1626222ff9753b4d">arm_compute::build_information</a></div><div class="ttdeci">std::string build_information()</div><div class="ttdoc">Returns the arm_compute library build information. </div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_command_line_parser_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml">arm_compute::test::framework::CommandLineParser</a></div><div class="ttdoc">Class to parse command line arguments. </div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8h_source.xhtml#l00043">CommandLineParser.h:43</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a5f16ced78873ee3a193490197fbf57a5"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a5f16ced78873ee3a193490197fbf57a5">arm_compute::test::framework::Framework::add_printer</a></div><div class="ttdeci">void add_printer(Printer *printer)</div><div class="ttdoc">Set the printer used for the output of test results. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00599">Framework.cpp:599</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_profiler_xhtml_a8c528baf37154d347366083f0f816846"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#a8c528baf37154d347366083f0f816846">arm_compute::test::framework::Profiler::stop</a></div><div class="ttdeci">void stop()</div><div class="ttdoc">Stop all added instruments. </div><div class="ttdef"><b>Definition:</b> <a href="_profiler_8cpp_source.xhtml#l00048">Profiler.cpp:48</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_option_xhtml_a48a2672f362eeed9a3e93403f4d3de37"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">arm_compute::test::framework::Option::set_help</a></div><div class="ttdeci">void set_help(std::string help)</div><div class="ttdoc">Set the help message for the option. </div><div class="ttdef"><b>Definition:</b> <a href="_option_8cpp_source.xhtml#l00052">Option.cpp:52</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_common_options_xhtml"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_common_options.xhtml">arm_compute::test::framework::CommonOptions</a></div><div class="ttdoc">Common command line options used to configure the framework. </div><div class="ttdef"><b>Definition:</b> <a href="_common_options_8h_source.xhtml#l00052">CommonOptions.h:52</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_command_line_parser_xhtml_a5ff56e81c580d778a11ef91d5757be80"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_command_line_parser.xhtml#a5ff56e81c580d778a11ef91d5757be80">arm_compute::test::framework::CommandLineParser::print_help</a></div><div class="ttdeci">void print_help(const std::string &amp;program_name) const </div><div class="ttdoc">Prints a help message for all configured options. </div><div class="ttdef"><b>Definition:</b> <a href="_command_line_parser_8cpp_source.xhtml#l00136">CommandLineParser.cpp:136</a></div></div>
<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_ab4b7e9757ad7e9d23b608b617c5dffa6"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#ab4b7e9757ad7e9d23b608b617c5dffa6">arm_compute::test::framework::Framework::set_stop_on_error</a></div><div class="ttdeci">void set_stop_on_error(bool stop_on_error)</div><div class="ttdoc">Set whether to abort execution after the first failed test. </div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00235">Framework.cpp:235</a></div></div>
</div><!-- fragment -->
</div>
</div>
</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="dir_59425e443f801f1f2fd8bbe4959a3ccf.xhtml">tests</a></li><li class="navelem"><a class="el" href="main_8cpp.xhtml">main.cpp</a></li>
<li class="footer">Generated on Wed Jan 24 2018 14:30:43 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>