blob: 37b104a74fa175c953a16b23505fd322cbdae2c2 [file] [log] [blame]
Jenkins514be652019-02-28 12:25:18 +00001<!-- HTML header for doxygen 1.8.15-->
2<!-- Remember to use version doxygen 1.8.15 +-->
Kaizen8938bd32017-09-28 14:38:23 +01003<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xmlns="http://www.w3.org/1999/xhtml">
5<head>
6<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
7<meta http-equiv="X-UA-Compatible" content="IE=9"/>
Jenkins514be652019-02-28 12:25:18 +00008<meta name="generator" content="Doxygen 1.8.15"/>
Kaizen8938bd32017-09-28 14:38:23 +01009<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
10<title>Compute Library: tests/main.cpp File Reference</title>
11<link href="tabs.css" rel="stylesheet" type="text/css"/>
12<script type="text/javascript" src="jquery.js"></script>
13<script type="text/javascript" src="dynsections.js"></script>
14<link href="navtree.css" rel="stylesheet" type="text/css"/>
15<script type="text/javascript" src="resize.js"></script>
Anthony Barbier8140e1e2017-12-14 23:48:46 +000016<script type="text/javascript" src="navtreedata.js"></script>
Kaizen8938bd32017-09-28 14:38:23 +010017<script type="text/javascript" src="navtree.js"></script>
18<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000019/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Kaizen8938bd32017-09-28 14:38:23 +010020 $(document).ready(initResizable);
Jenkins514be652019-02-28 12:25:18 +000021/* @license-end */</script>
Kaizen8938bd32017-09-28 14:38:23 +010022<link href="search/search.css" rel="stylesheet" type="text/css"/>
Anthony Barbier8140e1e2017-12-14 23:48:46 +000023<script type="text/javascript" src="search/searchdata.js"></script>
Kaizen8938bd32017-09-28 14:38:23 +010024<script type="text/javascript" src="search/search.js"></script>
Kaizen8938bd32017-09-28 14:38:23 +010025<script type="text/x-mathjax-config">
26 MathJax.Hub.Config({
27 extensions: ["tex2jax.js"],
28 jax: ["input/TeX","output/HTML-CSS"],
29});
Jenkins514be652019-02-28 12:25:18 +000030</script><script type="text/javascript" async="async" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
Kaizen8938bd32017-09-28 14:38:23 +010031<link href="doxygen.css" rel="stylesheet" type="text/css" />
Jenkins514be652019-02-28 12:25:18 +000032<link href="stylesheet.css" rel="stylesheet" type="text/css"/>
Kaizen8938bd32017-09-28 14:38:23 +010033</head>
34<body>
35<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
36<div id="titlearea">
37<table cellspacing="0" cellpadding="0">
38 <tbody>
39 <tr style="height: 56px;">
Jenkins514be652019-02-28 12:25:18 +000040 <img alt="Compute Library" src="https://raw.githubusercontent.com/ARM-software/ComputeLibrary/gh-pages/ACL_logo.png" style="max-width: 100%;margin-top: 15px;margin-left: 10px"/>
Kaizen8938bd32017-09-28 14:38:23 +010041 <td style="padding-left: 0.5em;">
Jenkins514be652019-02-28 12:25:18 +000042 <div id="projectname">
43 &#160;<span id="projectnumber">19.02</span>
Kaizen8938bd32017-09-28 14:38:23 +010044 </div>
45 </td>
46 </tr>
47 </tbody>
48</table>
49</div>
50<!-- end header part -->
Jenkins514be652019-02-28 12:25:18 +000051<!-- Generated by Doxygen 1.8.15 -->
Kaizen8938bd32017-09-28 14:38:23 +010052<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000053/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Kaizen8938bd32017-09-28 14:38:23 +010054var searchBox = new SearchBox("searchBox", "search",false,'Search');
Jenkins514be652019-02-28 12:25:18 +000055/* @license-end */
Kaizen8938bd32017-09-28 14:38:23 +010056</script>
Jenkinsb9abeae2018-11-22 11:58:08 +000057<script type="text/javascript" src="menudata.js"></script>
58<script type="text/javascript" src="menu.js"></script>
59<script type="text/javascript">
Jenkins514be652019-02-28 12:25:18 +000060/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Jenkinsb9abeae2018-11-22 11:58:08 +000061$(function() {
62 initMenu('',true,false,'search.php','Search');
63 $(document).ready(function() { init_search(); });
64});
Jenkins514be652019-02-28 12:25:18 +000065/* @license-end */</script>
Jenkinsb9abeae2018-11-22 11:58:08 +000066<div id="main-nav"></div>
Kaizen8938bd32017-09-28 14:38:23 +010067</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">
Jenkins514be652019-02-28 12:25:18 +000079/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
Kaizen8938bd32017-09-28 14:38:23 +010080$(document).ready(function(){initNavTree('main_8cpp.xhtml','');});
Jenkins514be652019-02-28 12:25:18 +000081/* @license-end */
Kaizen8938bd32017-09-28 14:38:23 +010082</script>
83<div id="doc-content">
84<!-- window showing the filter options -->
85<div id="MSearchSelectWindow"
86 onmouseover="return searchBox.OnSearchSelectShow()"
87 onmouseout="return searchBox.OnSearchSelectHide()"
88 onkeydown="return searchBox.OnSearchSelectKey(event)">
Anthony Barbier8140e1e2017-12-14 23:48:46 +000089</div>
Kaizen8938bd32017-09-28 14:38:23 +010090
91<!-- iframe showing the search results (closed by default) -->
92<div id="MSearchResultsWindow">
93<iframe src="javascript:void(0)" frameborder="0"
94 name="MSearchResults" id="MSearchResults">
95</iframe>
96</div>
97
98<div class="header">
99 <div class="summary">
100<a href="#namespaces">Namespaces</a> &#124;
101<a href="#func-members">Functions</a> </div>
102 <div class="headertitle">
103<div class="title">main.cpp File Reference</div> </div>
104</div><!--header-->
105<div class="contents">
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000106<div class="textblock"><code>#include &quot;<a class="el" href="_toolchain_support_8h_source.xhtml">support/ToolchainSupport.h</a>&quot;</code><br />
107<code>#include &quot;<a class="el" href="_assets_library_8h_source.xhtml">tests/AssetsLibrary.h</a>&quot;</code><br />
108<code>#include &quot;<a class="el" href="_dataset_modes_8h_source.xhtml">tests/framework/DatasetModes.h</a>&quot;</code><br />
109<code>#include &quot;<a class="el" href="_exceptions_8h_source.xhtml">tests/framework/Exceptions.h</a>&quot;</code><br />
110<code>#include &quot;<a class="el" href="_framework_8h_source.xhtml">tests/framework/Framework.h</a>&quot;</code><br />
111<code>#include &quot;<a class="el" href="tests_2framework_2_macros_8h_source.xhtml">tests/framework/Macros.h</a>&quot;</code><br />
112<code>#include &quot;<a class="el" href="_profiler_8h_source.xhtml">tests/framework/Profiler.h</a>&quot;</code><br />
Anthony Barbierf45d5a92018-01-24 16:23:15 +0000113<code>#include &quot;<a class="el" href="_common_options_8h_source.xhtml">tests/framework/command_line/CommonOptions.h</a>&quot;</code><br />
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000114<code>#include &quot;<a class="el" href="_instruments_8h_source.xhtml">tests/framework/instruments/Instruments.h</a>&quot;</code><br />
115<code>#include &quot;<a class="el" href="tests_2framework_2printers_2_printers_8h_source.xhtml">tests/framework/printers/Printers.h</a>&quot;</code><br />
Jenkins52ba29e2018-08-29 15:32:11 +0000116<code>#include &quot;<a class="el" href="_command_line_options_8h_source.xhtml">utils/command_line/CommandLineOptions.h</a>&quot;</code><br />
117<code>#include &quot;<a class="el" href="_command_line_parser_8h_source.xhtml">utils/command_line/CommandLineParser.h</a>&quot;</code><br />
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000118<code>#include &quot;<a class="el" href="_scheduler_8h_source.xhtml">arm_compute/runtime/Scheduler.h</a>&quot;</code><br />
119<code>#include &lt;fstream&gt;</code><br />
120<code>#include &lt;initializer_list&gt;</code><br />
121<code>#include &lt;iostream&gt;</code><br />
122<code>#include &lt;memory&gt;</code><br />
123<code>#include &lt;random&gt;</code><br />
124<code>#include &lt;utility&gt;</code><br />
Kaizen8938bd32017-09-28 14:38:23 +0100125</div>
126<p><a href="main_8cpp_source.xhtml">Go to the source code of this file.</a></p>
127<table class="memberdecls">
128<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
129Namespaces</h2></td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000130<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>
Jenkinsb9abeae2018-11-22 11:58:08 +0000131<tr class="memdesc:namespacearm__compute"><td class="mdescLeft">&#160;</td><td class="mdescRight">Copyright (c) 2017-2018 ARM Limited. <br /></td></tr>
Kaizen8938bd32017-09-28 14:38:23 +0100132<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000133<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>
Kaizen8938bd32017-09-28 14:38:23 +0100134<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
135</table><table class="memberdecls">
136<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
137Functions</h2></td></tr>
138<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>
139<tr class="separator:a3c04138a5bfe5d72780bb7e82a18e627"><td class="memSeparator" colspan="2">&#160;</td></tr>
140</table>
141<h2 class="groupheader">Function Documentation</h2>
Jenkinsb9abeae2018-11-22 11:58:08 +0000142<a id="a3c04138a5bfe5d72780bb7e82a18e627"></a>
143<h2 class="memtitle"><span class="permalink"><a href="#a3c04138a5bfe5d72780bb7e82a18e627">&#9670;&nbsp;</a></span>main()</h2>
144
Kaizen8938bd32017-09-28 14:38:23 +0100145<div class="memitem">
146<div class="memproto">
147 <table class="memname">
148 <tr>
149 <td class="memname">int main </td>
150 <td>(</td>
151 <td class="paramtype">int&#160;</td>
152 <td class="paramname"><em>argc</em>, </td>
153 </tr>
154 <tr>
155 <td class="paramkey"></td>
156 <td></td>
157 <td class="paramtype">char **&#160;</td>
158 <td class="paramname"><em>argv</em>&#160;</td>
159 </tr>
160 <tr>
161 <td></td>
162 <td>)</td>
163 <td></td><td></td>
164 </tr>
165 </table>
166</div><div class="memdoc">
167
Jenkins514be652019-02-28 12:25:18 +0000168<p class="definition">Definition at line <a class="el" href="main_8cpp_source.xhtml#l00090">90</a> of file <a class="el" href="main_8cpp_source.xhtml">main.cpp</a>.</p>
169<div class="fragment"><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160;{</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span>&#160; <a class="code" href="classarm__compute_1_1_c_l_tuner.xhtml">CLTuner</a> cl_tuner(<span class="keyword">false</span>);</div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160; <span class="keywordflow">if</span>(<a class="code" href="namespacearm__compute.xhtml#a5f49decb4b0a74d5361686ab45db8961">opencl_is_available</a>())</div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; {</div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; <span class="keyword">auto</span> ctx_dev_err = <a class="code" href="namespacearm__compute.xhtml#aca9062d049299f125a442eac466402fd">create_opencl_context_and_device</a>();</div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="code" href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a>(std::get&lt;2&gt;(ctx_dev_err) != CL_SUCCESS, <span class="stringliteral">&quot;Failed to create OpenCL context&quot;</span>);</div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; CLScheduler::get()</div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; .default_init_with_context(std::get&lt;1&gt;(ctx_dev_err), std::get&lt;0&gt;(ctx_dev_err), &amp;cl_tuner);</div><div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; }</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_GC</span></div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; GCScheduler::get().default_init();</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_GC */</span><span class="preprocessor"></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; <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="l00108"></a><span class="lineno"> 108</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml">utils::CommandLineParser</a> parser;</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; std::set&lt;framework::DatasetMode&gt; allowed_modes</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; {</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; framework::DatasetMode::PRECOMMIT,</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160; framework::DatasetMode::NIGHTLY,</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; framework::DatasetMode::ALL</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;</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</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="l00119"></a><span class="lineno"> 119</span>&#160;</div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keyword">auto</span> dataset_mode = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_enum_option.xhtml">utils::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="l00121"></a><span class="lineno"> 121</span>&#160; dataset_mode-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00122"></a><span class="lineno"> 122</span>&#160; <span class="keyword">auto</span> filter = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">utils::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="l00123"></a><span class="lineno"> 123</span>&#160; filter-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00124"></a><span class="lineno"> 124</span>&#160; <span class="keyword">auto</span> filter_id = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">utils::SimpleOption&lt;std::string&gt;</a>&gt;(<span class="stringliteral">&quot;filter-id&quot;</span>);</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; filter_id-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00126"></a><span class="lineno"> 126</span>&#160; <span class="keyword">auto</span> stop_on_error = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">utils::ToggleOption</a>&gt;(<span class="stringliteral">&quot;stop-on-error&quot;</span>);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160; stop_on_error-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00128"></a><span class="lineno"> 128</span>&#160; <span class="keyword">auto</span> seed = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">utils::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="l00129"></a><span class="lineno"> 129</span>&#160; seed-&gt;set_help(<span class="stringliteral">&quot;Global seed for random number generation&quot;</span>);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160; <span class="keyword">auto</span> list_tests = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">utils::ToggleOption</a>&gt;(<span class="stringliteral">&quot;list-tests&quot;</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; list_tests-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;List all test names&quot;</span>);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; <span class="keyword">auto</span> test_instruments = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">utils::ToggleOption</a>&gt;(<span class="stringliteral">&quot;test-instruments&quot;</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; test_instruments-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">auto</span> error_on_missing_assets = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">utils::ToggleOption</a>&gt;(<span class="stringliteral">&quot;error-on-missing-assets&quot;</span>, <span class="keyword">false</span>);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; error_on_missing_assets-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00136"></a><span class="lineno"> 136</span>&#160; <span class="keyword">auto</span> assets = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#abe52559b86ae874453f5a80b0828ec1c">add_positional_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">utils::SimpleOption&lt;std::string&gt;</a>&gt;(<span class="stringliteral">&quot;assets&quot;</span>);</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; assets-&gt;<a class="code" href="classarm__compute_1_1utils_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="l00138"></a><span class="lineno"> 138</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; <span class="keyword">auto</span> enable_tuner = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">utils::ToggleOption</a>&gt;(<span class="stringliteral">&quot;enable-tuner&quot;</span>);</div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; enable_tuner-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Enable OpenCL dynamic tuner&quot;</span>);</div><div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keyword">auto</span> tuner_file = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">utils::SimpleOption&lt;std::string&gt;</a>&gt;(<span class="stringliteral">&quot;tuner-file&quot;</span>, <span class="stringliteral">&quot;&quot;</span>);</div><div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; tuner_file-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;File to load/save CLTuner values&quot;</span>);</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; <span class="keyword">auto</span> threads = parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">add_option</a>&lt;<a class="code" href="classarm__compute_1_1utils_1_1_simple_option.xhtml">utils::SimpleOption&lt;int&gt;</a>&gt;(<span class="stringliteral">&quot;threads&quot;</span>, 1);</div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>&#160; threads-&gt;<a class="code" href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">set_help</a>(<span class="stringliteral">&quot;Number of threads to use&quot;</span>);</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; <span class="keywordflow">try</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span>&#160; {</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160; parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a66fa8f960eac1bf561ba2cb8be0cc58a">parse</a>(argc, argv);</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="keywordflow">if</span>(options.help-&gt;is_set() &amp;&amp; options.help-&gt;value())</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; parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#aa5da3e535faa6847a0da40fe7fb28383">print_help</a>(argv[0]);</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160; }</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; std::vector&lt;std::unique_ptr&lt;framework::Printer&gt;&gt; printers = options.create_printers();</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160; Scheduler::get().set_num_threads(threads-&gt;value());</div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <span class="keywordflow">if</span>(enable_tuner-&gt;is_set())</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; cl_tuner.set_tune_new_kernels(enable_tuner-&gt;value());</div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="comment">// If that&#39;s the first run then the file won&#39;t exist yet</span></div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keywordflow">if</span>(file_exists(tuner_file-&gt;value()))</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; {</div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; cl_tuner.load_from_file(tuner_file-&gt;value());</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; }</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; }</div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">else</span> <span class="keywordflow">if</span>(!tuner_file-&gt;value().empty())</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; {</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="comment">//If we&#39;re not tuning and the file doesn&#39;t exist then we should raise an error:</span></div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; cl_tuner.load_from_file(tuner_file-&gt;value());</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160; }</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160; <span class="keywordflow">if</span>(options.log_level-&gt;value() &gt; framework::LogLevel::NONE)</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; {</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; {</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160; p-&gt;print_global_header();</div><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; }</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; <span class="keywordflow">if</span>(options.log_level-&gt;value() &gt;= framework::LogLevel::CONFIG)</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">for</span>(<span class="keyword">auto</span> &amp;p : printers)</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; 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="l00189"></a><span class="lineno"> 189</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;CommandLine&quot;</span>, command_line(argc, argv));</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</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="l00191"></a><span class="lineno"> 191</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span>&#160; <span class="keywordflow">if</span>(<a class="code" href="namespacearm__compute.xhtml#a5f49decb4b0a74d5361686ab45db8961">opencl_is_available</a>())</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; p-&gt;print_entry(<span class="stringliteral">&quot;CL_DEVICE_VERSION&quot;</span>, CLKernelLibrary::get().get_device_version());</div><div class="line"><a name="l00195"></a><span class="lineno"> 195</span>&#160; }</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>&#160; <span class="keywordflow">else</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; p-&gt;print_entry(<span class="stringliteral">&quot;CL_DEVICE_VERSION&quot;</span>, <span class="stringliteral">&quot;Unavailable&quot;</span>);</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="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span>&#160; <span class="keyword">const</span> <a class="code" href="classarm__compute_1_1_c_p_u_info.xhtml">arm_compute::CPUInfo</a> &amp;cpu_info = Scheduler::get().cpu_info();</div><div class="line"><a name="l00202"></a><span class="lineno"> 202</span>&#160; <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> num_cpus = cpu_info.<a class="code" href="classarm__compute_1_1_c_p_u_info.xhtml#a3828c0e892d45f2b4af6dc5d34c377b7">get_cpu_num</a>();</div><div class="line"><a name="l00203"></a><span class="lineno"> 203</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;cpu_has_fp16&quot;</span>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>(cpu_info.<a class="code" href="classarm__compute_1_1_c_p_u_info.xhtml#a0647761f309e3b3edb5a5501b3ff38d2">has_fp16</a>()));</div><div class="line"><a name="l00204"></a><span class="lineno"> 204</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;cpu_has_dotprod&quot;</span>, <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>(cpu_info.<a class="code" href="classarm__compute_1_1_c_p_u_info.xhtml#a8d31247d25bfe0a0b669d367aa801c2d">has_dotprod</a>()));</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">for</span>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> j = 0; j &lt; num_cpus; ++j)</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; <span class="keyword">const</span> <a class="code" href="namespacearm__compute.xhtml#aa41d7415a5386798147cccae2333d5d4">CPUModel</a> model = cpu_info.<a class="code" href="classarm__compute_1_1_c_p_u_info.xhtml#a1d1a4992ced850f18f97b27492bbb081">get_cpu_model</a>(j);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span>&#160; p-&gt;print_entry(<span class="stringliteral">&quot;CPU&quot;</span> + <a class="code" href="namespacearm__compute_1_1test_1_1framework.xhtml#ace86dc6f3dfa4f3c256b3999ab250c0a">support::cpp11::to_string</a>(j), <a class="code" href="namespacearm__compute.xhtml#a5516ba576a612c73954609522347b576">cpu_model_to_string</a>(model));</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; 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="l00212"></a><span class="lineno"> 212</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>(threads-&gt;value()));</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span>&#160; {</div><div class="line"><a name="l00214"></a><span class="lineno"> 214</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="l00215"></a><span class="lineno"> 215</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="l00216"></a><span class="lineno"> 216</span>&#160; }</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>&#160; }</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span>&#160; }</div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>&#160;</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</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="l00221"></a><span class="lineno"> 221</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>&#160; {</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</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="l00224"></a><span class="lineno"> 224</span>&#160; }</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</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="l00226"></a><span class="lineno"> 226</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="l00227"></a><span class="lineno"> 227</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="l00228"></a><span class="lineno"> 228</span>&#160;</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>&#160; <span class="keywordtype">bool</span> success = <span class="keyword">true</span>;</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>&#160; <span class="keywordflow">if</span>(list_tests-&gt;value())</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span>&#160; {</div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span>&#160; {</div><div class="line"><a name="l00235"></a><span class="lineno"> 235</span>&#160; p-&gt;print_list_tests(framework.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#aacd94676ebb33ecba00dfebe12c9392d">test_infos</a>());</div><div class="line"><a name="l00236"></a><span class="lineno"> 236</span>&#160; p-&gt;print_global_footer();</div><div class="line"><a name="l00237"></a><span class="lineno"> 237</span>&#160; }</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>&#160;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>&#160; }</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>&#160;</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span>&#160; <span class="keywordflow">if</span>(test_instruments-&gt;value())</div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>&#160; {</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</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#a47e7a1a6baab80560c11a9ee8f8a0636">get_profiler</a>();</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</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="l00246"></a><span class="lineno"> 246</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="l00247"></a><span class="lineno"> 247</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>&#160; {</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>&#160; p-&gt;print_measurements(profiler.<a class="code" href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#ad548fafce1d10263d6d02fa8df934167">measurements</a>());</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>&#160; }</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>&#160;</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span>&#160; }</div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>&#160;</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</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="l00256"></a><span class="lineno"> 256</span>&#160;</div><div class="line"><a name="l00257"></a><span class="lineno"> 257</span>&#160; <span class="keywordflow">if</span>(!parser.<a class="code" href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a3566e1a9ec7fedc6e4fc47fab7c18532">validate</a>())</div><div class="line"><a name="l00258"></a><span class="lineno"> 258</span>&#160; {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>&#160; <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span>&#160; }</div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>&#160;</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</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="l00263"></a><span class="lineno"> 263</span>&#160;</div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>&#160; <span class="keywordflow">if</span>(options.log_level-&gt;value() &gt; framework::LogLevel::NONE)</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>&#160; {</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>&#160; <span class="keywordflow">for</span>(<span class="keyword">auto</span> &amp;p : printers)</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span>&#160; {</div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>&#160; p-&gt;print_global_footer();</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>&#160; }</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>&#160; }</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>&#160;</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>&#160;<span class="preprocessor">#ifdef ARM_COMPUTE_CL</span></div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>&#160; <span class="keywordflow">if</span>(<a class="code" href="namespacearm__compute.xhtml#a5f49decb4b0a74d5361686ab45db8961">opencl_is_available</a>())</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span>&#160; {</div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>&#160; CLScheduler::get().sync();</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span>&#160; <span class="keywordflow">if</span>(enable_tuner-&gt;is_set() &amp;&amp; enable_tuner-&gt;value() &amp;&amp; tuner_file-&gt;is_set())</div><div class="line"><a name="l00277"></a><span class="lineno"> 277</span>&#160; {</div><div class="line"><a name="l00278"></a><span class="lineno"> 278</span>&#160; cl_tuner.save_to_file(tuner_file-&gt;value());</div><div class="line"><a name="l00279"></a><span class="lineno"> 279</span>&#160; }</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>&#160; }</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* ARM_COMPUTE_CL */</span><span class="preprocessor"></span></div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>&#160;</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>&#160; <span class="keywordflow">return</span> (success ? 0 : 1);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span>&#160; }</div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>&#160; <span class="keywordflow">catch</span>(<span class="keyword">const</span> std::exception &amp;<a class="code" href="namespacearm__compute.xhtml#a0768178b90a30994784fd28c5a89323f">error</a>)</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>&#160; {</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>&#160; std::cerr &lt;&lt; <a class="code" href="namespacearm__compute.xhtml#a0768178b90a30994784fd28c5a89323f">error</a>.what() &lt;&lt; <span class="stringliteral">&quot;\n&quot;</span>;</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span>&#160;</div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>&#160; <span class="keywordflow">if</span>(options.throw_errors-&gt;value())</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>&#160; {</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>&#160; <span class="keywordflow">throw</span>;</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>&#160; }</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>&#160;</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>&#160; <span class="keywordflow">return</span> 1;</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span>&#160; }</div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>&#160; <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span>&#160;}</div><div class="ttc" id="classarm__compute_1_1_c_l_tuner_xhtml"><div class="ttname"><a href="classarm__compute_1_1_c_l_tuner.xhtml">arm_compute::CLTuner</a></div><div class="ttdoc">Basic implementation of the OpenCL tuner interface.</div><div class="ttdef"><b>Definition:</b> <a href="_c_l_tuner_8h_source.xhtml#l00037">CLTuner.h:37</a></div></div>
Jenkins52ba29e2018-08-29 15:32:11 +0000170<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>
Jenkins514be652019-02-28 12:25:18 +0000171<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>
172<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>
173<div class="ttc" id="classarm__compute_1_1_c_p_u_info_xhtml_a0647761f309e3b3edb5a5501b3ff38d2"><div class="ttname"><a href="classarm__compute_1_1_c_p_u_info.xhtml#a0647761f309e3b3edb5a5501b3ff38d2">arm_compute::CPUInfo::has_fp16</a></div><div class="ttdeci">bool has_fp16() const</div><div class="ttdoc">Checks if the cpu model supports fp16.</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8cpp_source.xhtml#l00058">CPPTypes.cpp:58</a></div></div>
174<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#l00251">Framework.cpp:251</a></div></div>
175<div class="ttc" id="classarm__compute_1_1utils_1_1_toggle_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_toggle_option.xhtml">arm_compute::utils::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#l00036">ToggleOption.h:36</a></div></div>
176<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml_a3566e1a9ec7fedc6e4fc47fab7c18532"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a3566e1a9ec7fedc6e4fc47fab7c18532">arm_compute::utils::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_8h_source.xhtml#l00182">CommandLineParser.h:182</a></div></div>
177<div class="ttc" id="namespacearm__compute_xhtml_aa41d7415a5386798147cccae2333d5d4"><div class="ttname"><a href="namespacearm__compute.xhtml#aa41d7415a5386798147cccae2333d5d4">arm_compute::CPUModel</a></div><div class="ttdeci">CPUModel</div><div class="ttdoc">CPU models - we only need to detect CPUs we have microarchitecture-specific code for.</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8h_source.xhtml#l00040">CPPTypes.h:40</a></div></div>
178<div class="ttc" id="namespacearm__compute_xhtml_aca9062d049299f125a442eac466402fd"><div class="ttname"><a href="namespacearm__compute.xhtml#aca9062d049299f125a442eac466402fd">arm_compute::create_opencl_context_and_device</a></div><div class="ttdeci">std::tuple&lt; cl::Context, cl::Device, cl_int &gt; create_opencl_context_and_device()</div><div class="ttdoc">This function creates an OpenCL context and a device.</div><div class="ttdef"><b>Definition:</b> <a href="runtime_2_c_l_2_c_l_helpers_8cpp_source.xhtml#l00086">CLHelpers.cpp:86</a></div></div>
179<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#l00271">Framework.cpp:271</a></div></div>
180<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml">arm_compute::utils::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#l00044">CommandLineParser.h:44</a></div></div>
181<div class="ttc" id="classarm__compute_1_1_c_p_u_info_xhtml_a1d1a4992ced850f18f97b27492bbb081"><div class="ttname"><a href="classarm__compute_1_1_c_p_u_info.xhtml#a1d1a4992ced850f18f97b27492bbb081">arm_compute::CPUInfo::get_cpu_model</a></div><div class="ttdeci">CPUModel get_cpu_model(unsigned int cpuid) const</div><div class="ttdoc">Gets the cpu model for a given cpuid.</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8cpp_source.xhtml#l00068">CPPTypes.cpp:68</a></div></div>
182<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml_a68e2f681ec6686a130c4af96caf4d9fc"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a68e2f681ec6686a130c4af96caf4d9fc">arm_compute::utils::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#l00103">CommandLineParser.h:103</a></div></div>
183<div class="ttc" id="namespacearm__compute_xhtml_a5516ba576a612c73954609522347b576"><div class="ttname"><a href="namespacearm__compute.xhtml#a5516ba576a612c73954609522347b576">arm_compute::cpu_model_to_string</a></div><div class="ttdeci">std::string cpu_model_to_string(CPUModel val)</div><div class="ttdoc">Convert a cpumodel value to a string.</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8h_source.xhtml#l00069">CPPTypes.h:69</a></div></div>
184<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#l00118">Framework.cpp:118</a></div></div>
185<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#l00528">Framework.cpp:528</a></div></div>
186<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml_a66fa8f960eac1bf561ba2cb8be0cc58a"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#a66fa8f960eac1bf561ba2cb8be0cc58a">arm_compute::utils::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_8h_source.xhtml#l00116">CommandLineParser.h:116</a></div></div>
187<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_aacd94676ebb33ecba00dfebe12c9392d"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#aacd94676ebb33ecba00dfebe12c9392d">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's.</div><div class="ttdef"><b>Definition:</b> <a href="_framework_8cpp_source.xhtml#l00657">Framework.cpp:657</a></div></div>
188<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#l00075">main.cpp:75</a></div></div>
189<div class="ttc" id="classarm__compute_1_1_c_p_u_info_xhtml_a8d31247d25bfe0a0b669d367aa801c2d"><div class="ttname"><a href="classarm__compute_1_1_c_p_u_info.xhtml#a8d31247d25bfe0a0b669d367aa801c2d">arm_compute::CPUInfo::has_dotprod</a></div><div class="ttdeci">bool has_dotprod() const</div><div class="ttdoc">Checks if the cpu model supports dot product.</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8cpp_source.xhtml#l00063">CPPTypes.cpp:63</a></div></div>
190<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_framework_xhtml_a47e7a1a6baab80560c11a9ee8f8a0636"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_framework.xhtml#a47e7a1a6baab80560c11a9ee8f8a0636">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#l00623">Framework.cpp:623</a></div></div>
191<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml_abe52559b86ae874453f5a80b0828ec1c"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#abe52559b86ae874453f5a80b0828ec1c">arm_compute::utils::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#l00110">CommandLineParser.h:110</a></div></div>
192<div class="ttc" id="classarm__compute_1_1test_1_1framework_1_1_profiler_xhtml_ad548fafce1d10263d6d02fa8df934167"><div class="ttname"><a href="classarm__compute_1_1test_1_1framework_1_1_profiler.xhtml#ad548fafce1d10263d6d02fa8df934167">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#l00087">Profiler.cpp:87</a></div></div>
193<div class="ttc" id="classarm__compute_1_1_c_p_u_info_xhtml_a3828c0e892d45f2b4af6dc5d34c377b7"><div class="ttname"><a href="classarm__compute_1_1_c_p_u_info.xhtml#a3828c0e892d45f2b4af6dc5d34c377b7">arm_compute::CPUInfo::get_cpu_num</a></div><div class="ttdeci">unsigned int get_cpu_num() const</div><div class="ttdoc">Return the maximum number of CPUs present.</div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8cpp_source.xhtml#l00054">CPPTypes.cpp:54</a></div></div>
Jenkinsb9abeae2018-11-22 11:58:08 +0000194<div class="ttc" id="classarm__compute_1_1_c_p_u_info_xhtml"><div class="ttname"><a href="classarm__compute_1_1_c_p_u_info.xhtml">arm_compute::CPUInfo</a></div><div class="ttdef"><b>Definition:</b> <a href="_c_p_p_types_8h_source.xhtml#l00105">CPPTypes.h:105</a></div></div>
Jenkins514be652019-02-28 12:25:18 +0000195<div class="ttc" id="classarm__compute_1_1utils_1_1_enum_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_enum_option.xhtml">arm_compute::utils::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#l00040">EnumOption.h:40</a></div></div>
196<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">Call start() on all the added instruments.</div><div class="ttdef"><b>Definition:</b> <a href="_profiler_8cpp_source.xhtml#l00048">Profiler.cpp:48</a></div></div>
197<div class="ttc" id="namespacearm__compute_xhtml_a0768178b90a30994784fd28c5a89323f"><div class="ttname"><a href="namespacearm__compute.xhtml#a0768178b90a30994784fd28c5a89323f">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 class="ttdef"><b>Definition:</b> <a href="_error_8cpp_source.xhtml#l00051">Error.cpp:51</a></div></div>
198<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>
199<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#l00652">Framework.cpp:652</a></div></div>
200<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">Call stop() on all the added instruments.</div><div class="ttdef"><b>Definition:</b> <a href="_profiler_8cpp_source.xhtml#l00056">Profiler.cpp:56</a></div></div>
201<div class="ttc" id="classarm__compute_1_1utils_1_1_command_line_parser_xhtml_aa5da3e535faa6847a0da40fe7fb28383"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_command_line_parser.xhtml#aa5da3e535faa6847a0da40fe7fb28383">arm_compute::utils::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_8h_source.xhtml#l00217">CommandLineParser.h:217</a></div></div>
202<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#l00054">CommonOptions.h:54</a></div></div>
203<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#l00261">Framework.cpp:261</a></div></div>
Jenkins52ba29e2018-08-29 15:32:11 +0000204<div class="ttc" id="classarm__compute_1_1utils_1_1_simple_option_xhtml"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_simple_option.xhtml">arm_compute::utils::SimpleOption&lt; std::string &gt;</a></div></div>
Jenkins514be652019-02-28 12:25:18 +0000205<div class="ttc" id="classarm__compute_1_1utils_1_1_option_xhtml_a48a2672f362eeed9a3e93403f4d3de37"><div class="ttname"><a href="classarm__compute_1_1utils_1_1_option.xhtml#a48a2672f362eeed9a3e93403f4d3de37">arm_compute::utils::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_8h_source.xhtml#l00125">Option.h:125</a></div></div>
206<div class="ttc" id="namespacearm__compute_xhtml_a5f49decb4b0a74d5361686ab45db8961"><div class="ttname"><a href="namespacearm__compute.xhtml#a5f49decb4b0a74d5361686ab45db8961">arm_compute::opencl_is_available</a></div><div class="ttdeci">bool opencl_is_available()</div><div class="ttdoc">Check if OpenCL is available.</div><div class="ttdef"><b>Definition:</b> <a href="_open_c_l_8cpp_source.xhtml#l00133">OpenCL.cpp:133</a></div></div>
207<div class="ttc" id="_error_8h_xhtml_a5bbdcf574d3f5e412fa6a1117911e67b"><div class="ttname"><a href="_error_8h.xhtml#a5bbdcf574d3f5e412fa6a1117911e67b">ARM_COMPUTE_ERROR_ON_MSG</a></div><div class="ttdeci">#define ARM_COMPUTE_ERROR_ON_MSG(cond,...)</div><div class="ttdef"><b>Definition:</b> <a href="_error_8h_source.xhtml#l00328">Error.h:328</a></div></div>
Kaizen8938bd32017-09-28 14:38:23 +0100208</div><!-- fragment -->
Jenkins514be652019-02-28 12:25:18 +0000209<p class="reference">References <a class="el" href="_command_line_parser_8h_source.xhtml#l00103">CommandLineParser::add_option()</a>, <a class="el" href="_command_line_parser_8h_source.xhtml#l00110">CommandLineParser::add_positional_option()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00652">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="_error_8h_source.xhtml#l00328">ARM_COMPUTE_ERROR_ON_MSG</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="_i_scheduler_8cpp_source.xhtml#l00039">IScheduler::cpu_info()</a>, <a class="el" href="_c_p_p_types_8h_source.xhtml#l00069">arm_compute::cpu_model_to_string()</a>, <a class="el" href="runtime_2_c_l_2_c_l_helpers_8cpp_source.xhtml#l00086">arm_compute::create_opencl_context_and_device()</a>, <a class="el" href="_common_options_8cpp_source.xhtml#l00098">CommonOptions::create_printers()</a>, <a class="el" href="_g_c_scheduler_8cpp_source.xhtml#l00048">GCScheduler::default_init()</a>, <a class="el" href="_c_l_scheduler_8cpp_source.xhtml#l00048">CLScheduler::default_init_with_context()</a>, <a class="el" href="_error_8cpp_source.xhtml#l00051">arm_compute::error()</a>, <a class="el" href="_g_c_scheduler_8cpp_source.xhtml#l00062">GCScheduler::get()</a>, <a class="el" href="_scheduler_8cpp_source.xhtml#l00096">Scheduler::get()</a>, <a class="el" href="_c_l_scheduler_8cpp_source.xhtml#l00041">CLScheduler::get()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00112">Framework::get()</a>, <a class="el" href="_c_l_kernel_library_8cpp_source.xhtml#l00958">CLKernelLibrary::get()</a>, <a class="el" href="_c_p_p_types_8cpp_source.xhtml#l00068">CPUInfo::get_cpu_model()</a>, <a class="el" href="_c_p_p_types_8cpp_source.xhtml#l00054">CPUInfo::get_cpu_num()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00623">Framework::get_profiler()</a>, <a class="el" href="_c_p_p_types_8cpp_source.xhtml#l00063">CPUInfo::has_dotprod()</a>, <a class="el" href="_c_p_p_types_8cpp_source.xhtml#l00058">CPUInfo::has_fp16()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00074">CommonOptions::help</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00118">Framework::init()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00075">CommonOptions::instruments</a>, <a class="el" href="_option_8h_source.xhtml#l00135">Option::is_set()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00076">CommonOptions::iterations</a>, <a class="el" href="main_8cpp_source.xhtml#l00075">arm_compute::test::library</a>, <a class="el" href="_c_l_tuner_8cpp_source.xhtml#l00260">CLTuner::load_from_file()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00079">CommonOptions::log_level</a>, <a class="el" href="_profiler_8cpp_source.xhtml#l00087">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="_open_c_l_8cpp_source.xhtml#l00133">arm_compute::opencl_is_available()</a>, <a class="el" href="_command_line_parser_8h_source.xhtml#l00116">CommandLineParser::parse()</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_8h_source.xhtml#l00217">CommandLineParser::print_help()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00528">Framework::run()</a>, <a class="el" href="_c_l_tuner_8cpp_source.xhtml#l00299">CLTuner::save_to_file()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00271">Framework::set_error_on_missing_assets()</a>, <a class="el" href="_option_8h_source.xhtml#l00125">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#l00261">Framework::set_stop_on_error()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00251">Framework::set_throw_errors()</a>, <a class="el" href="_c_l_tuner_8cpp_source.xhtml#l00082">CLTuner::set_tune_new_kernels()</a>, <a class="el" href="_profiler_8cpp_source.xhtml#l00048">Profiler::start()</a>, <a class="el" href="_profiler_8cpp_source.xhtml#l00056">Profiler::stop()</a>, <a class="el" href="_c_l_scheduler_8h_source.xhtml#l00151">CLScheduler::sync()</a>, <a class="el" href="_framework_8cpp_source.xhtml#l00657">Framework::test_infos()</a>, <a class="el" href="_common_options_8h_source.xhtml#l00080">CommonOptions::throw_errors</a>, <a class="el" href="tests_2_type_printer_8h_source.xhtml#l00064">arm_compute::to_string()</a>, <a class="el" href="_toolchain_support_8h_source.xhtml#l00210">arm_compute::support::cpp11::to_string()</a>, <a class="el" href="_command_line_parser_8h_source.xhtml#l00182">CommandLineParser::validate()</a>, <a class="el" href="_enum_option_8h_source.xhtml#l00130">EnumOption&lt; T &gt;::value()</a>, <a class="el" href="_enum_list_option_8h_source.xhtml#l00144">EnumListOption&lt; T &gt;::value()</a>, and <a class="el" href="_simple_option_8h_source.xhtml#l00112">SimpleOption&lt; T &gt;::value()</a>.</p>
210
Kaizen8938bd32017-09-28 14:38:23 +0100211</div>
212</div>
213</div><!-- contents -->
214</div><!-- doc-content -->
215<!-- start footer part -->
216<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
217 <ul>
Anthony Barbier8140e1e2017-12-14 23:48:46 +0000218 <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>
Jenkins514be652019-02-28 12:25:18 +0000219 <li class="footer">Generated on Thu Feb 28 2019 12:24:57 for Compute Library by
Kaizen8938bd32017-09-28 14:38:23 +0100220 <a href="http://www.doxygen.org/index.html">
Jenkins514be652019-02-28 12:25:18 +0000221 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
Kaizen8938bd32017-09-28 14:38:23 +0100222 </ul>
223</div>
224</body>
225</html>