Ryan OShea | de36e4a | 2020-03-13 16:26:19 +0000 | [diff] [blame] | 1 | <!-- Copyright (c) 2020 ARM Limited. --> |
| 2 | <!-- --> |
| 3 | <!-- SPDX-License-Identifier: MIT --> |
| 4 | <!-- --> |
| 5 | <!-- HTML header for doxygen 1.8.13--> |
| 6 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 7 | <html xmlns="http://www.w3.org/1999/xhtml"> |
| 8 | <head> |
| 9 | <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 10 | <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 11 | <meta name="generator" content="Doxygen 1.8.13"/> |
| 12 | <meta name="robots" content="NOINDEX, NOFOLLOW" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 14 | <title>ArmNN: src/backends/backendsCommon/test/DynamicBackendTests.hpp File Reference</title> |
| 15 | <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 16 | <script type="text/javascript" src="jquery.js"></script> |
| 17 | <script type="text/javascript" src="dynsections.js"></script> |
| 18 | <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| 19 | <script type="text/javascript" src="resize.js"></script> |
| 20 | <script type="text/javascript" src="navtreedata.js"></script> |
| 21 | <script type="text/javascript" src="navtree.js"></script> |
| 22 | <script type="text/javascript"> |
| 23 | $(document).ready(initResizable); |
| 24 | </script> |
| 25 | <link href="search/search.css" rel="stylesheet" type="text/css"/> |
| 26 | <script type="text/javascript" src="search/searchdata.js"></script> |
| 27 | <script type="text/javascript" src="search/search.js"></script> |
| 28 | <script type="text/x-mathjax-config"> |
| 29 | MathJax.Hub.Config({ |
| 30 | extensions: ["tex2jax.js"], |
| 31 | jax: ["input/TeX","output/HTML-CSS"], |
| 32 | }); |
| 33 | </script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> |
| 34 | <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 35 | <link href="stylesheet.css" rel="stylesheet" type="text/css"/> |
| 36 | </head> |
| 37 | <body> |
| 38 | <div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 39 | <div id="titlearea"> |
| 40 | <table cellspacing="0" cellpadding="0"> |
| 41 | <tbody> |
| 42 | <tr style="height: 56px;"> |
| 43 | <img alt="ArmNN" src="Arm_NN_horizontal_blue.png" style="max-width: 10rem; margin-top: .5rem; margin-left 10px"/> |
| 44 | <td style="padding-left: 0.5em;"> |
| 45 | <div id="projectname"> |
| 46 |  <span id="projectnumber">20.02</span> |
| 47 | </div> |
| 48 | </td> |
| 49 | </tr> |
| 50 | </tbody> |
| 51 | </table> |
| 52 | </div> |
| 53 | <!-- end header part --> |
| 54 | <!-- Generated by Doxygen 1.8.13 --> |
| 55 | <script type="text/javascript"> |
| 56 | var searchBox = new SearchBox("searchBox", "search",false,'Search'); |
| 57 | </script> |
| 58 | <script type="text/javascript" src="menudata.js"></script> |
| 59 | <script type="text/javascript" src="menu.js"></script> |
| 60 | <script type="text/javascript"> |
| 61 | $(function() { |
| 62 | initMenu('',true,false,'search.php','Search'); |
| 63 | $(document).ready(function() { init_search(); }); |
| 64 | }); |
| 65 | </script> |
| 66 | <div id="main-nav"></div> |
| 67 | </div><!-- top --> |
| 68 | <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| 69 | <div id="nav-tree"> |
| 70 | <div id="nav-tree-contents"> |
| 71 | <div id="nav-sync" class="sync"></div> |
| 72 | </div> |
| 73 | </div> |
| 74 | <div id="splitbar" style="-moz-user-select:none;" |
| 75 | class="ui-resizable-handle"> |
| 76 | </div> |
| 77 | </div> |
| 78 | <script type="text/javascript"> |
| 79 | $(document).ready(function(){initNavTree('_dynamic_backend_tests_8hpp.xhtml','');}); |
| 80 | </script> |
| 81 | <div id="doc-content"> |
| 82 | <!-- window showing the filter options --> |
| 83 | <div id="MSearchSelectWindow" |
| 84 | onmouseover="return searchBox.OnSearchSelectShow()" |
| 85 | onmouseout="return searchBox.OnSearchSelectHide()" |
| 86 | onkeydown="return searchBox.OnSearchSelectKey(event)"> |
| 87 | </div> |
| 88 | |
| 89 | <!-- iframe showing the search results (closed by default) --> |
| 90 | <div id="MSearchResultsWindow"> |
| 91 | <iframe src="javascript:void(0)" frameborder="0" |
| 92 | name="MSearchResults" id="MSearchResults"> |
| 93 | </iframe> |
| 94 | </div> |
| 95 | |
| 96 | <div class="header"> |
| 97 | <div class="summary"> |
| 98 | <a href="#nested-classes">Classes</a> | |
| 99 | <a href="#func-members">Functions</a> </div> |
| 100 | <div class="headertitle"> |
| 101 | <div class="title">DynamicBackendTests.hpp File Reference</div> </div> |
| 102 | </div><!--header--> |
| 103 | <div class="contents"> |
| 104 | <div class="textblock"><code>#include <<a class="el" href="_backend_registry_8hpp_source.xhtml">armnn/BackendRegistry.hpp</a>></code><br /> |
| 105 | <code>#include <<a class="el" href="_i_layer_support_8hpp_source.xhtml">armnn/ILayerSupport.hpp</a>></code><br /> |
| 106 | <code>#include <<a class="el" href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml">armnn/backends/DynamicBackend.hpp</a>></code><br /> |
| 107 | <code>#include <<a class="el" href="_dynamic_backend_utils_8hpp_source.xhtml">backendsCommon/DynamicBackendUtils.hpp</a>></code><br /> |
| 108 | <code>#include <<a class="el" href="_cpu_tensor_handle_8hpp_source.xhtml">backendsCommon/CpuTensorHandle.hpp</a>></code><br /> |
| 109 | <code>#include <<a class="el" href="_ref_convolution2d_workload_8hpp_source.xhtml">reference/workloads/RefConvolution2dWorkload.hpp</a>></code><br /> |
| 110 | <code>#include <<a class="el" href="_runtime_8hpp_source.xhtml">Runtime.hpp</a>></code><br /> |
| 111 | <code>#include <string></code><br /> |
| 112 | <code>#include <memory></code><br /> |
| 113 | <code>#include <boost/test/unit_test.hpp></code><br /> |
| 114 | <code>#include <boost/filesystem.hpp></code><br /> |
| 115 | <code>#include <boost/dll.hpp></code><br /> |
| 116 | </div> |
| 117 | <p><a href="_dynamic_backend_tests_8hpp_source.xhtml">Go to the source code of this file.</a></p> |
| 118 | <table class="memberdecls"> |
| 119 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> |
| 120 | Classes</h2></td></tr> |
| 121 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_test_dynamic_backend_utils.xhtml">TestDynamicBackendUtils</a></td></tr> |
| 122 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 123 | <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="class_test_backend_registry.xhtml">TestBackendRegistry</a></td></tr> |
| 124 | <tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr> |
| 125 | </table><table class="memberdecls"> |
| 126 | <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> |
| 127 | Functions</h2></td></tr> |
| 128 | <tr class="memitem:a1ccc02805f5cdcbc45c6c548b5e4c29a"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a1ccc02805f5cdcbc45c6c548b5e4c29a">GetBasePath</a> (const std::string &basePath)</td></tr> |
| 129 | <tr class="separator:a1ccc02805f5cdcbc45c6c548b5e4c29a"><td class="memSeparator" colspan="2"> </td></tr> |
| 130 | <tr class="memitem:aaa09188eec988bf3318fbcff3d07dd97"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#aaa09188eec988bf3318fbcff3d07dd97">GetTestDirectoryBasePath</a> ()</td></tr> |
| 131 | <tr class="separator:aaa09188eec988bf3318fbcff3d07dd97"><td class="memSeparator" colspan="2"> </td></tr> |
| 132 | <tr class="memitem:a232b6171adb0f163b616059ba9ddab07"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a232b6171adb0f163b616059ba9ddab07">GetDynamicBackendsBasePath</a> ()</td></tr> |
| 133 | <tr class="separator:a232b6171adb0f163b616059ba9ddab07"><td class="memSeparator" colspan="2"> </td></tr> |
| 134 | <tr class="memitem:aa21b882f38be6940c5c0515db9b69508"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a> (const std::string &subdir)</td></tr> |
| 135 | <tr class="separator:aa21b882f38be6940c5c0515db9b69508"><td class="memSeparator" colspan="2"> </td></tr> |
| 136 | <tr class="memitem:a1851a4032b9e6fa980ecaf990960c9b1"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a1851a4032b9e6fa980ecaf990960c9b1">GetTestSubDirectory</a> (const std::string &basePath, const std::string &subdir)</td></tr> |
| 137 | <tr class="separator:a1851a4032b9e6fa980ecaf990960c9b1"><td class="memSeparator" colspan="2"> </td></tr> |
| 138 | <tr class="memitem:ad01ee94919c8ecfba3b9e4fe89ed6bbe"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a> (const std::string &directory, const std::string &fileName)</td></tr> |
| 139 | <tr class="separator:ad01ee94919c8ecfba3b9e4fe89ed6bbe"><td class="memSeparator" colspan="2"> </td></tr> |
| 140 | <tr class="memitem:a3c082270ab18262a66e97eb1d6922991"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a3c082270ab18262a66e97eb1d6922991">OpenCloseHandleTestImpl</a> ()</td></tr> |
| 141 | <tr class="separator:a3c082270ab18262a66e97eb1d6922991"><td class="memSeparator" colspan="2"> </td></tr> |
| 142 | <tr class="memitem:aec7460101cf2fd4f798d287654783143"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#aec7460101cf2fd4f798d287654783143">CloseInvalidHandleTestImpl</a> ()</td></tr> |
| 143 | <tr class="separator:aec7460101cf2fd4f798d287654783143"><td class="memSeparator" colspan="2"> </td></tr> |
| 144 | <tr class="memitem:a22f4f05aa4404afeca52237617335373"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a22f4f05aa4404afeca52237617335373">OpenEmptyFileNameTestImpl</a> ()</td></tr> |
| 145 | <tr class="separator:a22f4f05aa4404afeca52237617335373"><td class="memSeparator" colspan="2"> </td></tr> |
| 146 | <tr class="memitem:a9cf371447a3219bacc62c0f343c174c0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a9cf371447a3219bacc62c0f343c174c0">OpenNotExistingFileTestImpl</a> ()</td></tr> |
| 147 | <tr class="separator:a9cf371447a3219bacc62c0f343c174c0"><td class="memSeparator" colspan="2"> </td></tr> |
| 148 | <tr class="memitem:a6f750fea35638f0442885edb837b5d16"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a6f750fea35638f0442885edb837b5d16">OpenNotSharedObjectTestImpl</a> ()</td></tr> |
| 149 | <tr class="separator:a6f750fea35638f0442885edb837b5d16"><td class="memSeparator" colspan="2"> </td></tr> |
| 150 | <tr class="memitem:a2384b592a8946dc96a1ea116d86993bf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a2384b592a8946dc96a1ea116d86993bf">GetValidEntryPointTestImpl</a> ()</td></tr> |
| 151 | <tr class="separator:a2384b592a8946dc96a1ea116d86993bf"><td class="memSeparator" colspan="2"> </td></tr> |
| 152 | <tr class="memitem:a7d05c0a2fbb1faaeb5d98aa10bfa5cbf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a7d05c0a2fbb1faaeb5d98aa10bfa5cbf">GetNameMangledEntryPointTestImpl</a> ()</td></tr> |
| 153 | <tr class="separator:a7d05c0a2fbb1faaeb5d98aa10bfa5cbf"><td class="memSeparator" colspan="2"> </td></tr> |
| 154 | <tr class="memitem:a2ea23607d9c0b55b90744e9e5f74e7f2"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a2ea23607d9c0b55b90744e9e5f74e7f2">GetNoExternEntryPointTestImpl</a> ()</td></tr> |
| 155 | <tr class="separator:a2ea23607d9c0b55b90744e9e5f74e7f2"><td class="memSeparator" colspan="2"> </td></tr> |
| 156 | <tr class="memitem:ad4a311ecf0fe6057c01ed11b2df4ed15"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ad4a311ecf0fe6057c01ed11b2df4ed15">GetNotExistingEntryPointTestImpl</a> ()</td></tr> |
| 157 | <tr class="separator:ad4a311ecf0fe6057c01ed11b2df4ed15"><td class="memSeparator" colspan="2"> </td></tr> |
| 158 | <tr class="memitem:a8bafc3a98143bd2cef2748edb409aa54"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a8bafc3a98143bd2cef2748edb409aa54">BackendVersioningTestImpl</a> ()</td></tr> |
| 159 | <tr class="separator:a8bafc3a98143bd2cef2748edb409aa54"><td class="memSeparator" colspan="2"> </td></tr> |
| 160 | <tr class="memitem:a1022c603487807dbfabdc0af03517883"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a1022c603487807dbfabdc0af03517883">CreateValidDynamicBackendObjectTestImpl</a> ()</td></tr> |
| 161 | <tr class="separator:a1022c603487807dbfabdc0af03517883"><td class="memSeparator" colspan="2"> </td></tr> |
| 162 | <tr class="memitem:ac98b3660d8c88c80c02fdcdab25a534f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ac98b3660d8c88c80c02fdcdab25a534f">CreateDynamicBackendObjectInvalidHandleTestImpl</a> ()</td></tr> |
| 163 | <tr class="separator:ac98b3660d8c88c80c02fdcdab25a534f"><td class="memSeparator" colspan="2"> </td></tr> |
| 164 | <tr class="memitem:acfd92844ff506a69381848c62b5f396d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#acfd92844ff506a69381848c62b5f396d">CreateDynamicBackendObjectInvalidInterface1TestImpl</a> ()</td></tr> |
| 165 | <tr class="separator:acfd92844ff506a69381848c62b5f396d"><td class="memSeparator" colspan="2"> </td></tr> |
| 166 | <tr class="memitem:a2733fc49ff574659904cbc558c6b2bac"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a2733fc49ff574659904cbc558c6b2bac">CreateDynamicBackendObjectInvalidInterface2TestImpl</a> ()</td></tr> |
| 167 | <tr class="separator:a2733fc49ff574659904cbc558c6b2bac"><td class="memSeparator" colspan="2"> </td></tr> |
| 168 | <tr class="memitem:a47d1d68ab62ac387a9d8253d08260fc4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a47d1d68ab62ac387a9d8253d08260fc4">CreateDynamicBackendObjectInvalidInterface3TestImpl</a> ()</td></tr> |
| 169 | <tr class="separator:a47d1d68ab62ac387a9d8253d08260fc4"><td class="memSeparator" colspan="2"> </td></tr> |
| 170 | <tr class="memitem:a307ee2e89a7a9dd574674a69da91addd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a307ee2e89a7a9dd574674a69da91addd">CreateDynamicBackendObjectInvalidInterface4TestImpl</a> ()</td></tr> |
| 171 | <tr class="separator:a307ee2e89a7a9dd574674a69da91addd"><td class="memSeparator" colspan="2"> </td></tr> |
| 172 | <tr class="memitem:a925a53b0f85afbe661c251b858b01601"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a925a53b0f85afbe661c251b858b01601">CreateDynamicBackendObjectInvalidInterface5TestImpl</a> ()</td></tr> |
| 173 | <tr class="separator:a925a53b0f85afbe661c251b858b01601"><td class="memSeparator" colspan="2"> </td></tr> |
| 174 | <tr class="memitem:a8f879660cb144117a50465429197ce0c"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a8f879660cb144117a50465429197ce0c">CreateDynamicBackendObjectInvalidInterface6TestImpl</a> ()</td></tr> |
| 175 | <tr class="separator:a8f879660cb144117a50465429197ce0c"><td class="memSeparator" colspan="2"> </td></tr> |
| 176 | <tr class="memitem:ab831071920946c5e8562471793882ac4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ab831071920946c5e8562471793882ac4">CreateDynamicBackendObjectInvalidInterface7TestImpl</a> ()</td></tr> |
| 177 | <tr class="separator:ab831071920946c5e8562471793882ac4"><td class="memSeparator" colspan="2"> </td></tr> |
| 178 | <tr class="memitem:a48a0ac943ae30935f6d32625bee457f8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a48a0ac943ae30935f6d32625bee457f8">GetBackendPathsTestImpl</a> ()</td></tr> |
| 179 | <tr class="separator:a48a0ac943ae30935f6d32625bee457f8"><td class="memSeparator" colspan="2"> </td></tr> |
| 180 | <tr class="memitem:ab9633d2df7bd3d53a0d6e4d763ec8baf"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ab9633d2df7bd3d53a0d6e4d763ec8baf">GetBackendPathsOverrideTestImpl</a> ()</td></tr> |
| 181 | <tr class="separator:ab9633d2df7bd3d53a0d6e4d763ec8baf"><td class="memSeparator" colspan="2"> </td></tr> |
| 182 | <tr class="memitem:a736bd70a8662a4f3679054a2b2cfaa11"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a736bd70a8662a4f3679054a2b2cfaa11">GetSharedObjectsTestImpl</a> ()</td></tr> |
| 183 | <tr class="separator:a736bd70a8662a4f3679054a2b2cfaa11"><td class="memSeparator" colspan="2"> </td></tr> |
| 184 | <tr class="memitem:a76c94b7ce857689477dcac09aba1858f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a76c94b7ce857689477dcac09aba1858f">CreateDynamicBackendsTestImpl</a> ()</td></tr> |
| 185 | <tr class="separator:a76c94b7ce857689477dcac09aba1858f"><td class="memSeparator" colspan="2"> </td></tr> |
| 186 | <tr class="memitem:a40efe1578a402125bd0efbc29eecb225"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a40efe1578a402125bd0efbc29eecb225">CreateDynamicBackendsNoPathsTestImpl</a> ()</td></tr> |
| 187 | <tr class="separator:a40efe1578a402125bd0efbc29eecb225"><td class="memSeparator" colspan="2"> </td></tr> |
| 188 | <tr class="memitem:ae6308c78a8fdab82f4929b07dc439cd9"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ae6308c78a8fdab82f4929b07dc439cd9">CreateDynamicBackendsAllInvalidTestImpl</a> ()</td></tr> |
| 189 | <tr class="separator:ae6308c78a8fdab82f4929b07dc439cd9"><td class="memSeparator" colspan="2"> </td></tr> |
| 190 | <tr class="memitem:a1f89ff6d66212524954282edcda4082b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a1f89ff6d66212524954282edcda4082b">CreateDynamicBackendsMixedTypesTestImpl</a> ()</td></tr> |
| 191 | <tr class="separator:a1f89ff6d66212524954282edcda4082b"><td class="memSeparator" colspan="2"> </td></tr> |
| 192 | <tr class="memitem:a30cad47158195db425c9580171a7703f"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a30cad47158195db425c9580171a7703f">RegisterSingleDynamicBackendTestImpl</a> ()</td></tr> |
| 193 | <tr class="separator:a30cad47158195db425c9580171a7703f"><td class="memSeparator" colspan="2"> </td></tr> |
| 194 | <tr class="memitem:ac7de5c298989cb4f0d1df55baf3e6450"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#ac7de5c298989cb4f0d1df55baf3e6450">RegisterMultipleDynamicBackendsTestImpl</a> ()</td></tr> |
| 195 | <tr class="separator:ac7de5c298989cb4f0d1df55baf3e6450"><td class="memSeparator" colspan="2"> </td></tr> |
| 196 | <tr class="memitem:a98bdeaf1b8289ba5fa6ac2b0e45a13d0"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a98bdeaf1b8289ba5fa6ac2b0e45a13d0">RegisterMultipleInvalidDynamicBackendsTestImpl</a> ()</td></tr> |
| 197 | <tr class="separator:a98bdeaf1b8289ba5fa6ac2b0e45a13d0"><td class="memSeparator" colspan="2"> </td></tr> |
| 198 | <tr class="memitem:addebc7fb62de1f561bc08c8646431972"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#addebc7fb62de1f561bc08c8646431972">RegisterMixedDynamicBackendsTestImpl</a> ()</td></tr> |
| 199 | <tr class="separator:addebc7fb62de1f561bc08c8646431972"><td class="memSeparator" colspan="2"> </td></tr> |
| 200 | <tr class="memitem:a4967976a2407f1e67482235953328fba"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a4967976a2407f1e67482235953328fba">RuntimeEmptyTestImpl</a> ()</td></tr> |
| 201 | <tr class="separator:a4967976a2407f1e67482235953328fba"><td class="memSeparator" colspan="2"> </td></tr> |
| 202 | <tr class="memitem:a2a3715f6c83f6dd0c62035ecd2dbb386"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a2a3715f6c83f6dd0c62035ecd2dbb386">RuntimeDynamicBackendsTestImpl</a> ()</td></tr> |
| 203 | <tr class="separator:a2a3715f6c83f6dd0c62035ecd2dbb386"><td class="memSeparator" colspan="2"> </td></tr> |
| 204 | <tr class="memitem:a805c0fe55cb42d8507a081c7c7659408"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a805c0fe55cb42d8507a081c7c7659408">RuntimeDuplicateDynamicBackendsTestImpl</a> ()</td></tr> |
| 205 | <tr class="separator:a805c0fe55cb42d8507a081c7c7659408"><td class="memSeparator" colspan="2"> </td></tr> |
| 206 | <tr class="memitem:afe972850015352cf8ae3e073ac31abcd"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#afe972850015352cf8ae3e073ac31abcd">RuntimeInvalidDynamicBackendsTestImpl</a> ()</td></tr> |
| 207 | <tr class="separator:afe972850015352cf8ae3e073ac31abcd"><td class="memSeparator" colspan="2"> </td></tr> |
| 208 | <tr class="memitem:a05f580df8c6c039d41d42c838cd97014"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml#a05f580df8c6c039d41d42c838cd97014">RuntimeInvalidOverridePathTestImpl</a> ()</td></tr> |
| 209 | <tr class="separator:a05f580df8c6c039d41d42c838cd97014"><td class="memSeparator" colspan="2"> </td></tr> |
| 210 | </table> |
| 211 | <h2 class="groupheader">Function Documentation</h2> |
| 212 | <a id="a8bafc3a98143bd2cef2748edb409aa54"></a> |
| 213 | <h2 class="memtitle"><span class="permalink"><a href="#a8bafc3a98143bd2cef2748edb409aa54">◆ </a></span>BackendVersioningTestImpl()</h2> |
| 214 | |
| 215 | <div class="memitem"> |
| 216 | <div class="memproto"> |
| 217 | <table class="memname"> |
| 218 | <tr> |
| 219 | <td class="memname">void BackendVersioningTestImpl </td> |
| 220 | <td>(</td> |
| 221 | <td class="paramname"></td><td>)</td> |
| 222 | <td></td> |
| 223 | </tr> |
| 224 | </table> |
| 225 | </div><div class="memdoc"> |
| 226 | |
| 227 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00299">299</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 228 | |
| 229 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00071">TestDynamicBackendUtils::IsBackendCompatibleTest()</a>.</p> |
| 230 | <div class="fragment"><div class="line"><a name="l00300"></a><span class="lineno"> 300</span> {</div><div class="line"><a name="l00301"></a><span class="lineno"> 301</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00302"></a><span class="lineno"> 302</span> </div><div class="line"><a name="l00303"></a><span class="lineno"> 303</span>  <span class="comment">// The backend API version used for the tests</span></div><div class="line"><a name="l00304"></a><span class="lineno"> 304</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> backendApiVersion{ 2, 4 };</div><div class="line"><a name="l00305"></a><span class="lineno"> 305</span> </div><div class="line"><a name="l00306"></a><span class="lineno"> 306</span>  <span class="comment">// Same backend and backend API versions are compatible with the backend API</span></div><div class="line"><a name="l00307"></a><span class="lineno"> 307</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> sameBackendVersion{ 2, 4 };</div><div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  BOOST_TEST(sameBackendVersion == backendApiVersion);</div><div class="line"><a name="l00309"></a><span class="lineno"> 309</span>  BOOST_TEST(sameBackendVersion <= backendApiVersion);</div><div class="line"><a name="l00310"></a><span class="lineno"> 310</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#a8e34f3a7d4d581864eb93474b8446405">TestDynamicBackendUtils::IsBackendCompatibleTest</a>(backendApiVersion, sameBackendVersion) == <span class="keyword">true</span>);</div><div class="line"><a name="l00311"></a><span class="lineno"> 311</span> </div><div class="line"><a name="l00312"></a><span class="lineno"> 312</span>  <span class="comment">// Backend versions that differ from the backend API version by major revision are not compatible</span></div><div class="line"><a name="l00313"></a><span class="lineno"> 313</span>  <span class="comment">// with the backend API</span></div><div class="line"><a name="l00314"></a><span class="lineno"> 314</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> laterMajorBackendVersion{ 3, 4 };</div><div class="line"><a name="l00315"></a><span class="lineno"> 315</span>  BOOST_TEST(!(laterMajorBackendVersion == backendApiVersion));</div><div class="line"><a name="l00316"></a><span class="lineno"> 316</span>  BOOST_TEST(!(laterMajorBackendVersion <= backendApiVersion));</div><div class="line"><a name="l00317"></a><span class="lineno"> 317</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#a8e34f3a7d4d581864eb93474b8446405">TestDynamicBackendUtils::IsBackendCompatibleTest</a>(backendApiVersion, laterMajorBackendVersion) == <span class="keyword">false</span>);</div><div class="line"><a name="l00318"></a><span class="lineno"> 318</span> </div><div class="line"><a name="l00319"></a><span class="lineno"> 319</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> earlierMajorBackendVersion{ 1, 4 };</div><div class="line"><a name="l00320"></a><span class="lineno"> 320</span>  BOOST_TEST(!(earlierMajorBackendVersion == backendApiVersion));</div><div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  BOOST_TEST(earlierMajorBackendVersion <= backendApiVersion);</div><div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#a8e34f3a7d4d581864eb93474b8446405">TestDynamicBackendUtils::IsBackendCompatibleTest</a>(backendApiVersion,</div><div class="line"><a name="l00323"></a><span class="lineno"> 323</span>  earlierMajorBackendVersion) == <span class="keyword">false</span>);</div><div class="line"><a name="l00324"></a><span class="lineno"> 324</span> </div><div class="line"><a name="l00325"></a><span class="lineno"> 325</span>  <span class="comment">// Backend versions with the same major revision but later minor revision than</span></div><div class="line"><a name="l00326"></a><span class="lineno"> 326</span>  <span class="comment">// the backend API version are not compatible with the backend API</span></div><div class="line"><a name="l00327"></a><span class="lineno"> 327</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> laterMinorBackendVersion{ 2, 5 };</div><div class="line"><a name="l00328"></a><span class="lineno"> 328</span>  BOOST_TEST(!(laterMinorBackendVersion == backendApiVersion));</div><div class="line"><a name="l00329"></a><span class="lineno"> 329</span>  BOOST_TEST(!(laterMinorBackendVersion <= backendApiVersion));</div><div class="line"><a name="l00330"></a><span class="lineno"> 330</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#a8e34f3a7d4d581864eb93474b8446405">TestDynamicBackendUtils::IsBackendCompatibleTest</a>(backendApiVersion, laterMinorBackendVersion) == <span class="keyword">false</span>);</div><div class="line"><a name="l00331"></a><span class="lineno"> 331</span> </div><div class="line"><a name="l00332"></a><span class="lineno"> 332</span>  <span class="comment">// Backend versions with the same major revision but earlier minor revision than</span></div><div class="line"><a name="l00333"></a><span class="lineno"> 333</span>  <span class="comment">// the backend API version are compatible with the backend API</span></div><div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> earlierMinorBackendVersion{ 2, 3 };</div><div class="line"><a name="l00335"></a><span class="lineno"> 335</span>  BOOST_TEST(!(earlierMinorBackendVersion == backendApiVersion));</div><div class="line"><a name="l00336"></a><span class="lineno"> 336</span>  BOOST_TEST(earlierMinorBackendVersion <= backendApiVersion);</div><div class="line"><a name="l00337"></a><span class="lineno"> 337</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#a8e34f3a7d4d581864eb93474b8446405">TestDynamicBackendUtils::IsBackendCompatibleTest</a>(backendApiVersion, earlierMinorBackendVersion) == <span class="keyword">true</span>);</div><div class="line"><a name="l00338"></a><span class="lineno"> 338</span> }</div><div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 231 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 232 | <div class="ttc" id="class_test_dynamic_backend_utils_xhtml_a8e34f3a7d4d581864eb93474b8446405"><div class="ttname"><a href="class_test_dynamic_backend_utils.xhtml#a8e34f3a7d4d581864eb93474b8446405">TestDynamicBackendUtils::IsBackendCompatibleTest</a></div><div class="ttdeci">static bool IsBackendCompatibleTest(const armnn::BackendVersion &backendApiVersion, const armnn::BackendVersion &backendVersion)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00071">DynamicBackendTests.hpp:71</a></div></div> |
| 233 | </div><!-- fragment --> |
| 234 | </div> |
| 235 | </div> |
| 236 | <a id="aec7460101cf2fd4f798d287654783143"></a> |
| 237 | <h2 class="memtitle"><span class="permalink"><a href="#aec7460101cf2fd4f798d287654783143">◆ </a></span>CloseInvalidHandleTestImpl()</h2> |
| 238 | |
| 239 | <div class="memitem"> |
| 240 | <div class="memproto"> |
| 241 | <table class="memname"> |
| 242 | <tr> |
| 243 | <td class="memname">void CloseInvalidHandleTestImpl </td> |
| 244 | <td>(</td> |
| 245 | <td class="paramname"></td><td>)</td> |
| 246 | <td></td> |
| 247 | </tr> |
| 248 | </table> |
| 249 | </div><div class="memdoc"> |
| 250 | |
| 251 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00177">177</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 252 | <div class="fragment"><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> {</div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span>  <span class="comment">// This calls must silently handle invalid handles and complete successfully (no segfaults, etc.)</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span>  <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">DynamicBackendUtils::CloseHandle</a>(<span class="keyword">nullptr</span>);</div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> }</div><div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 253 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aebd30d283660a07b4123fdb0245e8426"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">armnn::DynamicBackendUtils::CloseHandle</a></div><div class="ttdeci">static void CloseHandle(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00037">DynamicBackendUtils.cpp:37</a></div></div> |
| 254 | </div><!-- fragment --> |
| 255 | </div> |
| 256 | </div> |
| 257 | <a id="ac98b3660d8c88c80c02fdcdab25a534f"></a> |
| 258 | <h2 class="memtitle"><span class="permalink"><a href="#ac98b3660d8c88c80c02fdcdab25a534f">◆ </a></span>CreateDynamicBackendObjectInvalidHandleTestImpl()</h2> |
| 259 | |
| 260 | <div class="memitem"> |
| 261 | <div class="memproto"> |
| 262 | <table class="memname"> |
| 263 | <tr> |
| 264 | <td class="memname">void CreateDynamicBackendObjectInvalidHandleTestImpl </td> |
| 265 | <td>(</td> |
| 266 | <td class="paramname"></td><td>)</td> |
| 267 | <td></td> |
| 268 | </tr> |
| 269 | </table> |
| 270 | </div><div class="memdoc"> |
| 271 | |
| 272 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00384">384</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 273 | <div class="fragment"><div class="line"><a name="l00385"></a><span class="lineno"> 385</span> {</div><div class="line"><a name="l00386"></a><span class="lineno"> 386</span>  <span class="comment">// Invalid (null) shared object handle</span></div><div class="line"><a name="l00387"></a><span class="lineno"> 387</span> </div><div class="line"><a name="l00388"></a><span class="lineno"> 388</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00389"></a><span class="lineno"> 389</span> </div><div class="line"><a name="l00390"></a><span class="lineno"> 390</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00391"></a><span class="lineno"> 391</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00392"></a><span class="lineno"> 392</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_invalid_argument_exception.xhtml">InvalidArgumentException</a>);</div><div class="line"><a name="l00393"></a><span class="lineno"> 393</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00394"></a><span class="lineno"> 394</span> }</div><div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 274 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 275 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 276 | <div class="ttc" id="classarmnn_1_1_invalid_argument_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_invalid_argument_exception.xhtml">armnn::InvalidArgumentException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00080">Exceptions.hpp:80</a></div></div> |
| 277 | </div><!-- fragment --> |
| 278 | </div> |
| 279 | </div> |
| 280 | <a id="acfd92844ff506a69381848c62b5f396d"></a> |
| 281 | <h2 class="memtitle"><span class="permalink"><a href="#acfd92844ff506a69381848c62b5f396d">◆ </a></span>CreateDynamicBackendObjectInvalidInterface1TestImpl()</h2> |
| 282 | |
| 283 | <div class="memitem"> |
| 284 | <div class="memproto"> |
| 285 | <table class="memname"> |
| 286 | <tr> |
| 287 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface1TestImpl </td> |
| 288 | <td>(</td> |
| 289 | <td class="paramname"></td><td>)</td> |
| 290 | <td></td> |
| 291 | </tr> |
| 292 | </table> |
| 293 | </div><div class="memdoc"> |
| 294 | |
| 295 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00396">396</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 296 | |
| 297 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 298 | <div class="fragment"><div class="line"><a name="l00397"></a><span class="lineno"> 397</span> {</div><div class="line"><a name="l00398"></a><span class="lineno"> 398</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00399"></a><span class="lineno"> 399</span>  <span class="comment">// Wrong (not C-style) name mangling</span></div><div class="line"><a name="l00400"></a><span class="lineno"> 400</span> </div><div class="line"><a name="l00401"></a><span class="lineno"> 401</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00402"></a><span class="lineno"> 402</span> </div><div class="line"><a name="l00403"></a><span class="lineno"> 403</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00404"></a><span class="lineno"> 404</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend1FileName);</div><div class="line"><a name="l00405"></a><span class="lineno"> 405</span> </div><div class="line"><a name="l00406"></a><span class="lineno"> 406</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00407"></a><span class="lineno"> 407</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00408"></a><span class="lineno"> 408</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00409"></a><span class="lineno"> 409</span> </div><div class="line"><a name="l00410"></a><span class="lineno"> 410</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00411"></a><span class="lineno"> 411</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00412"></a><span class="lineno"> 412</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00413"></a><span class="lineno"> 413</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 299 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 300 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 301 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 302 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 303 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 304 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 305 | </div><!-- fragment --> |
| 306 | </div> |
| 307 | </div> |
| 308 | <a id="a2733fc49ff574659904cbc558c6b2bac"></a> |
| 309 | <h2 class="memtitle"><span class="permalink"><a href="#a2733fc49ff574659904cbc558c6b2bac">◆ </a></span>CreateDynamicBackendObjectInvalidInterface2TestImpl()</h2> |
| 310 | |
| 311 | <div class="memitem"> |
| 312 | <div class="memproto"> |
| 313 | <table class="memname"> |
| 314 | <tr> |
| 315 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface2TestImpl </td> |
| 316 | <td>(</td> |
| 317 | <td class="paramname"></td><td>)</td> |
| 318 | <td></td> |
| 319 | </tr> |
| 320 | </table> |
| 321 | </div><div class="memdoc"> |
| 322 | |
| 323 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00415">415</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 324 | |
| 325 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 326 | <div class="fragment"><div class="line"><a name="l00416"></a><span class="lineno"> 416</span> {</div><div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00418"></a><span class="lineno"> 418</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00419"></a><span class="lineno"> 419</span>  <span class="comment">// Wrong interface (missing GetBackendId())</span></div><div class="line"><a name="l00420"></a><span class="lineno"> 420</span> </div><div class="line"><a name="l00421"></a><span class="lineno"> 421</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00422"></a><span class="lineno"> 422</span> </div><div class="line"><a name="l00423"></a><span class="lineno"> 423</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00424"></a><span class="lineno"> 424</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend2FileName);</div><div class="line"><a name="l00425"></a><span class="lineno"> 425</span> </div><div class="line"><a name="l00426"></a><span class="lineno"> 426</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00427"></a><span class="lineno"> 427</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00428"></a><span class="lineno"> 428</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00429"></a><span class="lineno"> 429</span> </div><div class="line"><a name="l00430"></a><span class="lineno"> 430</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00431"></a><span class="lineno"> 431</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00432"></a><span class="lineno"> 432</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00433"></a><span class="lineno"> 433</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 327 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 328 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 329 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 330 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 331 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 332 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 333 | </div><!-- fragment --> |
| 334 | </div> |
| 335 | </div> |
| 336 | <a id="a47d1d68ab62ac387a9d8253d08260fc4"></a> |
| 337 | <h2 class="memtitle"><span class="permalink"><a href="#a47d1d68ab62ac387a9d8253d08260fc4">◆ </a></span>CreateDynamicBackendObjectInvalidInterface3TestImpl()</h2> |
| 338 | |
| 339 | <div class="memitem"> |
| 340 | <div class="memproto"> |
| 341 | <table class="memname"> |
| 342 | <tr> |
| 343 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface3TestImpl </td> |
| 344 | <td>(</td> |
| 345 | <td class="paramname"></td><td>)</td> |
| 346 | <td></td> |
| 347 | </tr> |
| 348 | </table> |
| 349 | </div><div class="memdoc"> |
| 350 | |
| 351 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00435">435</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 352 | |
| 353 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 354 | <div class="fragment"><div class="line"><a name="l00436"></a><span class="lineno"> 436</span> {</div><div class="line"><a name="l00437"></a><span class="lineno"> 437</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00438"></a><span class="lineno"> 438</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00439"></a><span class="lineno"> 439</span>  <span class="comment">// Wrong interface (missing GetVersion())</span></div><div class="line"><a name="l00440"></a><span class="lineno"> 440</span> </div><div class="line"><a name="l00441"></a><span class="lineno"> 441</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00442"></a><span class="lineno"> 442</span> </div><div class="line"><a name="l00443"></a><span class="lineno"> 443</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00444"></a><span class="lineno"> 444</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend3FileName);</div><div class="line"><a name="l00445"></a><span class="lineno"> 445</span> </div><div class="line"><a name="l00446"></a><span class="lineno"> 446</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00447"></a><span class="lineno"> 447</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00448"></a><span class="lineno"> 448</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00449"></a><span class="lineno"> 449</span> </div><div class="line"><a name="l00450"></a><span class="lineno"> 450</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00451"></a><span class="lineno"> 451</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00453"></a><span class="lineno"> 453</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 355 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 356 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 357 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 358 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 359 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 360 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 361 | </div><!-- fragment --> |
| 362 | </div> |
| 363 | </div> |
| 364 | <a id="a307ee2e89a7a9dd574674a69da91addd"></a> |
| 365 | <h2 class="memtitle"><span class="permalink"><a href="#a307ee2e89a7a9dd574674a69da91addd">◆ </a></span>CreateDynamicBackendObjectInvalidInterface4TestImpl()</h2> |
| 366 | |
| 367 | <div class="memitem"> |
| 368 | <div class="memproto"> |
| 369 | <table class="memname"> |
| 370 | <tr> |
| 371 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface4TestImpl </td> |
| 372 | <td>(</td> |
| 373 | <td class="paramname"></td><td>)</td> |
| 374 | <td></td> |
| 375 | </tr> |
| 376 | </table> |
| 377 | </div><div class="memdoc"> |
| 378 | |
| 379 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00455">455</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 380 | |
| 381 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 382 | <div class="fragment"><div class="line"><a name="l00456"></a><span class="lineno"> 456</span> {</div><div class="line"><a name="l00457"></a><span class="lineno"> 457</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00458"></a><span class="lineno"> 458</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00459"></a><span class="lineno"> 459</span>  <span class="comment">// Wrong interface (missing BackendFactory())</span></div><div class="line"><a name="l00460"></a><span class="lineno"> 460</span> </div><div class="line"><a name="l00461"></a><span class="lineno"> 461</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00462"></a><span class="lineno"> 462</span> </div><div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00464"></a><span class="lineno"> 464</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend4FileName);</div><div class="line"><a name="l00465"></a><span class="lineno"> 465</span> </div><div class="line"><a name="l00466"></a><span class="lineno"> 466</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00467"></a><span class="lineno"> 467</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00468"></a><span class="lineno"> 468</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00469"></a><span class="lineno"> 469</span> </div><div class="line"><a name="l00470"></a><span class="lineno"> 470</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00471"></a><span class="lineno"> 471</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00472"></a><span class="lineno"> 472</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00473"></a><span class="lineno"> 473</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 383 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 384 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 385 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 386 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 387 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 388 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 389 | </div><!-- fragment --> |
| 390 | </div> |
| 391 | </div> |
| 392 | <a id="a925a53b0f85afbe661c251b858b01601"></a> |
| 393 | <h2 class="memtitle"><span class="permalink"><a href="#a925a53b0f85afbe661c251b858b01601">◆ </a></span>CreateDynamicBackendObjectInvalidInterface5TestImpl()</h2> |
| 394 | |
| 395 | <div class="memitem"> |
| 396 | <div class="memproto"> |
| 397 | <table class="memname"> |
| 398 | <tr> |
| 399 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface5TestImpl </td> |
| 400 | <td>(</td> |
| 401 | <td class="paramname"></td><td>)</td> |
| 402 | <td></td> |
| 403 | </tr> |
| 404 | </table> |
| 405 | </div><div class="memdoc"> |
| 406 | |
| 407 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00475">475</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 408 | |
| 409 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 410 | <div class="fragment"><div class="line"><a name="l00476"></a><span class="lineno"> 476</span> {</div><div class="line"><a name="l00477"></a><span class="lineno"> 477</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00478"></a><span class="lineno"> 478</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00479"></a><span class="lineno"> 479</span>  <span class="comment">// Correct interface</span></div><div class="line"><a name="l00480"></a><span class="lineno"> 480</span>  <span class="comment">// Invalid (null) backend id returned by GetBackendId()</span></div><div class="line"><a name="l00481"></a><span class="lineno"> 481</span> </div><div class="line"><a name="l00482"></a><span class="lineno"> 482</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00483"></a><span class="lineno"> 483</span> </div><div class="line"><a name="l00484"></a><span class="lineno"> 484</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00485"></a><span class="lineno"> 485</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend5FileName);</div><div class="line"><a name="l00486"></a><span class="lineno"> 486</span> </div><div class="line"><a name="l00487"></a><span class="lineno"> 487</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00488"></a><span class="lineno"> 488</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00489"></a><span class="lineno"> 489</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00490"></a><span class="lineno"> 490</span> </div><div class="line"><a name="l00491"></a><span class="lineno"> 491</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00492"></a><span class="lineno"> 492</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00493"></a><span class="lineno"> 493</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00494"></a><span class="lineno"> 494</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 411 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 412 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 413 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 414 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 415 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 416 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 417 | </div><!-- fragment --> |
| 418 | </div> |
| 419 | </div> |
| 420 | <a id="a8f879660cb144117a50465429197ce0c"></a> |
| 421 | <h2 class="memtitle"><span class="permalink"><a href="#a8f879660cb144117a50465429197ce0c">◆ </a></span>CreateDynamicBackendObjectInvalidInterface6TestImpl()</h2> |
| 422 | |
| 423 | <div class="memitem"> |
| 424 | <div class="memproto"> |
| 425 | <table class="memname"> |
| 426 | <tr> |
| 427 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface6TestImpl </td> |
| 428 | <td>(</td> |
| 429 | <td class="paramname"></td><td>)</td> |
| 430 | <td></td> |
| 431 | </tr> |
| 432 | </table> |
| 433 | </div><div class="memdoc"> |
| 434 | |
| 435 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00496">496</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 436 | |
| 437 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 438 | <div class="fragment"><div class="line"><a name="l00497"></a><span class="lineno"> 497</span> {</div><div class="line"><a name="l00498"></a><span class="lineno"> 498</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00499"></a><span class="lineno"> 499</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00500"></a><span class="lineno"> 500</span>  <span class="comment">// Correct interface</span></div><div class="line"><a name="l00501"></a><span class="lineno"> 501</span>  <span class="comment">// Invalid (null) backend instance returned by BackendFactory()</span></div><div class="line"><a name="l00502"></a><span class="lineno"> 502</span> </div><div class="line"><a name="l00503"></a><span class="lineno"> 503</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00504"></a><span class="lineno"> 504</span> </div><div class="line"><a name="l00505"></a><span class="lineno"> 505</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00506"></a><span class="lineno"> 506</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend6FileName);</div><div class="line"><a name="l00507"></a><span class="lineno"> 507</span> </div><div class="line"><a name="l00508"></a><span class="lineno"> 508</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00509"></a><span class="lineno"> 509</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00510"></a><span class="lineno"> 510</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00511"></a><span class="lineno"> 511</span> </div><div class="line"><a name="l00512"></a><span class="lineno"> 512</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00513"></a><span class="lineno"> 513</span>  BOOST_CHECK_NO_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)));</div><div class="line"><a name="l00514"></a><span class="lineno"> 514</span>  BOOST_TEST((dynamicBackend != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00515"></a><span class="lineno"> 515</span> </div><div class="line"><a name="l00516"></a><span class="lineno"> 516</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId;</div><div class="line"><a name="l00517"></a><span class="lineno"> 517</span>  BOOST_CHECK_NO_THROW(dynamicBackendId = dynamicBackend->GetBackendId());</div><div class="line"><a name="l00518"></a><span class="lineno"> 518</span>  BOOST_TEST((dynamicBackendId == <span class="stringliteral">"InvalidTestDynamicBackend"</span>));</div><div class="line"><a name="l00519"></a><span class="lineno"> 519</span> </div><div class="line"><a name="l00520"></a><span class="lineno"> 520</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> dynamicBackendVersion;</div><div class="line"><a name="l00521"></a><span class="lineno"> 521</span>  BOOST_CHECK_NO_THROW(dynamicBackendVersion = dynamicBackend->GetBackendVersion());</div><div class="line"><a name="l00522"></a><span class="lineno"> 522</span>  BOOST_TEST((dynamicBackendVersion == <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a>({ 1, 0 })));</div><div class="line"><a name="l00523"></a><span class="lineno"> 523</span> </div><div class="line"><a name="l00524"></a><span class="lineno"> 524</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackendInstance1;</div><div class="line"><a name="l00525"></a><span class="lineno"> 525</span>  BOOST_CHECK_THROW(dynamicBackendInstance1 = dynamicBackend->GetBackend(), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00526"></a><span class="lineno"> 526</span>  BOOST_TEST((dynamicBackendInstance1 == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00527"></a><span class="lineno"> 527</span> </div><div class="line"><a name="l00528"></a><span class="lineno"> 528</span>  <a class="code" href="classarmnn_1_1_backend_registry.xhtml#aa33ac375677ee8436456a585dd6f68d9">BackendRegistry::FactoryFunction</a> dynamicBackendFactoryFunction = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00529"></a><span class="lineno"> 529</span>  BOOST_CHECK_NO_THROW(dynamicBackendFactoryFunction = dynamicBackend->GetFactoryFunction());</div><div class="line"><a name="l00530"></a><span class="lineno"> 530</span>  BOOST_TEST((dynamicBackendFactoryFunction != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00531"></a><span class="lineno"> 531</span> </div><div class="line"><a name="l00532"></a><span class="lineno"> 532</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackendInstance2;</div><div class="line"><a name="l00533"></a><span class="lineno"> 533</span>  BOOST_CHECK_THROW(dynamicBackendInstance2 = dynamicBackendFactoryFunction(), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00534"></a><span class="lineno"> 534</span>  BOOST_TEST((dynamicBackendInstance2 == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00535"></a><span class="lineno"> 535</span> }</div><div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_aa33ac375677ee8436456a585dd6f68d9"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#aa33ac375677ee8436456a585dd6f68d9">armnn::BackendRegistry::FactoryFunction</a></div><div class="ttdeci">std::function< PointerType()> FactoryFunction</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00024">BackendRegistry.hpp:24</a></div></div> |
| 439 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 440 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 441 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 442 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 443 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 444 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 445 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 446 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 447 | <div class="ttc" id="namespacearmnn_xhtml_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00018">BackendRegistry.hpp:18</a></div></div> |
| 448 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 449 | </div><!-- fragment --> |
| 450 | </div> |
| 451 | </div> |
| 452 | <a id="ab831071920946c5e8562471793882ac4"></a> |
| 453 | <h2 class="memtitle"><span class="permalink"><a href="#ab831071920946c5e8562471793882ac4">◆ </a></span>CreateDynamicBackendObjectInvalidInterface7TestImpl()</h2> |
| 454 | |
| 455 | <div class="memitem"> |
| 456 | <div class="memproto"> |
| 457 | <table class="memname"> |
| 458 | <tr> |
| 459 | <td class="memname">void CreateDynamicBackendObjectInvalidInterface7TestImpl </td> |
| 460 | <td>(</td> |
| 461 | <td class="paramname"></td><td>)</td> |
| 462 | <td></td> |
| 463 | </tr> |
| 464 | </table> |
| 465 | </div><div class="memdoc"> |
| 466 | |
| 467 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00537">537</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 468 | |
| 469 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 470 | <div class="fragment"><div class="line"><a name="l00538"></a><span class="lineno"> 538</span> {</div><div class="line"><a name="l00539"></a><span class="lineno"> 539</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00540"></a><span class="lineno"> 540</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00541"></a><span class="lineno"> 541</span>  <span class="comment">// Correct interface</span></div><div class="line"><a name="l00542"></a><span class="lineno"> 542</span>  <span class="comment">// Invalid (incompatible backend API version) backend instance returned by BackendFactory()</span></div><div class="line"><a name="l00543"></a><span class="lineno"> 543</span> </div><div class="line"><a name="l00544"></a><span class="lineno"> 544</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00545"></a><span class="lineno"> 545</span> </div><div class="line"><a name="l00546"></a><span class="lineno"> 546</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00547"></a><span class="lineno"> 547</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestInvalidTestDynamicBackend7FileName);</div><div class="line"><a name="l00548"></a><span class="lineno"> 548</span> </div><div class="line"><a name="l00549"></a><span class="lineno"> 549</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00550"></a><span class="lineno"> 550</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00551"></a><span class="lineno"> 551</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00552"></a><span class="lineno"> 552</span> </div><div class="line"><a name="l00553"></a><span class="lineno"> 553</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00554"></a><span class="lineno"> 554</span>  BOOST_CHECK_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00555"></a><span class="lineno"> 555</span>  BOOST_TEST((dynamicBackend == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00556"></a><span class="lineno"> 556</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 471 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 472 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 473 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 474 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 475 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 476 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 477 | </div><!-- fragment --> |
| 478 | </div> |
| 479 | </div> |
| 480 | <a id="ae6308c78a8fdab82f4929b07dc439cd9"></a> |
| 481 | <h2 class="memtitle"><span class="permalink"><a href="#ae6308c78a8fdab82f4929b07dc439cd9">◆ </a></span>CreateDynamicBackendsAllInvalidTestImpl()</h2> |
| 482 | |
| 483 | <div class="memitem"> |
| 484 | <div class="memproto"> |
| 485 | <table class="memname"> |
| 486 | <tr> |
| 487 | <td class="memname">void CreateDynamicBackendsAllInvalidTestImpl </td> |
| 488 | <td>(</td> |
| 489 | <td class="paramname"></td><td>)</td> |
| 490 | <td></td> |
| 491 | </tr> |
| 492 | </table> |
| 493 | </div><div class="memdoc"> |
| 494 | |
| 495 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00822">822</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 496 | <div class="fragment"><div class="line"><a name="l00823"></a><span class="lineno"> 823</span> {</div><div class="line"><a name="l00824"></a><span class="lineno"> 824</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00825"></a><span class="lineno"> 825</span> </div><div class="line"><a name="l00826"></a><span class="lineno"> 826</span>  std::vector<std::string> sharedObjects</div><div class="line"><a name="l00827"></a><span class="lineno"> 827</span>  {</div><div class="line"><a name="l00828"></a><span class="lineno"> 828</span>  <span class="stringliteral">"InvalidSharedObject1"</span>,</div><div class="line"><a name="l00829"></a><span class="lineno"> 829</span>  <span class="stringliteral">"InvalidSharedObject2"</span>,</div><div class="line"><a name="l00830"></a><span class="lineno"> 830</span>  <span class="stringliteral">"InvalidSharedObject3"</span>,</div><div class="line"><a name="l00831"></a><span class="lineno"> 831</span>  };</div><div class="line"><a name="l00832"></a><span class="lineno"> 832</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">DynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l00833"></a><span class="lineno"> 833</span> </div><div class="line"><a name="l00834"></a><span class="lineno"> 834</span>  BOOST_TEST(dynamicBackends.empty());</div><div class="line"><a name="l00835"></a><span class="lineno"> 835</span> }</div><div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 497 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 498 | </div><!-- fragment --> |
| 499 | </div> |
| 500 | </div> |
| 501 | <a id="a1f89ff6d66212524954282edcda4082b"></a> |
| 502 | <h2 class="memtitle"><span class="permalink"><a href="#a1f89ff6d66212524954282edcda4082b">◆ </a></span>CreateDynamicBackendsMixedTypesTestImpl()</h2> |
| 503 | |
| 504 | <div class="memitem"> |
| 505 | <div class="memproto"> |
| 506 | <table class="memname"> |
| 507 | <tr> |
| 508 | <td class="memname">void CreateDynamicBackendsMixedTypesTestImpl </td> |
| 509 | <td>(</td> |
| 510 | <td class="paramname"></td><td>)</td> |
| 511 | <td></td> |
| 512 | </tr> |
| 513 | </table> |
| 514 | </div><div class="memdoc"> |
| 515 | |
| 516 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00837">837</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 517 | |
| 518 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 519 | <div class="fragment"><div class="line"><a name="l00838"></a><span class="lineno"> 838</span> {</div><div class="line"><a name="l00839"></a><span class="lineno"> 839</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00840"></a><span class="lineno"> 840</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00841"></a><span class="lineno"> 841</span> </div><div class="line"><a name="l00842"></a><span class="lineno"> 842</span>  std::string testDynamicBackendsSubDir5 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir5);</div><div class="line"><a name="l00843"></a><span class="lineno"> 843</span>  std::string testDynamicBackendsSubDir6 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir6);</div><div class="line"><a name="l00844"></a><span class="lineno"> 844</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir5));</div><div class="line"><a name="l00845"></a><span class="lineno"> 845</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir6));</div><div class="line"><a name="l00846"></a><span class="lineno"> 846</span> </div><div class="line"><a name="l00847"></a><span class="lineno"> 847</span>  std::string testValidBackend2FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5,</div><div class="line"><a name="l00848"></a><span class="lineno"> 848</span>  g_TestValidBackend2FileName);</div><div class="line"><a name="l00849"></a><span class="lineno"> 849</span>  std::string testInvalidBackend8FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5,</div><div class="line"><a name="l00850"></a><span class="lineno"> 850</span>  g_TestInvalidBackend8FileName);</div><div class="line"><a name="l00851"></a><span class="lineno"> 851</span>  std::string testInvalidBackend9FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir6,</div><div class="line"><a name="l00852"></a><span class="lineno"> 852</span>  g_TestInvalidBackend9FileName);</div><div class="line"><a name="l00853"></a><span class="lineno"> 853</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend2FilePath));</div><div class="line"><a name="l00854"></a><span class="lineno"> 854</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend8FilePath));</div><div class="line"><a name="l00855"></a><span class="lineno"> 855</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend9FilePath));</div><div class="line"><a name="l00856"></a><span class="lineno"> 856</span> </div><div class="line"><a name="l00857"></a><span class="lineno"> 857</span>  std::vector<std::string> sharedObjects</div><div class="line"><a name="l00858"></a><span class="lineno"> 858</span>  {</div><div class="line"><a name="l00859"></a><span class="lineno"> 859</span>  testValidBackend2FilePath, <span class="comment">// Arm_TestValid2_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l00860"></a><span class="lineno"> 860</span>  testInvalidBackend8FilePath, <span class="comment">// Arm_TestInvalid8_backend.so -> not valid (invalid backend id)</span></div><div class="line"><a name="l00861"></a><span class="lineno"> 861</span>  testInvalidBackend9FilePath, <span class="comment">// Arm_TestInvalid9_backend.so -> not valid (incompatible version)</span></div><div class="line"><a name="l00862"></a><span class="lineno"> 862</span>  <span class="stringliteral">"InvalidSharedObject"</span>, <span class="comment">// The file does not exist</span></div><div class="line"><a name="l00863"></a><span class="lineno"> 863</span>  };</div><div class="line"><a name="l00864"></a><span class="lineno"> 864</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">DynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l00865"></a><span class="lineno"> 865</span> </div><div class="line"><a name="l00866"></a><span class="lineno"> 866</span>  BOOST_TEST(dynamicBackends.size() == 1);</div><div class="line"><a name="l00867"></a><span class="lineno"> 867</span>  BOOST_TEST((dynamicBackends[0] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00868"></a><span class="lineno"> 868</span>  BOOST_TEST((dynamicBackends[0]-><a class="code" href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a>() == <span class="stringliteral">"TestValid2"</span>));</div><div class="line"><a name="l00869"></a><span class="lineno"> 869</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 520 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 521 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 522 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 523 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 524 | <div class="ttc" id="_test_dynamic_backend_8cpp_xhtml_adaff295134ed2825ae43a8e9281b6f2a"><div class="ttname"><a href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a></div><div class="ttdeci">const char * GetBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_test_dynamic_backend_8cpp_source.xhtml#l00080">TestDynamicBackend.cpp:80</a></div></div> |
| 525 | </div><!-- fragment --> |
| 526 | </div> |
| 527 | </div> |
| 528 | <a id="a40efe1578a402125bd0efbc29eecb225"></a> |
| 529 | <h2 class="memtitle"><span class="permalink"><a href="#a40efe1578a402125bd0efbc29eecb225">◆ </a></span>CreateDynamicBackendsNoPathsTestImpl()</h2> |
| 530 | |
| 531 | <div class="memitem"> |
| 532 | <div class="memproto"> |
| 533 | <table class="memname"> |
| 534 | <tr> |
| 535 | <td class="memname">void CreateDynamicBackendsNoPathsTestImpl </td> |
| 536 | <td>(</td> |
| 537 | <td class="paramname"></td><td>)</td> |
| 538 | <td></td> |
| 539 | </tr> |
| 540 | </table> |
| 541 | </div><div class="memdoc"> |
| 542 | |
| 543 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00813">813</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 544 | <div class="fragment"><div class="line"><a name="l00814"></a><span class="lineno"> 814</span> {</div><div class="line"><a name="l00815"></a><span class="lineno"> 815</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00816"></a><span class="lineno"> 816</span> </div><div class="line"><a name="l00817"></a><span class="lineno"> 817</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">DynamicBackendUtils::CreateDynamicBackends</a>({});</div><div class="line"><a name="l00818"></a><span class="lineno"> 818</span> </div><div class="line"><a name="l00819"></a><span class="lineno"> 819</span>  BOOST_TEST(dynamicBackends.empty());</div><div class="line"><a name="l00820"></a><span class="lineno"> 820</span> }</div><div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 545 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 546 | </div><!-- fragment --> |
| 547 | </div> |
| 548 | </div> |
| 549 | <a id="a76c94b7ce857689477dcac09aba1858f"></a> |
| 550 | <h2 class="memtitle"><span class="permalink"><a href="#a76c94b7ce857689477dcac09aba1858f">◆ </a></span>CreateDynamicBackendsTestImpl()</h2> |
| 551 | |
| 552 | <div class="memitem"> |
| 553 | <div class="memproto"> |
| 554 | <table class="memname"> |
| 555 | <tr> |
| 556 | <td class="memname">void CreateDynamicBackendsTestImpl </td> |
| 557 | <td>(</td> |
| 558 | <td class="paramname"></td><td>)</td> |
| 559 | <td></td> |
| 560 | </tr> |
| 561 | </table> |
| 562 | </div><div class="memdoc"> |
| 563 | |
| 564 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00750">750</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 565 | |
| 566 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 567 | <div class="fragment"><div class="line"><a name="l00751"></a><span class="lineno"> 751</span> {</div><div class="line"><a name="l00752"></a><span class="lineno"> 752</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00753"></a><span class="lineno"> 753</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00754"></a><span class="lineno"> 754</span> </div><div class="line"><a name="l00755"></a><span class="lineno"> 755</span>  <span class="comment">// The test covers four directories:</span></div><div class="line"><a name="l00756"></a><span class="lineno"> 756</span>  <span class="comment">// <unit test path>/src/backends/backendsCommon/test/</span></div><div class="line"><a name="l00757"></a><span class="lineno"> 757</span>  <span class="comment">// ├─ backendsTestPath5/ -> exists, contains files</span></div><div class="line"><a name="l00758"></a><span class="lineno"> 758</span>  <span class="comment">// ├─ backendsTestPath6/ -> exists, contains files</span></div><div class="line"><a name="l00759"></a><span class="lineno"> 759</span>  <span class="comment">// ├─ backendsTestPath7/ -> exists, but empty</span></div><div class="line"><a name="l00760"></a><span class="lineno"> 760</span>  <span class="comment">// └─ backendsTestPath8/ -> does not exist</span></div><div class="line"><a name="l00761"></a><span class="lineno"> 761</span>  <span class="comment">//</span></div><div class="line"><a name="l00762"></a><span class="lineno"> 762</span>  <span class="comment">// The test sub-directory backendsTestPath5/ contains the following test files:</span></div><div class="line"><a name="l00763"></a><span class="lineno"> 763</span>  <span class="comment">//</span></div><div class="line"><a name="l00764"></a><span class="lineno"> 764</span>  <span class="comment">// Arm_TestValid2_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l00765"></a><span class="lineno"> 765</span>  <span class="comment">// Arm_TestValid3_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l00766"></a><span class="lineno"> 766</span>  <span class="comment">// Arm_TestInvalid8_backend.so -> not valid (invalid backend id)</span></div><div class="line"><a name="l00767"></a><span class="lineno"> 767</span>  <span class="comment">//</span></div><div class="line"><a name="l00768"></a><span class="lineno"> 768</span>  <span class="comment">// The test sub-directory backendsTestPath6/ contains the following test files:</span></div><div class="line"><a name="l00769"></a><span class="lineno"> 769</span>  <span class="comment">//</span></div><div class="line"><a name="l00770"></a><span class="lineno"> 770</span>  <span class="comment">// Arm_TestValid2_backend.so -> valid (but duplicated from backendsTestPath5/)</span></div><div class="line"><a name="l00771"></a><span class="lineno"> 771</span>  <span class="comment">// Arm_TestValid4_backend.so -> valid (it has a different filename,</span></div><div class="line"><a name="l00772"></a><span class="lineno"> 772</span>  <span class="comment">// but it has the same backend id of Arm_TestValid2_backend.so</span></div><div class="line"><a name="l00773"></a><span class="lineno"> 773</span>  <span class="comment">// and the same version)</span></div><div class="line"><a name="l00774"></a><span class="lineno"> 774</span>  <span class="comment">// Arm_TestValid5_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l00775"></a><span class="lineno"> 775</span>  <span class="comment">// Arm_TestInvalid9_backend.so -> not valid (it has a different filename,</span></div><div class="line"><a name="l00776"></a><span class="lineno"> 776</span>  <span class="comment">// but it has the same backend id of Arm_TestValid2_backend.so</span></div><div class="line"><a name="l00777"></a><span class="lineno"> 777</span>  <span class="comment">// and a version incompatible with the Backend API)</span></div><div class="line"><a name="l00778"></a><span class="lineno"> 778</span> </div><div class="line"><a name="l00779"></a><span class="lineno"> 779</span>  std::string testDynamicBackendsSubDir5 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir5);</div><div class="line"><a name="l00780"></a><span class="lineno"> 780</span>  std::string testDynamicBackendsSubDir6 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir6);</div><div class="line"><a name="l00781"></a><span class="lineno"> 781</span>  std::string testDynamicBackendsSubDir7 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir7);</div><div class="line"><a name="l00782"></a><span class="lineno"> 782</span>  std::string testDynamicBackendsSubDir8 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir8);</div><div class="line"><a name="l00783"></a><span class="lineno"> 783</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir5));</div><div class="line"><a name="l00784"></a><span class="lineno"> 784</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir6));</div><div class="line"><a name="l00785"></a><span class="lineno"> 785</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir7));</div><div class="line"><a name="l00786"></a><span class="lineno"> 786</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!exists(testDynamicBackendsSubDir8));</div><div class="line"><a name="l00787"></a><span class="lineno"> 787</span> </div><div class="line"><a name="l00788"></a><span class="lineno"> 788</span>  std::vector<std::string> backendPaths</div><div class="line"><a name="l00789"></a><span class="lineno"> 789</span>  {</div><div class="line"><a name="l00790"></a><span class="lineno"> 790</span>  testDynamicBackendsSubDir5,</div><div class="line"><a name="l00791"></a><span class="lineno"> 791</span>  testDynamicBackendsSubDir6,</div><div class="line"><a name="l00792"></a><span class="lineno"> 792</span>  testDynamicBackendsSubDir7,</div><div class="line"><a name="l00793"></a><span class="lineno"> 793</span>  testDynamicBackendsSubDir8</div><div class="line"><a name="l00794"></a><span class="lineno"> 794</span>  };</div><div class="line"><a name="l00795"></a><span class="lineno"> 795</span>  std::vector<std::string> sharedObjects = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a48e1fb944c3ef4086365aedcadb4c311">DynamicBackendUtils::GetSharedObjects</a>(backendPaths);</div><div class="line"><a name="l00796"></a><span class="lineno"> 796</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">DynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l00797"></a><span class="lineno"> 797</span> </div><div class="line"><a name="l00798"></a><span class="lineno"> 798</span>  BOOST_TEST(dynamicBackends.size() == 5);</div><div class="line"><a name="l00799"></a><span class="lineno"> 799</span>  BOOST_TEST((dynamicBackends[0] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00800"></a><span class="lineno"> 800</span>  BOOST_TEST((dynamicBackends[1] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00801"></a><span class="lineno"> 801</span>  BOOST_TEST((dynamicBackends[2] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00802"></a><span class="lineno"> 802</span>  BOOST_TEST((dynamicBackends[3] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00803"></a><span class="lineno"> 803</span>  BOOST_TEST((dynamicBackends[4] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00804"></a><span class="lineno"> 804</span> </div><div class="line"><a name="l00805"></a><span class="lineno"> 805</span>  <span class="comment">// Duplicates are allowed here, they will be skipped later during the backend registration</span></div><div class="line"><a name="l00806"></a><span class="lineno"> 806</span>  BOOST_TEST((dynamicBackends[0]-><a class="code" href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a>() == <span class="stringliteral">"TestValid2"</span>));</div><div class="line"><a name="l00807"></a><span class="lineno"> 807</span>  BOOST_TEST((dynamicBackends[1]-><a class="code" href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a>() == <span class="stringliteral">"TestValid3"</span>));</div><div class="line"><a name="l00808"></a><span class="lineno"> 808</span>  BOOST_TEST((dynamicBackends[2]-><a class="code" href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a>() == <span class="stringliteral">"TestValid2"</span>)); <span class="comment">// From duplicate Arm_TestValid2_backend.so</span></div><div class="line"><a name="l00809"></a><span class="lineno"> 809</span>  BOOST_TEST((dynamicBackends[3]-><a class="code" href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a>() == <span class="stringliteral">"TestValid2"</span>)); <span class="comment">// From Arm_TestValid4_backend.so</span></div><div class="line"><a name="l00810"></a><span class="lineno"> 810</span>  BOOST_TEST((dynamicBackends[4]-><a class="code" href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a>() == <span class="stringliteral">"TestValid5"</span>));</div><div class="line"><a name="l00811"></a><span class="lineno"> 811</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 568 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 569 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 570 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 571 | <div class="ttc" id="_test_dynamic_backend_8cpp_xhtml_adaff295134ed2825ae43a8e9281b6f2a"><div class="ttname"><a href="_test_dynamic_backend_8cpp.xhtml#adaff295134ed2825ae43a8e9281b6f2a">GetBackendId</a></div><div class="ttdeci">const char * GetBackendId()</div><div class="ttdef"><b>Definition:</b> <a href="_test_dynamic_backend_8cpp_source.xhtml#l00080">TestDynamicBackend.cpp:80</a></div></div> |
| 572 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a48e1fb944c3ef4086365aedcadb4c311"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a48e1fb944c3ef4086365aedcadb4c311">armnn::DynamicBackendUtils::GetSharedObjects</a></div><div class="ttdeci">static std::vector< std::string > GetSharedObjects(const std::vector< std::string > &backendPaths)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00176">DynamicBackendUtils.cpp:176</a></div></div> |
| 573 | </div><!-- fragment --> |
| 574 | </div> |
| 575 | </div> |
| 576 | <a id="a1022c603487807dbfabdc0af03517883"></a> |
| 577 | <h2 class="memtitle"><span class="permalink"><a href="#a1022c603487807dbfabdc0af03517883">◆ </a></span>CreateValidDynamicBackendObjectTestImpl()</h2> |
| 578 | |
| 579 | <div class="memitem"> |
| 580 | <div class="memproto"> |
| 581 | <table class="memname"> |
| 582 | <tr> |
| 583 | <td class="memname">void CreateValidDynamicBackendObjectTestImpl </td> |
| 584 | <td>(</td> |
| 585 | <td class="paramname"></td><td>)</td> |
| 586 | <td></td> |
| 587 | </tr> |
| 588 | </table> |
| 589 | </div><div class="memdoc"> |
| 590 | |
| 591 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00340">340</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 592 | |
| 593 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 594 | <div class="fragment"><div class="line"><a name="l00341"></a><span class="lineno"> 341</span> {</div><div class="line"><a name="l00342"></a><span class="lineno"> 342</span>  <span class="comment">// Valid shared object handle</span></div><div class="line"><a name="l00343"></a><span class="lineno"> 343</span>  <span class="comment">// Correct name mangling</span></div><div class="line"><a name="l00344"></a><span class="lineno"> 344</span>  <span class="comment">// Correct interface</span></div><div class="line"><a name="l00345"></a><span class="lineno"> 345</span>  <span class="comment">// Correct backend implementation</span></div><div class="line"><a name="l00346"></a><span class="lineno"> 346</span> </div><div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div><div class="line"><a name="l00349"></a><span class="lineno"> 349</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendSubDir);</div><div class="line"><a name="l00350"></a><span class="lineno"> 350</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestValidTestDynamicBackendFileName);</div><div class="line"><a name="l00351"></a><span class="lineno"> 351</span> </div><div class="line"><a name="l00352"></a><span class="lineno"> 352</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00353"></a><span class="lineno"> 353</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00354"></a><span class="lineno"> 354</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00355"></a><span class="lineno"> 355</span> </div><div class="line"><a name="l00356"></a><span class="lineno"> 356</span>  <a class="code" href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">DynamicBackendPtr</a> dynamicBackend;</div><div class="line"><a name="l00357"></a><span class="lineno"> 357</span>  BOOST_CHECK_NO_THROW(dynamicBackend.reset(<span class="keyword">new</span> <a class="code" href="classarmnn_1_1_dynamic_backend.xhtml">DynamicBackend</a>(sharedObjectHandle)));</div><div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  BOOST_TEST((dynamicBackend != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div><div class="line"><a name="l00360"></a><span class="lineno"> 360</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId;</div><div class="line"><a name="l00361"></a><span class="lineno"> 361</span>  BOOST_CHECK_NO_THROW(dynamicBackendId = dynamicBackend->GetBackendId());</div><div class="line"><a name="l00362"></a><span class="lineno"> 362</span>  BOOST_TEST((dynamicBackendId == <span class="stringliteral">"ValidTestDynamicBackend"</span>));</div><div class="line"><a name="l00363"></a><span class="lineno"> 363</span> </div><div class="line"><a name="l00364"></a><span class="lineno"> 364</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> dynamicBackendVersion;</div><div class="line"><a name="l00365"></a><span class="lineno"> 365</span>  BOOST_CHECK_NO_THROW(dynamicBackendVersion = dynamicBackend->GetBackendVersion());</div><div class="line"><a name="l00366"></a><span class="lineno"> 366</span>  BOOST_TEST((dynamicBackendVersion == <a class="code" href="classarmnn_1_1_i_backend_internal.xhtml#a878b8f50d8a2f92ed624803e9f6968ae">IBackendInternal::GetApiVersion</a>()));</div><div class="line"><a name="l00367"></a><span class="lineno"> 367</span> </div><div class="line"><a name="l00368"></a><span class="lineno"> 368</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackendInstance1;</div><div class="line"><a name="l00369"></a><span class="lineno"> 369</span>  BOOST_CHECK_NO_THROW(dynamicBackendInstance1 = dynamicBackend->GetBackend());</div><div class="line"><a name="l00370"></a><span class="lineno"> 370</span>  BOOST_TEST((dynamicBackendInstance1 != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00371"></a><span class="lineno"> 371</span> </div><div class="line"><a name="l00372"></a><span class="lineno"> 372</span>  <a class="code" href="classarmnn_1_1_backend_registry.xhtml#aa33ac375677ee8436456a585dd6f68d9">BackendRegistry::FactoryFunction</a> dynamicBackendFactoryFunction = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00373"></a><span class="lineno"> 373</span>  BOOST_CHECK_NO_THROW(dynamicBackendFactoryFunction = dynamicBackend->GetFactoryFunction());</div><div class="line"><a name="l00374"></a><span class="lineno"> 374</span>  BOOST_TEST((dynamicBackendFactoryFunction != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00375"></a><span class="lineno"> 375</span> </div><div class="line"><a name="l00376"></a><span class="lineno"> 376</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackendInstance2;</div><div class="line"><a name="l00377"></a><span class="lineno"> 377</span>  BOOST_CHECK_NO_THROW(dynamicBackendInstance2 = dynamicBackendFactoryFunction());</div><div class="line"><a name="l00378"></a><span class="lineno"> 378</span>  BOOST_TEST((dynamicBackendInstance2 != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00379"></a><span class="lineno"> 379</span> </div><div class="line"><a name="l00380"></a><span class="lineno"> 380</span>  BOOST_TEST((dynamicBackendInstance1->GetId() == <span class="stringliteral">"ValidTestDynamicBackend"</span>));</div><div class="line"><a name="l00381"></a><span class="lineno"> 381</span>  BOOST_TEST((dynamicBackendInstance2->GetId() == <span class="stringliteral">"ValidTestDynamicBackend"</span>));</div><div class="line"><a name="l00382"></a><span class="lineno"> 382</span> }</div><div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_aa33ac375677ee8436456a585dd6f68d9"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#aa33ac375677ee8436456a585dd6f68d9">armnn::BackendRegistry::FactoryFunction</a></div><div class="ttdeci">std::function< PointerType()> FactoryFunction</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00024">BackendRegistry.hpp:24</a></div></div> |
| 595 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 596 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_xhtml"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend.xhtml">armnn::DynamicBackend</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00018">DynamicBackend.hpp:18</a></div></div> |
| 597 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 598 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 599 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 600 | <div class="ttc" id="namespacearmnn_xhtml_a754d43dc24a0fe36ecb3044d8f13a413"><div class="ttname"><a href="namespacearmnn.xhtml#a754d43dc24a0fe36ecb3044d8f13a413">armnn::DynamicBackendPtr</a></div><div class="ttdeci">std::unique_ptr< DynamicBackend > DynamicBackendPtr</div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_dynamic_backend_8hpp_source.xhtml#l00052">DynamicBackend.hpp:52</a></div></div> |
| 601 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 602 | <div class="ttc" id="classarmnn_1_1_i_backend_internal_xhtml_a878b8f50d8a2f92ed624803e9f6968ae"><div class="ttname"><a href="classarmnn_1_1_i_backend_internal.xhtml#a878b8f50d8a2f92ed624803e9f6968ae">armnn::IBackendInternal::GetApiVersion</a></div><div class="ttdeci">static constexpr BackendVersion GetApiVersion()</div><div class="ttdoc">Returns the version of the Backend API. </div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00149">IBackendInternal.hpp:149</a></div></div> |
| 603 | <div class="ttc" id="namespacearmnn_xhtml_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00018">BackendRegistry.hpp:18</a></div></div> |
| 604 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 605 | </div><!-- fragment --> |
| 606 | </div> |
| 607 | </div> |
| 608 | <a id="ab9633d2df7bd3d53a0d6e4d763ec8baf"></a> |
| 609 | <h2 class="memtitle"><span class="permalink"><a href="#ab9633d2df7bd3d53a0d6e4d763ec8baf">◆ </a></span>GetBackendPathsOverrideTestImpl()</h2> |
| 610 | |
| 611 | <div class="memitem"> |
| 612 | <div class="memproto"> |
| 613 | <table class="memname"> |
| 614 | <tr> |
| 615 | <td class="memname">void GetBackendPathsOverrideTestImpl </td> |
| 616 | <td>(</td> |
| 617 | <td class="paramname"></td><td>)</td> |
| 618 | <td></td> |
| 619 | </tr> |
| 620 | </table> |
| 621 | </div><div class="memdoc"> |
| 622 | |
| 623 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00638">638</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 624 | |
| 625 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 626 | <div class="fragment"><div class="line"><a name="l00639"></a><span class="lineno"> 639</span> {</div><div class="line"><a name="l00640"></a><span class="lineno"> 640</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00641"></a><span class="lineno"> 641</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00642"></a><span class="lineno"> 642</span> </div><div class="line"><a name="l00643"></a><span class="lineno"> 643</span>  std::string subDir1 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir1);</div><div class="line"><a name="l00644"></a><span class="lineno"> 644</span>  std::string subDir4 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir4);</div><div class="line"><a name="l00645"></a><span class="lineno"> 645</span> </div><div class="line"><a name="l00646"></a><span class="lineno"> 646</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(subDir1));</div><div class="line"><a name="l00647"></a><span class="lineno"> 647</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!exists(subDir4));</div><div class="line"><a name="l00648"></a><span class="lineno"> 648</span> </div><div class="line"><a name="l00649"></a><span class="lineno"> 649</span>  <span class="comment">// Override with valid path</span></div><div class="line"><a name="l00650"></a><span class="lineno"> 650</span>  std::vector<std::string> validResult = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6d47980f97dd4d3aab24d818f8474dce">DynamicBackendUtils::GetBackendPaths</a>(subDir1);</div><div class="line"><a name="l00651"></a><span class="lineno"> 651</span>  BOOST_TEST(validResult.size() == 1);</div><div class="line"><a name="l00652"></a><span class="lineno"> 652</span>  BOOST_TEST(validResult[0] == subDir1);</div><div class="line"><a name="l00653"></a><span class="lineno"> 653</span> </div><div class="line"><a name="l00654"></a><span class="lineno"> 654</span>  <span class="comment">// Override with invalid path</span></div><div class="line"><a name="l00655"></a><span class="lineno"> 655</span>  std::vector<std::string> invalidResult = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6d47980f97dd4d3aab24d818f8474dce">DynamicBackendUtils::GetBackendPaths</a>(subDir4);</div><div class="line"><a name="l00656"></a><span class="lineno"> 656</span>  BOOST_TEST(invalidResult.empty());</div><div class="line"><a name="l00657"></a><span class="lineno"> 657</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 627 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 628 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 629 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a6d47980f97dd4d3aab24d818f8474dce"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6d47980f97dd4d3aab24d818f8474dce">armnn::DynamicBackendUtils::GetBackendPaths</a></div><div class="ttdeci">static std::vector< std::string > GetBackendPaths(const std::string &overrideBackendPath="")</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00080">DynamicBackendUtils.cpp:80</a></div></div> |
| 630 | </div><!-- fragment --> |
| 631 | </div> |
| 632 | </div> |
| 633 | <a id="a48a0ac943ae30935f6d32625bee457f8"></a> |
| 634 | <h2 class="memtitle"><span class="permalink"><a href="#a48a0ac943ae30935f6d32625bee457f8">◆ </a></span>GetBackendPathsTestImpl()</h2> |
| 635 | |
| 636 | <div class="memitem"> |
| 637 | <div class="memproto"> |
| 638 | <table class="memname"> |
| 639 | <tr> |
| 640 | <td class="memname">void GetBackendPathsTestImpl </td> |
| 641 | <td>(</td> |
| 642 | <td class="paramname"></td><td>)</td> |
| 643 | <td></td> |
| 644 | </tr> |
| 645 | </table> |
| 646 | </div><div class="memdoc"> |
| 647 | |
| 648 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00558">558</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 649 | |
| 650 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 651 | <div class="fragment"><div class="line"><a name="l00559"></a><span class="lineno"> 559</span> {</div><div class="line"><a name="l00560"></a><span class="lineno"> 560</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00561"></a><span class="lineno"> 561</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00562"></a><span class="lineno"> 562</span> </div><div class="line"><a name="l00563"></a><span class="lineno"> 563</span>  <span class="comment">// The test covers four directories:</span></div><div class="line"><a name="l00564"></a><span class="lineno"> 564</span>  <span class="comment">// <unit test path>/src/backends/backendsCommon/test/</span></div><div class="line"><a name="l00565"></a><span class="lineno"> 565</span>  <span class="comment">// ├─ backendsTestPath1/ -> exists, contains files</span></div><div class="line"><a name="l00566"></a><span class="lineno"> 566</span>  <span class="comment">// ├─ backendsTestPath2/ -> exists, contains files</span></div><div class="line"><a name="l00567"></a><span class="lineno"> 567</span>  <span class="comment">// ├─ backendsTestPath3/ -> exists, but empty</span></div><div class="line"><a name="l00568"></a><span class="lineno"> 568</span>  <span class="comment">// └─ backendsTestPath4/ -> does not exist</span></div><div class="line"><a name="l00569"></a><span class="lineno"> 569</span> </div><div class="line"><a name="l00570"></a><span class="lineno"> 570</span>  std::string subDir1 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir1);</div><div class="line"><a name="l00571"></a><span class="lineno"> 571</span>  std::string subDir2 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir2);</div><div class="line"><a name="l00572"></a><span class="lineno"> 572</span>  std::string subDir3 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir3);</div><div class="line"><a name="l00573"></a><span class="lineno"> 573</span>  std::string subDir4 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir4);</div><div class="line"><a name="l00574"></a><span class="lineno"> 574</span> </div><div class="line"><a name="l00575"></a><span class="lineno"> 575</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(subDir1));</div><div class="line"><a name="l00576"></a><span class="lineno"> 576</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(subDir2));</div><div class="line"><a name="l00577"></a><span class="lineno"> 577</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(subDir3));</div><div class="line"><a name="l00578"></a><span class="lineno"> 578</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!exists(subDir4));</div><div class="line"><a name="l00579"></a><span class="lineno"> 579</span> </div><div class="line"><a name="l00580"></a><span class="lineno"> 580</span>  <span class="comment">// No path</span></div><div class="line"><a name="l00581"></a><span class="lineno"> 581</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(<span class="stringliteral">""</span>).empty());</div><div class="line"><a name="l00582"></a><span class="lineno"> 582</span> </div><div class="line"><a name="l00583"></a><span class="lineno"> 583</span>  <span class="comment">// Malformed path</span></div><div class="line"><a name="l00584"></a><span class="lineno"> 584</span>  std::string malformedDir(subDir1 + <span class="stringliteral">"/"</span> + subDir1);</div><div class="line"><a name="l00585"></a><span class="lineno"> 585</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(malformedDir).size()==0);</div><div class="line"><a name="l00586"></a><span class="lineno"> 586</span> </div><div class="line"><a name="l00587"></a><span class="lineno"> 587</span>  <span class="comment">// Single valid path</span></div><div class="line"><a name="l00588"></a><span class="lineno"> 588</span>  std::vector<std::string> DynamicBackendPaths2 = <a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(subDir1);</div><div class="line"><a name="l00589"></a><span class="lineno"> 589</span>  BOOST_TEST(DynamicBackendPaths2.size() == 1);</div><div class="line"><a name="l00590"></a><span class="lineno"> 590</span>  BOOST_TEST(DynamicBackendPaths2[0] == subDir1);</div><div class="line"><a name="l00591"></a><span class="lineno"> 591</span> </div><div class="line"><a name="l00592"></a><span class="lineno"> 592</span>  <span class="comment">// Multiple equal and valid paths</span></div><div class="line"><a name="l00593"></a><span class="lineno"> 593</span>  std::string multipleEqualDirs(subDir1 + <span class="stringliteral">":"</span> + subDir1);</div><div class="line"><a name="l00594"></a><span class="lineno"> 594</span>  std::vector<std::string> DynamicBackendPaths3 = <a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(multipleEqualDirs);</div><div class="line"><a name="l00595"></a><span class="lineno"> 595</span>  BOOST_TEST(DynamicBackendPaths3.size() == 1);</div><div class="line"><a name="l00596"></a><span class="lineno"> 596</span>  BOOST_TEST(DynamicBackendPaths3[0] == subDir1);</div><div class="line"><a name="l00597"></a><span class="lineno"> 597</span> </div><div class="line"><a name="l00598"></a><span class="lineno"> 598</span>  <span class="comment">// Multiple empty paths</span></div><div class="line"><a name="l00599"></a><span class="lineno"> 599</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(<span class="stringliteral">":::"</span>).empty());</div><div class="line"><a name="l00600"></a><span class="lineno"> 600</span> </div><div class="line"><a name="l00601"></a><span class="lineno"> 601</span>  <span class="comment">// Multiple valid paths</span></div><div class="line"><a name="l00602"></a><span class="lineno"> 602</span>  std::string multipleValidPaths(subDir1 + <span class="stringliteral">":"</span> + subDir2 + <span class="stringliteral">":"</span> + subDir3);</div><div class="line"><a name="l00603"></a><span class="lineno"> 603</span>  std::vector<std::string> DynamicBackendPaths5 =</div><div class="line"><a name="l00604"></a><span class="lineno"> 604</span>  <a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(multipleValidPaths);</div><div class="line"><a name="l00605"></a><span class="lineno"> 605</span>  BOOST_TEST(DynamicBackendPaths5.size() == 3);</div><div class="line"><a name="l00606"></a><span class="lineno"> 606</span>  BOOST_TEST(DynamicBackendPaths5[0] == subDir1);</div><div class="line"><a name="l00607"></a><span class="lineno"> 607</span>  BOOST_TEST(DynamicBackendPaths5[1] == subDir2);</div><div class="line"><a name="l00608"></a><span class="lineno"> 608</span>  BOOST_TEST(DynamicBackendPaths5[2] == subDir3);</div><div class="line"><a name="l00609"></a><span class="lineno"> 609</span> </div><div class="line"><a name="l00610"></a><span class="lineno"> 610</span>  <span class="comment">// Valid among empty paths</span></div><div class="line"><a name="l00611"></a><span class="lineno"> 611</span>  std::string validAmongEmptyDirs(<span class="stringliteral">"::"</span> + subDir1 + <span class="stringliteral">":"</span>);</div><div class="line"><a name="l00612"></a><span class="lineno"> 612</span>  std::vector<std::string> DynamicBackendPaths6 =</div><div class="line"><a name="l00613"></a><span class="lineno"> 613</span>  <a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(validAmongEmptyDirs);</div><div class="line"><a name="l00614"></a><span class="lineno"> 614</span>  BOOST_TEST(DynamicBackendPaths6.size() == 1);</div><div class="line"><a name="l00615"></a><span class="lineno"> 615</span>  BOOST_TEST(DynamicBackendPaths6[0] == subDir1);</div><div class="line"><a name="l00616"></a><span class="lineno"> 616</span> </div><div class="line"><a name="l00617"></a><span class="lineno"> 617</span>  <span class="comment">// Invalid among empty paths</span></div><div class="line"><a name="l00618"></a><span class="lineno"> 618</span>  std::string invalidAmongEmptyDirs(<span class="stringliteral">":"</span> + subDir4 + <span class="stringliteral">"::"</span>);</div><div class="line"><a name="l00619"></a><span class="lineno"> 619</span>  BOOST_TEST(<a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(invalidAmongEmptyDirs).empty());</div><div class="line"><a name="l00620"></a><span class="lineno"> 620</span> </div><div class="line"><a name="l00621"></a><span class="lineno"> 621</span>  <span class="comment">// Valid, invalid and empty paths</span></div><div class="line"><a name="l00622"></a><span class="lineno"> 622</span>  std::string validInvalidEmptyDirs(subDir1 + <span class="stringliteral">":"</span> + subDir4 + <span class="stringliteral">":"</span>);</div><div class="line"><a name="l00623"></a><span class="lineno"> 623</span>  std::vector<std::string> DynamicBackendPaths8 =</div><div class="line"><a name="l00624"></a><span class="lineno"> 624</span>  <a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(validInvalidEmptyDirs);</div><div class="line"><a name="l00625"></a><span class="lineno"> 625</span>  BOOST_TEST(DynamicBackendPaths8.size() == 1);</div><div class="line"><a name="l00626"></a><span class="lineno"> 626</span>  BOOST_TEST(DynamicBackendPaths8[0] == subDir1);</div><div class="line"><a name="l00627"></a><span class="lineno"> 627</span> </div><div class="line"><a name="l00628"></a><span class="lineno"> 628</span>  <span class="comment">// Mix of duplicates of valid, invalid and empty paths</span></div><div class="line"><a name="l00629"></a><span class="lineno"> 629</span>  std::string duplicateValidInvalidEmptyDirs(validInvalidEmptyDirs + <span class="stringliteral">":"</span> + validInvalidEmptyDirs + <span class="stringliteral">":"</span> +</div><div class="line"><a name="l00630"></a><span class="lineno"> 630</span>  subDir2 + <span class="stringliteral">":"</span> + subDir2);</div><div class="line"><a name="l00631"></a><span class="lineno"> 631</span>  std::vector<std::string> DynamicBackendPaths9 =</div><div class="line"><a name="l00632"></a><span class="lineno"> 632</span>  <a class="code" href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a>(duplicateValidInvalidEmptyDirs);</div><div class="line"><a name="l00633"></a><span class="lineno"> 633</span>  BOOST_TEST(DynamicBackendPaths9.size() == 2);</div><div class="line"><a name="l00634"></a><span class="lineno"> 634</span>  BOOST_TEST(DynamicBackendPaths9[0] == subDir1);</div><div class="line"><a name="l00635"></a><span class="lineno"> 635</span>  BOOST_TEST(DynamicBackendPaths9[1] == subDir2);</div><div class="line"><a name="l00636"></a><span class="lineno"> 636</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 652 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 653 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 654 | <div class="ttc" id="class_test_dynamic_backend_utils_xhtml_ae905a2c700ca7d4b71fd64fe01e5580d"><div class="ttname"><a href="class_test_dynamic_backend_utils.xhtml#ae905a2c700ca7d4b71fd64fe01e5580d">TestDynamicBackendUtils::GetBackendPathsImplTest</a></div><div class="ttdeci">static std::vector< std::string > GetBackendPathsImplTest(const std::string &path)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00077">DynamicBackendTests.hpp:77</a></div></div> |
| 655 | </div><!-- fragment --> |
| 656 | </div> |
| 657 | </div> |
| 658 | <a id="a1ccc02805f5cdcbc45c6c548b5e4c29a"></a> |
| 659 | <h2 class="memtitle"><span class="permalink"><a href="#a1ccc02805f5cdcbc45c6c548b5e4c29a">◆ </a></span>GetBasePath()</h2> |
| 660 | |
| 661 | <div class="memitem"> |
| 662 | <div class="memproto"> |
| 663 | <table class="memname"> |
| 664 | <tr> |
| 665 | <td class="memname">std::string GetBasePath </td> |
| 666 | <td>(</td> |
| 667 | <td class="paramtype">const std::string & </td> |
| 668 | <td class="paramname"><em>basePath</em></td><td>)</td> |
| 669 | <td></td> |
| 670 | </tr> |
| 671 | </table> |
| 672 | </div><div class="memdoc"> |
| 673 | |
| 674 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00108">108</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 675 | |
| 676 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>.</p> |
| 677 | |
| 678 | <p class="reference">Referenced by <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00124">GetDynamicBackendsBasePath()</a>, and <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00119">GetTestDirectoryBasePath()</a>.</p> |
| 679 | <div class="fragment"><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> {</div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> </div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  path programLocation = boost::dll::program_location().parent_path();</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  path sharedObjectPath = programLocation.append(basePath);</div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(sharedObjectPath));</div><div class="line"><a name="l00115"></a><span class="lineno"> 115</span> </div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> sharedObjectPath.string();</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span> }</div><div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 680 | </div><!-- fragment --> |
| 681 | </div> |
| 682 | </div> |
| 683 | <a id="a232b6171adb0f163b616059ba9ddab07"></a> |
| 684 | <h2 class="memtitle"><span class="permalink"><a href="#a232b6171adb0f163b616059ba9ddab07">◆ </a></span>GetDynamicBackendsBasePath()</h2> |
| 685 | |
| 686 | <div class="memitem"> |
| 687 | <div class="memproto"> |
| 688 | <table class="memname"> |
| 689 | <tr> |
| 690 | <td class="memname">std::string GetDynamicBackendsBasePath </td> |
| 691 | <td>(</td> |
| 692 | <td class="paramname"></td><td>)</td> |
| 693 | <td></td> |
| 694 | </tr> |
| 695 | </table> |
| 696 | </div><div class="memdoc"> |
| 697 | |
| 698 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00124">124</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 699 | |
| 700 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00108">GetBasePath()</a>.</p> |
| 701 | |
| 702 | <p class="reference">Referenced by <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01331">RuntimeInvalidOverridePathTestImpl()</a>.</p> |
| 703 | <div class="fragment"><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> {</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  <span class="keywordflow">return</span> <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#a1ccc02805f5cdcbc45c6c548b5e4c29a">GetBasePath</a>(g_DynamicBackendsBaseDir);</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_a1ccc02805f5cdcbc45c6c548b5e4c29a"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#a1ccc02805f5cdcbc45c6c548b5e4c29a">GetBasePath</a></div><div class="ttdeci">std::string GetBasePath(const std::string &basePath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00108">DynamicBackendTests.hpp:108</a></div></div> |
| 704 | </div><!-- fragment --> |
| 705 | </div> |
| 706 | </div> |
| 707 | <a id="a7d05c0a2fbb1faaeb5d98aa10bfa5cbf"></a> |
| 708 | <h2 class="memtitle"><span class="permalink"><a href="#a7d05c0a2fbb1faaeb5d98aa10bfa5cbf">◆ </a></span>GetNameMangledEntryPointTestImpl()</h2> |
| 709 | |
| 710 | <div class="memitem"> |
| 711 | <div class="memproto"> |
| 712 | <table class="memname"> |
| 713 | <tr> |
| 714 | <td class="memname">void GetNameMangledEntryPointTestImpl </td> |
| 715 | <td>(</td> |
| 716 | <td class="paramname"></td><td>)</td> |
| 717 | <td></td> |
| 718 | </tr> |
| 719 | </table> |
| 720 | </div><div class="memdoc"> |
| 721 | |
| 722 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00236">236</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 723 | |
| 724 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 725 | <div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno"> 237</span> {</div><div class="line"><a name="l00238"></a><span class="lineno"> 238</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00239"></a><span class="lineno"> 239</span> </div><div class="line"><a name="l00240"></a><span class="lineno"> 240</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestSharedObjectSubDir);</div><div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestSharedObjectFileName);</div><div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div><div class="line"><a name="l00243"></a><span class="lineno"> 243</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00244"></a><span class="lineno"> 244</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00245"></a><span class="lineno"> 245</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00246"></a><span class="lineno"> 246</span> </div><div class="line"><a name="l00247"></a><span class="lineno"> 247</span>  <span class="keyword">using</span> TestFunctionType = int(*)(int);</div><div class="line"><a name="l00248"></a><span class="lineno"> 248</span>  TestFunctionType testFunctionPointer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00249"></a><span class="lineno"> 249</span>  BOOST_CHECK_THROW(testFunctionPointer = DynamicBackendUtils::GetEntryPoint<TestFunctionType>(sharedObjectHandle,</div><div class="line"><a name="l00250"></a><span class="lineno"> 250</span>  <span class="stringliteral">"TestFunction2"</span>),</div><div class="line"><a name="l00251"></a><span class="lineno"> 251</span>  <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00252"></a><span class="lineno"> 252</span>  BOOST_TEST((testFunctionPointer == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00253"></a><span class="lineno"> 253</span> </div><div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">DynamicBackendUtils::CloseHandle</a>(sharedObjectHandle);</div><div class="line"><a name="l00255"></a><span class="lineno"> 255</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 726 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 727 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 728 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 729 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 730 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aebd30d283660a07b4123fdb0245e8426"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">armnn::DynamicBackendUtils::CloseHandle</a></div><div class="ttdeci">static void CloseHandle(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00037">DynamicBackendUtils.cpp:37</a></div></div> |
| 731 | </div><!-- fragment --> |
| 732 | </div> |
| 733 | </div> |
| 734 | <a id="a2ea23607d9c0b55b90744e9e5f74e7f2"></a> |
| 735 | <h2 class="memtitle"><span class="permalink"><a href="#a2ea23607d9c0b55b90744e9e5f74e7f2">◆ </a></span>GetNoExternEntryPointTestImpl()</h2> |
| 736 | |
| 737 | <div class="memitem"> |
| 738 | <div class="memproto"> |
| 739 | <table class="memname"> |
| 740 | <tr> |
| 741 | <td class="memname">void GetNoExternEntryPointTestImpl </td> |
| 742 | <td>(</td> |
| 743 | <td class="paramname"></td><td>)</td> |
| 744 | <td></td> |
| 745 | </tr> |
| 746 | </table> |
| 747 | </div><div class="memdoc"> |
| 748 | |
| 749 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00257">257</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 750 | |
| 751 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 752 | <div class="fragment"><div class="line"><a name="l00258"></a><span class="lineno"> 258</span> {</div><div class="line"><a name="l00259"></a><span class="lineno"> 259</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00260"></a><span class="lineno"> 260</span> </div><div class="line"><a name="l00261"></a><span class="lineno"> 261</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestSharedObjectSubDir);</div><div class="line"><a name="l00262"></a><span class="lineno"> 262</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestSharedObjectFileName);</div><div class="line"><a name="l00263"></a><span class="lineno"> 263</span> </div><div class="line"><a name="l00264"></a><span class="lineno"> 264</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00265"></a><span class="lineno"> 265</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00266"></a><span class="lineno"> 266</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00267"></a><span class="lineno"> 267</span> </div><div class="line"><a name="l00268"></a><span class="lineno"> 268</span>  <span class="keyword">using</span> TestFunctionType = int(*)(int);</div><div class="line"><a name="l00269"></a><span class="lineno"> 269</span>  TestFunctionType testFunctionPointer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  BOOST_CHECK_THROW(testFunctionPointer = DynamicBackendUtils::GetEntryPoint<TestFunctionType>(sharedObjectHandle,</div><div class="line"><a name="l00271"></a><span class="lineno"> 271</span>  <span class="stringliteral">"TestFunction3"</span>),</div><div class="line"><a name="l00272"></a><span class="lineno"> 272</span>  <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00273"></a><span class="lineno"> 273</span>  BOOST_TEST((testFunctionPointer == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00274"></a><span class="lineno"> 274</span> </div><div class="line"><a name="l00275"></a><span class="lineno"> 275</span>  <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">DynamicBackendUtils::CloseHandle</a>(sharedObjectHandle);</div><div class="line"><a name="l00276"></a><span class="lineno"> 276</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 753 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 754 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 755 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 756 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 757 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aebd30d283660a07b4123fdb0245e8426"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">armnn::DynamicBackendUtils::CloseHandle</a></div><div class="ttdeci">static void CloseHandle(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00037">DynamicBackendUtils.cpp:37</a></div></div> |
| 758 | </div><!-- fragment --> |
| 759 | </div> |
| 760 | </div> |
| 761 | <a id="ad4a311ecf0fe6057c01ed11b2df4ed15"></a> |
| 762 | <h2 class="memtitle"><span class="permalink"><a href="#ad4a311ecf0fe6057c01ed11b2df4ed15">◆ </a></span>GetNotExistingEntryPointTestImpl()</h2> |
| 763 | |
| 764 | <div class="memitem"> |
| 765 | <div class="memproto"> |
| 766 | <table class="memname"> |
| 767 | <tr> |
| 768 | <td class="memname">void GetNotExistingEntryPointTestImpl </td> |
| 769 | <td>(</td> |
| 770 | <td class="paramname"></td><td>)</td> |
| 771 | <td></td> |
| 772 | </tr> |
| 773 | </table> |
| 774 | </div><div class="memdoc"> |
| 775 | |
| 776 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00278">278</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 777 | |
| 778 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 779 | <div class="fragment"><div class="line"><a name="l00279"></a><span class="lineno"> 279</span> {</div><div class="line"><a name="l00280"></a><span class="lineno"> 280</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00281"></a><span class="lineno"> 281</span> </div><div class="line"><a name="l00282"></a><span class="lineno"> 282</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestSharedObjectSubDir);</div><div class="line"><a name="l00283"></a><span class="lineno"> 283</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestSharedObjectFileName);</div><div class="line"><a name="l00284"></a><span class="lineno"> 284</span> </div><div class="line"><a name="l00285"></a><span class="lineno"> 285</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00288"></a><span class="lineno"> 288</span> </div><div class="line"><a name="l00289"></a><span class="lineno"> 289</span>  <span class="keyword">using</span> TestFunctionType = int(*)(int);</div><div class="line"><a name="l00290"></a><span class="lineno"> 290</span>  TestFunctionType testFunctionPointer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00291"></a><span class="lineno"> 291</span>  BOOST_CHECK_THROW(testFunctionPointer = DynamicBackendUtils::GetEntryPoint<TestFunctionType>(sharedObjectHandle,</div><div class="line"><a name="l00292"></a><span class="lineno"> 292</span>  <span class="stringliteral">"TestFunction4"</span>),</div><div class="line"><a name="l00293"></a><span class="lineno"> 293</span>  <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00294"></a><span class="lineno"> 294</span>  BOOST_TEST((testFunctionPointer == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00295"></a><span class="lineno"> 295</span> </div><div class="line"><a name="l00296"></a><span class="lineno"> 296</span>  <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">DynamicBackendUtils::CloseHandle</a>(sharedObjectHandle);</div><div class="line"><a name="l00297"></a><span class="lineno"> 297</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 780 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 781 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 782 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 783 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 784 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aebd30d283660a07b4123fdb0245e8426"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">armnn::DynamicBackendUtils::CloseHandle</a></div><div class="ttdeci">static void CloseHandle(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00037">DynamicBackendUtils.cpp:37</a></div></div> |
| 785 | </div><!-- fragment --> |
| 786 | </div> |
| 787 | </div> |
| 788 | <a id="a736bd70a8662a4f3679054a2b2cfaa11"></a> |
| 789 | <h2 class="memtitle"><span class="permalink"><a href="#a736bd70a8662a4f3679054a2b2cfaa11">◆ </a></span>GetSharedObjectsTestImpl()</h2> |
| 790 | |
| 791 | <div class="memitem"> |
| 792 | <div class="memproto"> |
| 793 | <table class="memname"> |
| 794 | <tr> |
| 795 | <td class="memname">void GetSharedObjectsTestImpl </td> |
| 796 | <td>(</td> |
| 797 | <td class="paramname"></td><td>)</td> |
| 798 | <td></td> |
| 799 | </tr> |
| 800 | </table> |
| 801 | </div><div class="memdoc"> |
| 802 | |
| 803 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00659">659</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 804 | |
| 805 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 806 | <div class="fragment"><div class="line"><a name="l00660"></a><span class="lineno"> 660</span> {</div><div class="line"><a name="l00661"></a><span class="lineno"> 661</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00662"></a><span class="lineno"> 662</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00663"></a><span class="lineno"> 663</span> </div><div class="line"><a name="l00664"></a><span class="lineno"> 664</span>  <span class="comment">// The test covers four directories:</span></div><div class="line"><a name="l00665"></a><span class="lineno"> 665</span>  <span class="comment">// <unit test path>/src/backends/backendsCommon/test/</span></div><div class="line"><a name="l00666"></a><span class="lineno"> 666</span>  <span class="comment">// ├─ backendsTestPath1/ -> exists, contains files</span></div><div class="line"><a name="l00667"></a><span class="lineno"> 667</span>  <span class="comment">// ├─ backendsTestPath2/ -> exists, contains files</span></div><div class="line"><a name="l00668"></a><span class="lineno"> 668</span>  <span class="comment">// ├─ backendsTestPath3/ -> exists, but empty</span></div><div class="line"><a name="l00669"></a><span class="lineno"> 669</span>  <span class="comment">// └─ backendsTestPath4/ -> does not exist</span></div><div class="line"><a name="l00670"></a><span class="lineno"> 670</span>  <span class="comment">//</span></div><div class="line"><a name="l00671"></a><span class="lineno"> 671</span>  <span class="comment">// The test sub-directory backendsTestPath1/ contains the following test files:</span></div><div class="line"><a name="l00672"></a><span class="lineno"> 672</span>  <span class="comment">//</span></div><div class="line"><a name="l00673"></a><span class="lineno"> 673</span>  <span class="comment">// Arm_GpuAcc_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l00674"></a><span class="lineno"> 674</span>  <span class="comment">// Arm_GpuAcc_backend.so.1 -> valid (single field version number)</span></div><div class="line"><a name="l00675"></a><span class="lineno"> 675</span>  <span class="comment">// Arm_GpuAcc_backend.so.1.2 -> valid (multiple field version number)</span></div><div class="line"><a name="l00676"></a><span class="lineno"> 676</span>  <span class="comment">// Arm_GpuAcc_backend.so.1.2.3 -> valid (multiple field version number)</span></div><div class="line"><a name="l00677"></a><span class="lineno"> 677</span>  <span class="comment">// Arm_GpuAcc_backend.so.10.1.27 -> valid (Multiple digit version)</span></div><div class="line"><a name="l00678"></a><span class="lineno"> 678</span>  <span class="comment">// Arm_GpuAcc_backend.so.10.1.33. -> not valid (dot not followed by version number)</span></div><div class="line"><a name="l00679"></a><span class="lineno"> 679</span>  <span class="comment">// Arm_GpuAcc_backend.so.3.4..5 -> not valid (dot not followed by version number)</span></div><div class="line"><a name="l00680"></a><span class="lineno"> 680</span>  <span class="comment">// Arm_GpuAcc_backend.so.1,1.1 -> not valid (comma instead of dot in the version)</span></div><div class="line"><a name="l00681"></a><span class="lineno"> 681</span>  <span class="comment">//</span></div><div class="line"><a name="l00682"></a><span class="lineno"> 682</span>  <span class="comment">// Arm123_GpuAcc_backend.so -> valid (digits in vendor name are allowed)</span></div><div class="line"><a name="l00683"></a><span class="lineno"> 683</span>  <span class="comment">// Arm_GpuAcc456_backend.so -> valid (digits in backend id are allowed)</span></div><div class="line"><a name="l00684"></a><span class="lineno"> 684</span>  <span class="comment">// Arm%Co_GpuAcc_backend.so -> not valid (invalid character in vendor name)</span></div><div class="line"><a name="l00685"></a><span class="lineno"> 685</span>  <span class="comment">// Arm_Gpu.Acc_backend.so -> not valid (invalid character in backend id)</span></div><div class="line"><a name="l00686"></a><span class="lineno"> 686</span>  <span class="comment">//</span></div><div class="line"><a name="l00687"></a><span class="lineno"> 687</span>  <span class="comment">// GpuAcc_backend.so -> not valid (missing vendor name)</span></div><div class="line"><a name="l00688"></a><span class="lineno"> 688</span>  <span class="comment">// _GpuAcc_backend.so -> not valid (missing vendor name)</span></div><div class="line"><a name="l00689"></a><span class="lineno"> 689</span>  <span class="comment">// Arm__backend.so -> not valid (missing backend id)</span></div><div class="line"><a name="l00690"></a><span class="lineno"> 690</span>  <span class="comment">// Arm_GpuAcc.so -> not valid (missing "backend" at the end)</span></div><div class="line"><a name="l00691"></a><span class="lineno"> 691</span>  <span class="comment">// __backend.so -> not valid (missing vendor name and backend id)</span></div><div class="line"><a name="l00692"></a><span class="lineno"> 692</span>  <span class="comment">// __.so -> not valid (missing all fields)</span></div><div class="line"><a name="l00693"></a><span class="lineno"> 693</span>  <span class="comment">//</span></div><div class="line"><a name="l00694"></a><span class="lineno"> 694</span>  <span class="comment">// Arm_GpuAcc_backend -> not valid (missing at least ".so" at the end)</span></div><div class="line"><a name="l00695"></a><span class="lineno"> 695</span>  <span class="comment">// Arm_GpuAcc_backend_v1.2.so -> not valid (extra version info at the end)</span></div><div class="line"><a name="l00696"></a><span class="lineno"> 696</span>  <span class="comment">//</span></div><div class="line"><a name="l00697"></a><span class="lineno"> 697</span>  <span class="comment">// The test sub-directory backendsTestPath1/ contains the following test files:</span></div><div class="line"><a name="l00698"></a><span class="lineno"> 698</span>  <span class="comment">//</span></div><div class="line"><a name="l00699"></a><span class="lineno"> 699</span>  <span class="comment">// Arm_CpuAcc_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l00700"></a><span class="lineno"> 700</span>  <span class="comment">// Arm_CpuAcc_backend.so.1 -> Arm_CpuAcc_backend.so -> valid (symlink to valid backend file)</span></div><div class="line"><a name="l00701"></a><span class="lineno"> 701</span>  <span class="comment">// Arm_CpuAcc_backend.so.1.2 -> Arm_CpuAcc_backend.so.1 -> valid (symlink to valid symlink)</span></div><div class="line"><a name="l00702"></a><span class="lineno"> 702</span>  <span class="comment">// Arm_CpuAcc_backend.so.1.2.3 -> Arm_CpuAcc_backend.so.1.2 -> valid (symlink to valid symlink)</span></div><div class="line"><a name="l00703"></a><span class="lineno"> 703</span>  <span class="comment">//</span></div><div class="line"><a name="l00704"></a><span class="lineno"> 704</span>  <span class="comment">// Arm_no_backend.so -> nothing -> not valid (symlink resolves to non-existent file)</span></div><div class="line"><a name="l00705"></a><span class="lineno"> 705</span>  <span class="comment">//</span></div><div class="line"><a name="l00706"></a><span class="lineno"> 706</span>  <span class="comment">// Arm_GpuAcc_backend.so -> valid (but duplicated from backendsTestPath1/)</span></div><div class="line"><a name="l00707"></a><span class="lineno"> 707</span> </div><div class="line"><a name="l00708"></a><span class="lineno"> 708</span>  std::string testDynamicBackendsSubDir1 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir1);</div><div class="line"><a name="l00709"></a><span class="lineno"> 709</span>  std::string testDynamicBackendsSubDir2 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir2);</div><div class="line"><a name="l00710"></a><span class="lineno"> 710</span>  std::string testDynamicBackendsSubDir3 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir3);</div><div class="line"><a name="l00711"></a><span class="lineno"> 711</span>  std::string testDynamicBackendsSubDir4 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir4);</div><div class="line"><a name="l00712"></a><span class="lineno"> 712</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir1));</div><div class="line"><a name="l00713"></a><span class="lineno"> 713</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir2));</div><div class="line"><a name="l00714"></a><span class="lineno"> 714</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir3));</div><div class="line"><a name="l00715"></a><span class="lineno"> 715</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!exists(testDynamicBackendsSubDir4));</div><div class="line"><a name="l00716"></a><span class="lineno"> 716</span> </div><div class="line"><a name="l00717"></a><span class="lineno"> 717</span>  std::vector<std::string> backendPaths</div><div class="line"><a name="l00718"></a><span class="lineno"> 718</span>  {</div><div class="line"><a name="l00719"></a><span class="lineno"> 719</span>  testDynamicBackendsSubDir1,</div><div class="line"><a name="l00720"></a><span class="lineno"> 720</span>  testDynamicBackendsSubDir2,</div><div class="line"><a name="l00721"></a><span class="lineno"> 721</span>  testDynamicBackendsSubDir3,</div><div class="line"><a name="l00722"></a><span class="lineno"> 722</span>  testDynamicBackendsSubDir4</div><div class="line"><a name="l00723"></a><span class="lineno"> 723</span>  };</div><div class="line"><a name="l00724"></a><span class="lineno"> 724</span>  std::vector<std::string> sharedObjects = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a48e1fb944c3ef4086365aedcadb4c311">DynamicBackendUtils::GetSharedObjects</a>(backendPaths);</div><div class="line"><a name="l00725"></a><span class="lineno"> 725</span>  std::vector<std::string> expectedSharedObjects</div><div class="line"><a name="l00726"></a><span class="lineno"> 726</span>  {</div><div class="line"><a name="l00727"></a><span class="lineno"> 727</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm123_GpuAcc_backend.so"</span>, <span class="comment">// Digits in vendor name are allowed</span></div><div class="line"><a name="l00728"></a><span class="lineno"> 728</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm_GpuAcc456_backend.so"</span>, <span class="comment">// Digits in backend id are allowed</span></div><div class="line"><a name="l00729"></a><span class="lineno"> 729</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm_GpuAcc_backend.so"</span>, <span class="comment">// Basic backend name</span></div><div class="line"><a name="l00730"></a><span class="lineno"> 730</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm_GpuAcc_backend.so.1"</span>, <span class="comment">// Single field version number</span></div><div class="line"><a name="l00731"></a><span class="lineno"> 731</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm_GpuAcc_backend.so.1.2"</span>, <span class="comment">// Multiple field version number</span></div><div class="line"><a name="l00732"></a><span class="lineno"> 732</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm_GpuAcc_backend.so.1.2.3"</span>, <span class="comment">// Multiple field version number</span></div><div class="line"><a name="l00733"></a><span class="lineno"> 733</span>  testDynamicBackendsSubDir1 + <span class="stringliteral">"Arm_GpuAcc_backend.so.10.1.27"</span>, <span class="comment">// Multiple digit version</span></div><div class="line"><a name="l00734"></a><span class="lineno"> 734</span>  testDynamicBackendsSubDir2 + <span class="stringliteral">"Arm_CpuAcc_backend.so"</span>, <span class="comment">// Duplicate symlinks removed</span></div><div class="line"><a name="l00735"></a><span class="lineno"> 735</span>  testDynamicBackendsSubDir2 + <span class="stringliteral">"Arm_GpuAcc_backend.so"</span> <span class="comment">// Duplicates on different paths are allowed</span></div><div class="line"><a name="l00736"></a><span class="lineno"> 736</span>  };</div><div class="line"><a name="l00737"></a><span class="lineno"> 737</span> </div><div class="line"><a name="l00738"></a><span class="lineno"> 738</span>  BOOST_TEST(sharedObjects.size() == expectedSharedObjects.size());</div><div class="line"><a name="l00739"></a><span class="lineno"> 739</span>  BOOST_TEST(sharedObjects[0] == expectedSharedObjects[0]);</div><div class="line"><a name="l00740"></a><span class="lineno"> 740</span>  BOOST_TEST(sharedObjects[1] == expectedSharedObjects[1]);</div><div class="line"><a name="l00741"></a><span class="lineno"> 741</span>  BOOST_TEST(sharedObjects[2] == expectedSharedObjects[2]);</div><div class="line"><a name="l00742"></a><span class="lineno"> 742</span>  BOOST_TEST(sharedObjects[3] == expectedSharedObjects[3]);</div><div class="line"><a name="l00743"></a><span class="lineno"> 743</span>  BOOST_TEST(sharedObjects[4] == expectedSharedObjects[4]);</div><div class="line"><a name="l00744"></a><span class="lineno"> 744</span>  BOOST_TEST(sharedObjects[5] == expectedSharedObjects[5]);</div><div class="line"><a name="l00745"></a><span class="lineno"> 745</span>  BOOST_TEST(sharedObjects[6] == expectedSharedObjects[6]);</div><div class="line"><a name="l00746"></a><span class="lineno"> 746</span>  BOOST_TEST(sharedObjects[7] == expectedSharedObjects[7]);</div><div class="line"><a name="l00747"></a><span class="lineno"> 747</span>  BOOST_TEST(sharedObjects[8] == expectedSharedObjects[8]);</div><div class="line"><a name="l00748"></a><span class="lineno"> 748</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 807 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 808 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 809 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a48e1fb944c3ef4086365aedcadb4c311"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a48e1fb944c3ef4086365aedcadb4c311">armnn::DynamicBackendUtils::GetSharedObjects</a></div><div class="ttdeci">static std::vector< std::string > GetSharedObjects(const std::vector< std::string > &backendPaths)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00176">DynamicBackendUtils.cpp:176</a></div></div> |
| 810 | </div><!-- fragment --> |
| 811 | </div> |
| 812 | </div> |
| 813 | <a id="aaa09188eec988bf3318fbcff3d07dd97"></a> |
| 814 | <h2 class="memtitle"><span class="permalink"><a href="#aaa09188eec988bf3318fbcff3d07dd97">◆ </a></span>GetTestDirectoryBasePath()</h2> |
| 815 | |
| 816 | <div class="memitem"> |
| 817 | <div class="memproto"> |
| 818 | <table class="memname"> |
| 819 | <tr> |
| 820 | <td class="memname">std::string GetTestDirectoryBasePath </td> |
| 821 | <td>(</td> |
| 822 | <td class="paramname"></td><td>)</td> |
| 823 | <td></td> |
| 824 | </tr> |
| 825 | </table> |
| 826 | </div><div class="memdoc"> |
| 827 | |
| 828 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00119">119</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 829 | |
| 830 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00108">GetBasePath()</a>.</p> |
| 831 | |
| 832 | <p class="reference">Referenced by <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 833 | <div class="fragment"><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> {</div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span>  <span class="keywordflow">return</span> <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#a1ccc02805f5cdcbc45c6c548b5e4c29a">GetBasePath</a>(g_TestBaseDir);</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_a1ccc02805f5cdcbc45c6c548b5e4c29a"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#a1ccc02805f5cdcbc45c6c548b5e4c29a">GetBasePath</a></div><div class="ttdeci">std::string GetBasePath(const std::string &basePath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00108">DynamicBackendTests.hpp:108</a></div></div> |
| 834 | </div><!-- fragment --> |
| 835 | </div> |
| 836 | </div> |
| 837 | <a id="ad01ee94919c8ecfba3b9e4fe89ed6bbe"></a> |
| 838 | <h2 class="memtitle"><span class="permalink"><a href="#ad01ee94919c8ecfba3b9e4fe89ed6bbe">◆ </a></span>GetTestFilePath()</h2> |
| 839 | |
| 840 | <div class="memitem"> |
| 841 | <div class="memproto"> |
| 842 | <table class="memname"> |
| 843 | <tr> |
| 844 | <td class="memname">std::string GetTestFilePath </td> |
| 845 | <td>(</td> |
| 846 | <td class="paramtype">const std::string & </td> |
| 847 | <td class="paramname"><em>directory</em>, </td> |
| 848 | </tr> |
| 849 | <tr> |
| 850 | <td class="paramkey"></td> |
| 851 | <td></td> |
| 852 | <td class="paramtype">const std::string & </td> |
| 853 | <td class="paramname"><em>fileName</em> </td> |
| 854 | </tr> |
| 855 | <tr> |
| 856 | <td></td> |
| 857 | <td>)</td> |
| 858 | <td></td><td></td> |
| 859 | </tr> |
| 860 | </table> |
| 861 | </div><div class="memdoc"> |
| 862 | |
| 863 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">152</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 864 | |
| 865 | <p class="reference">References <a class="el" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK()</a>.</p> |
| 866 | <div class="fragment"><div class="line"><a name="l00153"></a><span class="lineno"> 153</span> {</div><div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  path directoryPath(directory);</div><div class="line"><a name="l00157"></a><span class="lineno"> 157</span>  path fileNamePath = directoryPath.append(fileName);</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(fileNamePath));</div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> </div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span>  <span class="keywordflow">return</span> fileNamePath.string();</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> }</div><div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 867 | </div><!-- fragment --> |
| 868 | </div> |
| 869 | </div> |
| 870 | <a id="aa21b882f38be6940c5c0515db9b69508"></a> |
| 871 | <h2 class="memtitle"><span class="permalink"><a href="#aa21b882f38be6940c5c0515db9b69508">◆ </a></span>GetTestSubDirectory() <span class="overload">[1/2]</span></h2> |
| 872 | |
| 873 | <div class="memitem"> |
| 874 | <div class="memproto"> |
| 875 | <table class="memname"> |
| 876 | <tr> |
| 877 | <td class="memname">std::string GetTestSubDirectory </td> |
| 878 | <td>(</td> |
| 879 | <td class="paramtype">const std::string & </td> |
| 880 | <td class="paramname"><em>subdir</em></td><td>)</td> |
| 881 | <td></td> |
| 882 | </tr> |
| 883 | </table> |
| 884 | </div><div class="memdoc"> |
| 885 | |
| 886 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">129</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 887 | |
| 888 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00119">GetTestDirectoryBasePath()</a>.</p> |
| 889 | |
| 890 | <p class="reference">Referenced by <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00396">CreateDynamicBackendObjectInvalidInterface1TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00415">CreateDynamicBackendObjectInvalidInterface2TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00435">CreateDynamicBackendObjectInvalidInterface3TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00455">CreateDynamicBackendObjectInvalidInterface4TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00475">CreateDynamicBackendObjectInvalidInterface5TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00496">CreateDynamicBackendObjectInvalidInterface6TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00537">CreateDynamicBackendObjectInvalidInterface7TestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00837">CreateDynamicBackendsMixedTypesTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00750">CreateDynamicBackendsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00340">CreateValidDynamicBackendObjectTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00638">GetBackendPathsOverrideTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00558">GetBackendPathsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00236">GetNameMangledEntryPointTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00257">GetNoExternEntryPointTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00278">GetNotExistingEntryPointTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00659">GetSharedObjectsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00215">GetValidEntryPointTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00163">OpenCloseHandleTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00203">OpenNotSharedObjectTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01054">RegisterMixedDynamicBackendsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00918">RegisterMultipleDynamicBackendsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00994">RegisterMultipleInvalidDynamicBackendsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00871">RegisterSingleDynamicBackendTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01265">RuntimeDuplicateDynamicBackendsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01224">RuntimeDynamicBackendsTestImpl()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01306">RuntimeInvalidDynamicBackendsTestImpl()</a>, and <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01331">RuntimeInvalidOverridePathTestImpl()</a>.</p> |
| 891 | <div class="fragment"><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> {</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span> </div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  std::string testDynamicBackendsBaseDir = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aaa09188eec988bf3318fbcff3d07dd97">GetTestDirectoryBasePath</a>();</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  path testDynamicBackendsBasePath(testDynamicBackendsBaseDir);</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  path testDynamicBackendsSubDir = testDynamicBackendsBasePath.append(subdir);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  <span class="comment">// Do not check that the sub-directory exists because for testing reasons we may use non-existing paths</span></div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span> </div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  <span class="keywordflow">return</span> testDynamicBackendsSubDir.string();</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aaa09188eec988bf3318fbcff3d07dd97"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aaa09188eec988bf3318fbcff3d07dd97">GetTestDirectoryBasePath</a></div><div class="ttdeci">std::string GetTestDirectoryBasePath()</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00119">DynamicBackendTests.hpp:119</a></div></div> |
| 892 | </div><!-- fragment --> |
| 893 | </div> |
| 894 | </div> |
| 895 | <a id="a1851a4032b9e6fa980ecaf990960c9b1"></a> |
| 896 | <h2 class="memtitle"><span class="permalink"><a href="#a1851a4032b9e6fa980ecaf990960c9b1">◆ </a></span>GetTestSubDirectory() <span class="overload">[2/2]</span></h2> |
| 897 | |
| 898 | <div class="memitem"> |
| 899 | <div class="memproto"> |
| 900 | <table class="memname"> |
| 901 | <tr> |
| 902 | <td class="memname">std::string GetTestSubDirectory </td> |
| 903 | <td>(</td> |
| 904 | <td class="paramtype">const std::string & </td> |
| 905 | <td class="paramname"><em>basePath</em>, </td> |
| 906 | </tr> |
| 907 | <tr> |
| 908 | <td class="paramkey"></td> |
| 909 | <td></td> |
| 910 | <td class="paramtype">const std::string & </td> |
| 911 | <td class="paramname"><em>subdir</em> </td> |
| 912 | </tr> |
| 913 | <tr> |
| 914 | <td></td> |
| 915 | <td>)</td> |
| 916 | <td></td><td></td> |
| 917 | </tr> |
| 918 | </table> |
| 919 | </div><div class="memdoc"> |
| 920 | |
| 921 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00141">141</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 922 | <div class="fragment"><div class="line"><a name="l00142"></a><span class="lineno"> 142</span> {</div><div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div><div class="line"><a name="l00145"></a><span class="lineno"> 145</span>  path testDynamicBackendsBasePath(basePath);</div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  path testDynamicBackendsSubDir = testDynamicBackendsBasePath.append(subdir);</div><div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  <span class="comment">// Do not check that the sub-directory exists because for testing reasons we may use non-existing paths</span></div><div class="line"><a name="l00148"></a><span class="lineno"> 148</span> </div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  <span class="keywordflow">return</span> testDynamicBackendsSubDir.string();</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> }</div></div><!-- fragment --> |
| 923 | </div> |
| 924 | </div> |
| 925 | <a id="a2384b592a8946dc96a1ea116d86993bf"></a> |
| 926 | <h2 class="memtitle"><span class="permalink"><a href="#a2384b592a8946dc96a1ea116d86993bf">◆ </a></span>GetValidEntryPointTestImpl()</h2> |
| 927 | |
| 928 | <div class="memitem"> |
| 929 | <div class="memproto"> |
| 930 | <table class="memname"> |
| 931 | <tr> |
| 932 | <td class="memname">void GetValidEntryPointTestImpl </td> |
| 933 | <td>(</td> |
| 934 | <td class="paramname"></td><td>)</td> |
| 935 | <td></td> |
| 936 | </tr> |
| 937 | </table> |
| 938 | </div><div class="memdoc"> |
| 939 | |
| 940 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00215">215</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 941 | |
| 942 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 943 | <div class="fragment"><div class="line"><a name="l00216"></a><span class="lineno"> 216</span> {</div><div class="line"><a name="l00217"></a><span class="lineno"> 217</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00218"></a><span class="lineno"> 218</span> </div><div class="line"><a name="l00219"></a><span class="lineno"> 219</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestSharedObjectSubDir);</div><div class="line"><a name="l00220"></a><span class="lineno"> 220</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestSharedObjectFileName);</div><div class="line"><a name="l00221"></a><span class="lineno"> 221</span> </div><div class="line"><a name="l00222"></a><span class="lineno"> 222</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00223"></a><span class="lineno"> 223</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00224"></a><span class="lineno"> 224</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00225"></a><span class="lineno"> 225</span> </div><div class="line"><a name="l00226"></a><span class="lineno"> 226</span>  <span class="keyword">using</span> TestFunctionType = int(*)(int);</div><div class="line"><a name="l00227"></a><span class="lineno"> 227</span>  TestFunctionType testFunctionPointer = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  BOOST_CHECK_NO_THROW(testFunctionPointer = DynamicBackendUtils::GetEntryPoint<TestFunctionType>(sharedObjectHandle,</div><div class="line"><a name="l00229"></a><span class="lineno"> 229</span>  <span class="stringliteral">"TestFunction1"</span>));</div><div class="line"><a name="l00230"></a><span class="lineno"> 230</span>  BOOST_TEST((testFunctionPointer != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00231"></a><span class="lineno"> 231</span>  BOOST_TEST(testFunctionPointer(7) == 7);</div><div class="line"><a name="l00232"></a><span class="lineno"> 232</span> </div><div class="line"><a name="l00233"></a><span class="lineno"> 233</span>  <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">DynamicBackendUtils::CloseHandle</a>(sharedObjectHandle);</div><div class="line"><a name="l00234"></a><span class="lineno"> 234</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 944 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 945 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 946 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 947 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aebd30d283660a07b4123fdb0245e8426"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">armnn::DynamicBackendUtils::CloseHandle</a></div><div class="ttdeci">static void CloseHandle(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00037">DynamicBackendUtils.cpp:37</a></div></div> |
| 948 | </div><!-- fragment --> |
| 949 | </div> |
| 950 | </div> |
| 951 | <a id="a3c082270ab18262a66e97eb1d6922991"></a> |
| 952 | <h2 class="memtitle"><span class="permalink"><a href="#a3c082270ab18262a66e97eb1d6922991">◆ </a></span>OpenCloseHandleTestImpl()</h2> |
| 953 | |
| 954 | <div class="memitem"> |
| 955 | <div class="memproto"> |
| 956 | <table class="memname"> |
| 957 | <tr> |
| 958 | <td class="memname">void OpenCloseHandleTestImpl </td> |
| 959 | <td>(</td> |
| 960 | <td class="paramname"></td><td>)</td> |
| 961 | <td></td> |
| 962 | </tr> |
| 963 | </table> |
| 964 | </div><div class="memdoc"> |
| 965 | |
| 966 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00163">163</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 967 | |
| 968 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 969 | <div class="fragment"><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> {</div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00166"></a><span class="lineno"> 166</span> </div><div class="line"><a name="l00167"></a><span class="lineno"> 167</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestSharedObjectSubDir);</div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  std::string sharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestSharedObjectFileName);</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span> </div><div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  BOOST_CHECK_NO_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(sharedObjectFilePath));</div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  BOOST_TEST((sharedObjectHandle != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span> </div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span>  <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">DynamicBackendUtils::CloseHandle</a>(sharedObjectHandle);</div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 970 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 971 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 972 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 973 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aebd30d283660a07b4123fdb0245e8426"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aebd30d283660a07b4123fdb0245e8426">armnn::DynamicBackendUtils::CloseHandle</a></div><div class="ttdeci">static void CloseHandle(const void *sharedObjectHandle)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00037">DynamicBackendUtils.cpp:37</a></div></div> |
| 974 | </div><!-- fragment --> |
| 975 | </div> |
| 976 | </div> |
| 977 | <a id="a22f4f05aa4404afeca52237617335373"></a> |
| 978 | <h2 class="memtitle"><span class="permalink"><a href="#a22f4f05aa4404afeca52237617335373">◆ </a></span>OpenEmptyFileNameTestImpl()</h2> |
| 979 | |
| 980 | <div class="memitem"> |
| 981 | <div class="memproto"> |
| 982 | <table class="memname"> |
| 983 | <tr> |
| 984 | <td class="memname">void OpenEmptyFileNameTestImpl </td> |
| 985 | <td>(</td> |
| 986 | <td class="paramname"></td><td>)</td> |
| 987 | <td></td> |
| 988 | </tr> |
| 989 | </table> |
| 990 | </div><div class="memdoc"> |
| 991 | |
| 992 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00185">185</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 993 | <div class="fragment"><div class="line"><a name="l00186"></a><span class="lineno"> 186</span> {</div><div class="line"><a name="l00187"></a><span class="lineno"> 187</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00188"></a><span class="lineno"> 188</span> </div><div class="line"><a name="l00189"></a><span class="lineno"> 189</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00190"></a><span class="lineno"> 190</span>  BOOST_CHECK_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(<span class="stringliteral">""</span>), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00191"></a><span class="lineno"> 191</span>  BOOST_TEST((sharedObjectHandle == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00192"></a><span class="lineno"> 192</span> }</div><div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 994 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 995 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 996 | </div><!-- fragment --> |
| 997 | </div> |
| 998 | </div> |
| 999 | <a id="a9cf371447a3219bacc62c0f343c174c0"></a> |
| 1000 | <h2 class="memtitle"><span class="permalink"><a href="#a9cf371447a3219bacc62c0f343c174c0">◆ </a></span>OpenNotExistingFileTestImpl()</h2> |
| 1001 | |
| 1002 | <div class="memitem"> |
| 1003 | <div class="memproto"> |
| 1004 | <table class="memname"> |
| 1005 | <tr> |
| 1006 | <td class="memname">void OpenNotExistingFileTestImpl </td> |
| 1007 | <td>(</td> |
| 1008 | <td class="paramname"></td><td>)</td> |
| 1009 | <td></td> |
| 1010 | </tr> |
| 1011 | </table> |
| 1012 | </div><div class="memdoc"> |
| 1013 | |
| 1014 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00194">194</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1015 | <div class="fragment"><div class="line"><a name="l00195"></a><span class="lineno"> 195</span> {</div><div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div><div class="line"><a name="l00198"></a><span class="lineno"> 198</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00199"></a><span class="lineno"> 199</span>  BOOST_CHECK_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(<span class="stringliteral">"NotExistingFileName"</span>), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00200"></a><span class="lineno"> 200</span>  BOOST_TEST((sharedObjectHandle == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00201"></a><span class="lineno"> 201</span> }</div><div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 1016 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1017 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 1018 | </div><!-- fragment --> |
| 1019 | </div> |
| 1020 | </div> |
| 1021 | <a id="a6f750fea35638f0442885edb837b5d16"></a> |
| 1022 | <h2 class="memtitle"><span class="permalink"><a href="#a6f750fea35638f0442885edb837b5d16">◆ </a></span>OpenNotSharedObjectTestImpl()</h2> |
| 1023 | |
| 1024 | <div class="memitem"> |
| 1025 | <div class="memproto"> |
| 1026 | <table class="memname"> |
| 1027 | <tr> |
| 1028 | <td class="memname">void OpenNotSharedObjectTestImpl </td> |
| 1029 | <td>(</td> |
| 1030 | <td class="paramname"></td><td>)</td> |
| 1031 | <td></td> |
| 1032 | </tr> |
| 1033 | </table> |
| 1034 | </div><div class="memdoc"> |
| 1035 | |
| 1036 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00203">203</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1037 | |
| 1038 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1039 | <div class="fragment"><div class="line"><a name="l00204"></a><span class="lineno"> 204</span> {</div><div class="line"><a name="l00205"></a><span class="lineno"> 205</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00206"></a><span class="lineno"> 206</span> </div><div class="line"><a name="l00207"></a><span class="lineno"> 207</span>  std::string testSubDirectory = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestSharedObjectSubDir);</div><div class="line"><a name="l00208"></a><span class="lineno"> 208</span>  std::string notSharedObjectFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testSubDirectory, g_TestNoSharedObjectFileName);</div><div class="line"><a name="l00209"></a><span class="lineno"> 209</span> </div><div class="line"><a name="l00210"></a><span class="lineno"> 210</span>  <span class="keywordtype">void</span>* sharedObjectHandle = <span class="keyword">nullptr</span>;</div><div class="line"><a name="l00211"></a><span class="lineno"> 211</span>  BOOST_CHECK_THROW(sharedObjectHandle = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">DynamicBackendUtils::OpenHandle</a>(notSharedObjectFilePath), <a class="code" href="classarmnn_1_1_runtime_exception.xhtml">RuntimeException</a>);</div><div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  BOOST_TEST((sharedObjectHandle == <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00213"></a><span class="lineno"> 213</span> }</div><div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1040 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_aed6d54e3299851dea74d4175d28ddb87"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#aed6d54e3299851dea74d4175d28ddb87">armnn::DynamicBackendUtils::OpenHandle</a></div><div class="ttdeci">static void * OpenHandle(const std::string &sharedObjectPath)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00017">DynamicBackendUtils.cpp:17</a></div></div> |
| 1041 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 1042 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1043 | <div class="ttc" id="classarmnn_1_1_runtime_exception_xhtml"><div class="ttname"><a href="classarmnn_1_1_runtime_exception.xhtml">armnn::RuntimeException</a></div><div class="ttdef"><b>Definition:</b> <a href="_exceptions_8hpp_source.xhtml#l00120">Exceptions.hpp:120</a></div></div> |
| 1044 | </div><!-- fragment --> |
| 1045 | </div> |
| 1046 | </div> |
| 1047 | <a id="addebc7fb62de1f561bc08c8646431972"></a> |
| 1048 | <h2 class="memtitle"><span class="permalink"><a href="#addebc7fb62de1f561bc08c8646431972">◆ </a></span>RegisterMixedDynamicBackendsTestImpl()</h2> |
| 1049 | |
| 1050 | <div class="memitem"> |
| 1051 | <div class="memproto"> |
| 1052 | <table class="memname"> |
| 1053 | <tr> |
| 1054 | <td class="memname">void RegisterMixedDynamicBackendsTestImpl </td> |
| 1055 | <td>(</td> |
| 1056 | <td class="paramname"></td><td>)</td> |
| 1057 | <td></td> |
| 1058 | </tr> |
| 1059 | </table> |
| 1060 | </div><div class="memdoc"> |
| 1061 | |
| 1062 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01054">1054</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1063 | |
| 1064 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1065 | <div class="fragment"><div class="line"><a name="l01055"></a><span class="lineno"> 1055</span> {</div><div class="line"><a name="l01056"></a><span class="lineno"> 1056</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l01057"></a><span class="lineno"> 1057</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l01058"></a><span class="lineno"> 1058</span> </div><div class="line"><a name="l01059"></a><span class="lineno"> 1059</span>  <span class="comment">// The test covers five directories:</span></div><div class="line"><a name="l01060"></a><span class="lineno"> 1060</span>  <span class="comment">// <unit test path>/src/backends/backendsCommon/test/</span></div><div class="line"><a name="l01061"></a><span class="lineno"> 1061</span>  <span class="comment">// ├─ backendsTestPath5/ -> exists, contains files</span></div><div class="line"><a name="l01062"></a><span class="lineno"> 1062</span>  <span class="comment">// ├─ backendsTestPath6/ -> exists, contains files</span></div><div class="line"><a name="l01063"></a><span class="lineno"> 1063</span>  <span class="comment">// ├─ backendsTestPath7/ -> exists, but empty</span></div><div class="line"><a name="l01064"></a><span class="lineno"> 1064</span>  <span class="comment">// ├─ backendsTestPath8/ -> does not exist</span></div><div class="line"><a name="l01065"></a><span class="lineno"> 1065</span>  <span class="comment">// └─ backendsTestPath9/ -> exists, contains files</span></div><div class="line"><a name="l01066"></a><span class="lineno"> 1066</span>  <span class="comment">//</span></div><div class="line"><a name="l01067"></a><span class="lineno"> 1067</span>  <span class="comment">// The test sub-directory backendsTestPath5/ contains the following test files:</span></div><div class="line"><a name="l01068"></a><span class="lineno"> 1068</span>  <span class="comment">//</span></div><div class="line"><a name="l01069"></a><span class="lineno"> 1069</span>  <span class="comment">// Arm_TestValid2_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l01070"></a><span class="lineno"> 1070</span>  <span class="comment">// Arm_TestValid3_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l01071"></a><span class="lineno"> 1071</span>  <span class="comment">// Arm_TestInvalid8_backend.so -> not valid (invalid backend id)</span></div><div class="line"><a name="l01072"></a><span class="lineno"> 1072</span>  <span class="comment">//</span></div><div class="line"><a name="l01073"></a><span class="lineno"> 1073</span>  <span class="comment">// The test sub-directory backendsTestPath6/ contains the following test files:</span></div><div class="line"><a name="l01074"></a><span class="lineno"> 1074</span>  <span class="comment">//</span></div><div class="line"><a name="l01075"></a><span class="lineno"> 1075</span>  <span class="comment">// Arm_TestValid2_backend.so -> valid (but duplicated from backendsTestPath5/)</span></div><div class="line"><a name="l01076"></a><span class="lineno"> 1076</span>  <span class="comment">// Arm_TestValid4_backend.so -> valid (it has a different filename,</span></div><div class="line"><a name="l01077"></a><span class="lineno"> 1077</span>  <span class="comment">// but it has the same backend id of Arm_TestValid2_backend.so</span></div><div class="line"><a name="l01078"></a><span class="lineno"> 1078</span>  <span class="comment">// and the same version)</span></div><div class="line"><a name="l01079"></a><span class="lineno"> 1079</span>  <span class="comment">// Arm_TestValid5_backend.so -> valid (basic backend name)</span></div><div class="line"><a name="l01080"></a><span class="lineno"> 1080</span>  <span class="comment">// Arm_TestInvalid9_backend.so -> not valid (it has a different filename,</span></div><div class="line"><a name="l01081"></a><span class="lineno"> 1081</span>  <span class="comment">// but it has the same backend id of Arm_TestValid2_backend.so</span></div><div class="line"><a name="l01082"></a><span class="lineno"> 1082</span>  <span class="comment">// and a version incompatible with the Backend API)</span></div><div class="line"><a name="l01083"></a><span class="lineno"> 1083</span>  <span class="comment">//</span></div><div class="line"><a name="l01084"></a><span class="lineno"> 1084</span>  <span class="comment">// The test sub-directory backendsTestPath9/ contains the following test files:</span></div><div class="line"><a name="l01085"></a><span class="lineno"> 1085</span>  <span class="comment">//</span></div><div class="line"><a name="l01086"></a><span class="lineno"> 1086</span>  <span class="comment">// Arm_TestInvalid10_backend.so -> not valid (empty backend id)</span></div><div class="line"><a name="l01087"></a><span class="lineno"> 1087</span>  <span class="comment">// Arm_TestInvalid11_backend.so -> not valid ("Unknown" backend id)</span></div><div class="line"><a name="l01088"></a><span class="lineno"> 1088</span> </div><div class="line"><a name="l01089"></a><span class="lineno"> 1089</span>  std::string testDynamicBackendsSubDir5 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir5);</div><div class="line"><a name="l01090"></a><span class="lineno"> 1090</span>  std::string testDynamicBackendsSubDir6 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir6);</div><div class="line"><a name="l01091"></a><span class="lineno"> 1091</span>  std::string testDynamicBackendsSubDir7 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir7);</div><div class="line"><a name="l01092"></a><span class="lineno"> 1092</span>  std::string testDynamicBackendsSubDir8 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir8);</div><div class="line"><a name="l01093"></a><span class="lineno"> 1093</span>  std::string testDynamicBackendsSubDir9 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir9);</div><div class="line"><a name="l01094"></a><span class="lineno"> 1094</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir5));</div><div class="line"><a name="l01095"></a><span class="lineno"> 1095</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir6));</div><div class="line"><a name="l01096"></a><span class="lineno"> 1096</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir7));</div><div class="line"><a name="l01097"></a><span class="lineno"> 1097</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(!exists(testDynamicBackendsSubDir8));</div><div class="line"><a name="l01098"></a><span class="lineno"> 1098</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir9));</div><div class="line"><a name="l01099"></a><span class="lineno"> 1099</span> </div><div class="line"><a name="l01100"></a><span class="lineno"> 1100</span>  std::string testValidBackend2FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5, g_TestValidBackend2FileName);</div><div class="line"><a name="l01101"></a><span class="lineno"> 1101</span>  std::string testValidBackend3FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5, g_TestValidBackend3FileName);</div><div class="line"><a name="l01102"></a><span class="lineno"> 1102</span>  std::string testValidBackend2DupFilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir6, g_TestValidBackend2FileName);</div><div class="line"><a name="l01103"></a><span class="lineno"> 1103</span>  std::string testValidBackend4FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir6, g_TestValidBackend4FileName);</div><div class="line"><a name="l01104"></a><span class="lineno"> 1104</span>  std::string testValidBackend5FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir6, g_TestValidBackend5FileName);</div><div class="line"><a name="l01105"></a><span class="lineno"> 1105</span>  std::string testInvalidBackend8FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5,</div><div class="line"><a name="l01106"></a><span class="lineno"> 1106</span>  g_TestInvalidBackend8FileName);</div><div class="line"><a name="l01107"></a><span class="lineno"> 1107</span>  std::string testInvalidBackend9FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir6,</div><div class="line"><a name="l01108"></a><span class="lineno"> 1108</span>  g_TestInvalidBackend9FileName);</div><div class="line"><a name="l01109"></a><span class="lineno"> 1109</span>  std::string testInvalidBackend10FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir9,</div><div class="line"><a name="l01110"></a><span class="lineno"> 1110</span>  g_TestInvalidBackend10FileName);</div><div class="line"><a name="l01111"></a><span class="lineno"> 1111</span>  std::string testInvalidBackend11FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir9,</div><div class="line"><a name="l01112"></a><span class="lineno"> 1112</span>  g_TestInvalidBackend11FileName);</div><div class="line"><a name="l01113"></a><span class="lineno"> 1113</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend2FilePath));</div><div class="line"><a name="l01114"></a><span class="lineno"> 1114</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend3FilePath));</div><div class="line"><a name="l01115"></a><span class="lineno"> 1115</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend2DupFilePath));</div><div class="line"><a name="l01116"></a><span class="lineno"> 1116</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend4FilePath));</div><div class="line"><a name="l01117"></a><span class="lineno"> 1117</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend5FilePath));</div><div class="line"><a name="l01118"></a><span class="lineno"> 1118</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend8FilePath));</div><div class="line"><a name="l01119"></a><span class="lineno"> 1119</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend9FilePath));</div><div class="line"><a name="l01120"></a><span class="lineno"> 1120</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend10FilePath));</div><div class="line"><a name="l01121"></a><span class="lineno"> 1121</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend11FilePath));</div><div class="line"><a name="l01122"></a><span class="lineno"> 1122</span> </div><div class="line"><a name="l01123"></a><span class="lineno"> 1123</span>  std::vector<std::string> sharedObjects</div><div class="line"><a name="l01124"></a><span class="lineno"> 1124</span>  {</div><div class="line"><a name="l01125"></a><span class="lineno"> 1125</span>  testValidBackend2FilePath,</div><div class="line"><a name="l01126"></a><span class="lineno"> 1126</span>  testValidBackend3FilePath,</div><div class="line"><a name="l01127"></a><span class="lineno"> 1127</span>  testValidBackend2DupFilePath,</div><div class="line"><a name="l01128"></a><span class="lineno"> 1128</span>  testValidBackend4FilePath,</div><div class="line"><a name="l01129"></a><span class="lineno"> 1129</span>  testValidBackend5FilePath,</div><div class="line"><a name="l01130"></a><span class="lineno"> 1130</span>  testInvalidBackend8FilePath,</div><div class="line"><a name="l01131"></a><span class="lineno"> 1131</span>  testInvalidBackend9FilePath,</div><div class="line"><a name="l01132"></a><span class="lineno"> 1132</span>  testInvalidBackend10FilePath,</div><div class="line"><a name="l01133"></a><span class="lineno"> 1133</span>  testInvalidBackend11FilePath,</div><div class="line"><a name="l01134"></a><span class="lineno"> 1134</span>  <span class="stringliteral">"InvalidSharedObject"</span></div><div class="line"><a name="l01135"></a><span class="lineno"> 1135</span>  };</div><div class="line"><a name="l01136"></a><span class="lineno"> 1136</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">TestDynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l01137"></a><span class="lineno"> 1137</span> </div><div class="line"><a name="l01138"></a><span class="lineno"> 1138</span>  BOOST_TEST(dynamicBackends.size() == 7);</div><div class="line"><a name="l01139"></a><span class="lineno"> 1139</span>  BOOST_TEST((dynamicBackends[0] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01140"></a><span class="lineno"> 1140</span>  BOOST_TEST((dynamicBackends[1] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01141"></a><span class="lineno"> 1141</span>  BOOST_TEST((dynamicBackends[2] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01142"></a><span class="lineno"> 1142</span>  BOOST_TEST((dynamicBackends[3] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01143"></a><span class="lineno"> 1143</span>  BOOST_TEST((dynamicBackends[4] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01144"></a><span class="lineno"> 1144</span>  BOOST_TEST((dynamicBackends[5] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01145"></a><span class="lineno"> 1145</span>  BOOST_TEST((dynamicBackends[6] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01146"></a><span class="lineno"> 1146</span> </div><div class="line"><a name="l01147"></a><span class="lineno"> 1147</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId1 = dynamicBackends[0]->GetBackendId();</div><div class="line"><a name="l01148"></a><span class="lineno"> 1148</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId2 = dynamicBackends[1]->GetBackendId();</div><div class="line"><a name="l01149"></a><span class="lineno"> 1149</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId3 = dynamicBackends[2]->GetBackendId();</div><div class="line"><a name="l01150"></a><span class="lineno"> 1150</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId4 = dynamicBackends[3]->GetBackendId();</div><div class="line"><a name="l01151"></a><span class="lineno"> 1151</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId5 = dynamicBackends[4]->GetBackendId();</div><div class="line"><a name="l01152"></a><span class="lineno"> 1152</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId6 = dynamicBackends[5]->GetBackendId();</div><div class="line"><a name="l01153"></a><span class="lineno"> 1153</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId7 = dynamicBackends[6]->GetBackendId();</div><div class="line"><a name="l01154"></a><span class="lineno"> 1154</span>  BOOST_TEST((dynamicBackendId1 == <span class="stringliteral">"TestValid2"</span>));</div><div class="line"><a name="l01155"></a><span class="lineno"> 1155</span>  BOOST_TEST((dynamicBackendId2 == <span class="stringliteral">"TestValid3"</span>));</div><div class="line"><a name="l01156"></a><span class="lineno"> 1156</span>  BOOST_TEST((dynamicBackendId3 == <span class="stringliteral">"TestValid2"</span>)); <span class="comment">// From duplicate Arm_TestValid2_backend.so</span></div><div class="line"><a name="l01157"></a><span class="lineno"> 1157</span>  BOOST_TEST((dynamicBackendId4 == <span class="stringliteral">"TestValid2"</span>)); <span class="comment">// From Arm_TestValid4_backend.so</span></div><div class="line"><a name="l01158"></a><span class="lineno"> 1158</span>  BOOST_TEST((dynamicBackendId5 == <span class="stringliteral">"TestValid5"</span>));</div><div class="line"><a name="l01159"></a><span class="lineno"> 1159</span>  BOOST_TEST((dynamicBackendId6 == <span class="stringliteral">""</span>));</div><div class="line"><a name="l01160"></a><span class="lineno"> 1160</span>  BOOST_TEST((dynamicBackendId7 == <span class="stringliteral">"Unknown"</span>));</div><div class="line"><a name="l01161"></a><span class="lineno"> 1161</span> </div><div class="line"><a name="l01162"></a><span class="lineno"> 1162</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < dynamicBackends.size(); i++)</div><div class="line"><a name="l01163"></a><span class="lineno"> 1163</span>  {</div><div class="line"><a name="l01164"></a><span class="lineno"> 1164</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> dynamicBackendVersion = dynamicBackends[i]->GetBackendVersion();</div><div class="line"><a name="l01165"></a><span class="lineno"> 1165</span>  BOOST_TEST(<a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">TestDynamicBackendUtils::IsBackendCompatible</a>(dynamicBackendVersion));</div><div class="line"><a name="l01166"></a><span class="lineno"> 1166</span>  }</div><div class="line"><a name="l01167"></a><span class="lineno"> 1167</span> </div><div class="line"><a name="l01168"></a><span class="lineno"> 1168</span>  <span class="comment">// Dummy registry used for testing</span></div><div class="line"><a name="l01169"></a><span class="lineno"> 1169</span>  <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a> backendRegistry;</div><div class="line"><a name="l01170"></a><span class="lineno"> 1170</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01171"></a><span class="lineno"> 1171</span> </div><div class="line"><a name="l01172"></a><span class="lineno"> 1172</span>  std::vector<BackendId> expectedRegisteredbackendIds</div><div class="line"><a name="l01173"></a><span class="lineno"> 1173</span>  {</div><div class="line"><a name="l01174"></a><span class="lineno"> 1174</span>  <span class="stringliteral">"TestValid2"</span>,</div><div class="line"><a name="l01175"></a><span class="lineno"> 1175</span>  <span class="stringliteral">"TestValid3"</span>,</div><div class="line"><a name="l01176"></a><span class="lineno"> 1176</span>  <span class="stringliteral">"TestValid5"</span></div><div class="line"><a name="l01177"></a><span class="lineno"> 1177</span>  };</div><div class="line"><a name="l01178"></a><span class="lineno"> 1178</span> </div><div class="line"><a name="l01179"></a><span class="lineno"> 1179</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> registeredBackendIds = <a class="code" href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a>(backendRegistry,</div><div class="line"><a name="l01180"></a><span class="lineno"> 1180</span>  dynamicBackends);</div><div class="line"><a name="l01181"></a><span class="lineno"> 1181</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01182"></a><span class="lineno"> 1182</span>  BOOST_TEST(registeredBackendIds.size() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01183"></a><span class="lineno"> 1183</span> </div><div class="line"><a name="l01184"></a><span class="lineno"> 1184</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> backendIds = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">GetBackendIds</a>();</div><div class="line"><a name="l01185"></a><span class="lineno"> 1185</span>  BOOST_TEST(backendIds.size() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01186"></a><span class="lineno"> 1186</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& expectedRegisteredbackendId : expectedRegisteredbackendIds)</div><div class="line"><a name="l01187"></a><span class="lineno"> 1187</span>  {</div><div class="line"><a name="l01188"></a><span class="lineno"> 1188</span>  BOOST_TEST((backendIds.find(expectedRegisteredbackendId) != backendIds.end()));</div><div class="line"><a name="l01189"></a><span class="lineno"> 1189</span>  BOOST_TEST((registeredBackendIds.find(expectedRegisteredbackendId) != registeredBackendIds.end()));</div><div class="line"><a name="l01190"></a><span class="lineno"> 1190</span> </div><div class="line"><a name="l01191"></a><span class="lineno"> 1191</span>  <span class="keyword">auto</span> dynamicBackendFactoryFunction = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#afc0c63ca8db8957b58826f6d7bd231b2">GetFactory</a>(expectedRegisteredbackendId);</div><div class="line"><a name="l01192"></a><span class="lineno"> 1192</span>  BOOST_TEST((dynamicBackendFactoryFunction != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01193"></a><span class="lineno"> 1193</span> </div><div class="line"><a name="l01194"></a><span class="lineno"> 1194</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackend = dynamicBackendFactoryFunction();</div><div class="line"><a name="l01195"></a><span class="lineno"> 1195</span>  BOOST_TEST((dynamicBackend != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01196"></a><span class="lineno"> 1196</span>  BOOST_TEST((dynamicBackend->GetId() == expectedRegisteredbackendId));</div><div class="line"><a name="l01197"></a><span class="lineno"> 1197</span>  }</div><div class="line"><a name="l01198"></a><span class="lineno"> 1198</span> }</div><div class="ttc" id="class_test_dynamic_backend_utils_xhtml_a304e5c5c5afc70590df8927e144fbaa5"><div class="ttname"><a href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a></div><div class="ttdeci">static armnn::BackendIdSet RegisterDynamicBackendsImplTest(armnn::BackendRegistry &backendRegistry, const std::vector< armnn::DynamicBackendPtr > &dynamicBackends)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00082">DynamicBackendTests.hpp:82</a></div></div> |
| 1066 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_afc0c63ca8db8957b58826f6d7bd231b2"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#afc0c63ca8db8957b58826f6d7bd231b2">armnn::BackendRegistry::GetFactory</a></div><div class="ttdeci">FactoryFunction GetFactory(const BackendId &id) const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00048">BackendRegistry.cpp:48</a></div></div> |
| 1067 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a570cb1835ec73000a7954ba75257904f"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">armnn::BackendRegistry::GetBackendIds</a></div><div class="ttdeci">BackendIdSet GetBackendIds() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00066">BackendRegistry.cpp:66</a></div></div> |
| 1068 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1069 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1070 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a6789076aa25c6a10faeff1043359bda8"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">armnn::DynamicBackendUtils::IsBackendCompatible</a></div><div class="ttdeci">static bool IsBackendCompatible(const BackendVersion &backendVersion)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00051">DynamicBackendUtils.cpp:51</a></div></div> |
| 1071 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 1072 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 1073 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1074 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1075 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1076 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 1077 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1078 | <div class="ttc" id="namespacearmnn_xhtml_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00018">BackendRegistry.hpp:18</a></div></div> |
| 1079 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 1080 | </div><!-- fragment --> |
| 1081 | </div> |
| 1082 | </div> |
| 1083 | <a id="ac7de5c298989cb4f0d1df55baf3e6450"></a> |
| 1084 | <h2 class="memtitle"><span class="permalink"><a href="#ac7de5c298989cb4f0d1df55baf3e6450">◆ </a></span>RegisterMultipleDynamicBackendsTestImpl()</h2> |
| 1085 | |
| 1086 | <div class="memitem"> |
| 1087 | <div class="memproto"> |
| 1088 | <table class="memname"> |
| 1089 | <tr> |
| 1090 | <td class="memname">void RegisterMultipleDynamicBackendsTestImpl </td> |
| 1091 | <td>(</td> |
| 1092 | <td class="paramname"></td><td>)</td> |
| 1093 | <td></td> |
| 1094 | </tr> |
| 1095 | </table> |
| 1096 | </div><div class="memdoc"> |
| 1097 | |
| 1098 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00918">918</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1099 | |
| 1100 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1101 | <div class="fragment"><div class="line"><a name="l00919"></a><span class="lineno"> 919</span> {</div><div class="line"><a name="l00920"></a><span class="lineno"> 920</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00921"></a><span class="lineno"> 921</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00922"></a><span class="lineno"> 922</span> </div><div class="line"><a name="l00923"></a><span class="lineno"> 923</span>  <span class="comment">// Register many valid dynamic backends</span></div><div class="line"><a name="l00924"></a><span class="lineno"> 924</span> </div><div class="line"><a name="l00925"></a><span class="lineno"> 925</span>  std::string testDynamicBackendsSubDir5 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir5);</div><div class="line"><a name="l00926"></a><span class="lineno"> 926</span>  std::string testDynamicBackendsSubDir6 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir6);</div><div class="line"><a name="l00927"></a><span class="lineno"> 927</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir5));</div><div class="line"><a name="l00928"></a><span class="lineno"> 928</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir6));</div><div class="line"><a name="l00929"></a><span class="lineno"> 929</span> </div><div class="line"><a name="l00930"></a><span class="lineno"> 930</span>  std::string testValidBackend2FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5, g_TestValidBackend2FileName);</div><div class="line"><a name="l00931"></a><span class="lineno"> 931</span>  std::string testValidBackend3FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5, g_TestValidBackend3FileName);</div><div class="line"><a name="l00932"></a><span class="lineno"> 932</span>  std::string testValidBackend5FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir6, g_TestValidBackend5FileName);</div><div class="line"><a name="l00933"></a><span class="lineno"> 933</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend2FilePath));</div><div class="line"><a name="l00934"></a><span class="lineno"> 934</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend3FilePath));</div><div class="line"><a name="l00935"></a><span class="lineno"> 935</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend5FilePath));</div><div class="line"><a name="l00936"></a><span class="lineno"> 936</span> </div><div class="line"><a name="l00937"></a><span class="lineno"> 937</span>  std::vector<std::string> sharedObjects</div><div class="line"><a name="l00938"></a><span class="lineno"> 938</span>  {</div><div class="line"><a name="l00939"></a><span class="lineno"> 939</span>  testValidBackend2FilePath,</div><div class="line"><a name="l00940"></a><span class="lineno"> 940</span>  testValidBackend3FilePath,</div><div class="line"><a name="l00941"></a><span class="lineno"> 941</span>  testValidBackend5FilePath</div><div class="line"><a name="l00942"></a><span class="lineno"> 942</span>  };</div><div class="line"><a name="l00943"></a><span class="lineno"> 943</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">TestDynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l00944"></a><span class="lineno"> 944</span> </div><div class="line"><a name="l00945"></a><span class="lineno"> 945</span>  BOOST_TEST(dynamicBackends.size() == 3);</div><div class="line"><a name="l00946"></a><span class="lineno"> 946</span>  BOOST_TEST((dynamicBackends[0] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00947"></a><span class="lineno"> 947</span>  BOOST_TEST((dynamicBackends[1] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00948"></a><span class="lineno"> 948</span>  BOOST_TEST((dynamicBackends[2] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00949"></a><span class="lineno"> 949</span> </div><div class="line"><a name="l00950"></a><span class="lineno"> 950</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId1 = dynamicBackends[0]->GetBackendId();</div><div class="line"><a name="l00951"></a><span class="lineno"> 951</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId2 = dynamicBackends[1]->GetBackendId();</div><div class="line"><a name="l00952"></a><span class="lineno"> 952</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId3 = dynamicBackends[2]->GetBackendId();</div><div class="line"><a name="l00953"></a><span class="lineno"> 953</span>  BOOST_TEST((dynamicBackendId1 == <span class="stringliteral">"TestValid2"</span>));</div><div class="line"><a name="l00954"></a><span class="lineno"> 954</span>  BOOST_TEST((dynamicBackendId2 == <span class="stringliteral">"TestValid3"</span>));</div><div class="line"><a name="l00955"></a><span class="lineno"> 955</span>  BOOST_TEST((dynamicBackendId3 == <span class="stringliteral">"TestValid5"</span>));</div><div class="line"><a name="l00956"></a><span class="lineno"> 956</span> </div><div class="line"><a name="l00957"></a><span class="lineno"> 957</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < dynamicBackends.size(); i++)</div><div class="line"><a name="l00958"></a><span class="lineno"> 958</span>  {</div><div class="line"><a name="l00959"></a><span class="lineno"> 959</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> dynamicBackendVersion = dynamicBackends[i]->GetBackendVersion();</div><div class="line"><a name="l00960"></a><span class="lineno"> 960</span>  BOOST_TEST(<a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">TestDynamicBackendUtils::IsBackendCompatible</a>(dynamicBackendVersion));</div><div class="line"><a name="l00961"></a><span class="lineno"> 961</span>  }</div><div class="line"><a name="l00962"></a><span class="lineno"> 962</span> </div><div class="line"><a name="l00963"></a><span class="lineno"> 963</span>  <span class="comment">// Dummy registry used for testing</span></div><div class="line"><a name="l00964"></a><span class="lineno"> 964</span>  <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a> backendRegistry;</div><div class="line"><a name="l00965"></a><span class="lineno"> 965</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l00966"></a><span class="lineno"> 966</span> </div><div class="line"><a name="l00967"></a><span class="lineno"> 967</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> registeredBackendIds = <a class="code" href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a>(backendRegistry,</div><div class="line"><a name="l00968"></a><span class="lineno"> 968</span>  dynamicBackends);</div><div class="line"><a name="l00969"></a><span class="lineno"> 969</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 3);</div><div class="line"><a name="l00970"></a><span class="lineno"> 970</span>  BOOST_TEST(registeredBackendIds.size() == 3);</div><div class="line"><a name="l00971"></a><span class="lineno"> 971</span> </div><div class="line"><a name="l00972"></a><span class="lineno"> 972</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> backendIds = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">GetBackendIds</a>();</div><div class="line"><a name="l00973"></a><span class="lineno"> 973</span>  BOOST_TEST(backendIds.size() == 3);</div><div class="line"><a name="l00974"></a><span class="lineno"> 974</span>  BOOST_TEST((backendIds.find(dynamicBackendId1) != backendIds.end()));</div><div class="line"><a name="l00975"></a><span class="lineno"> 975</span>  BOOST_TEST((backendIds.find(dynamicBackendId2) != backendIds.end()));</div><div class="line"><a name="l00976"></a><span class="lineno"> 976</span>  BOOST_TEST((backendIds.find(dynamicBackendId3) != backendIds.end()));</div><div class="line"><a name="l00977"></a><span class="lineno"> 977</span>  BOOST_TEST((registeredBackendIds.find(dynamicBackendId1) != registeredBackendIds.end()));</div><div class="line"><a name="l00978"></a><span class="lineno"> 978</span>  BOOST_TEST((registeredBackendIds.find(dynamicBackendId2) != registeredBackendIds.end()));</div><div class="line"><a name="l00979"></a><span class="lineno"> 979</span>  BOOST_TEST((registeredBackendIds.find(dynamicBackendId3) != registeredBackendIds.end()));</div><div class="line"><a name="l00980"></a><span class="lineno"> 980</span> </div><div class="line"><a name="l00981"></a><span class="lineno"> 981</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < dynamicBackends.size(); i++)</div><div class="line"><a name="l00982"></a><span class="lineno"> 982</span>  {</div><div class="line"><a name="l00983"></a><span class="lineno"> 983</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId = dynamicBackends[i]->GetBackendId();</div><div class="line"><a name="l00984"></a><span class="lineno"> 984</span> </div><div class="line"><a name="l00985"></a><span class="lineno"> 985</span>  <span class="keyword">auto</span> dynamicBackendFactoryFunction = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#afc0c63ca8db8957b58826f6d7bd231b2">GetFactory</a>(dynamicBackendId);</div><div class="line"><a name="l00986"></a><span class="lineno"> 986</span>  BOOST_TEST((dynamicBackendFactoryFunction != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00987"></a><span class="lineno"> 987</span> </div><div class="line"><a name="l00988"></a><span class="lineno"> 988</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackend = dynamicBackendFactoryFunction();</div><div class="line"><a name="l00989"></a><span class="lineno"> 989</span>  BOOST_TEST((dynamicBackend != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00990"></a><span class="lineno"> 990</span>  BOOST_TEST((dynamicBackend->GetId() == dynamicBackendId));</div><div class="line"><a name="l00991"></a><span class="lineno"> 991</span>  }</div><div class="line"><a name="l00992"></a><span class="lineno"> 992</span> }</div><div class="ttc" id="class_test_dynamic_backend_utils_xhtml_a304e5c5c5afc70590df8927e144fbaa5"><div class="ttname"><a href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a></div><div class="ttdeci">static armnn::BackendIdSet RegisterDynamicBackendsImplTest(armnn::BackendRegistry &backendRegistry, const std::vector< armnn::DynamicBackendPtr > &dynamicBackends)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00082">DynamicBackendTests.hpp:82</a></div></div> |
| 1102 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_afc0c63ca8db8957b58826f6d7bd231b2"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#afc0c63ca8db8957b58826f6d7bd231b2">armnn::BackendRegistry::GetFactory</a></div><div class="ttdeci">FactoryFunction GetFactory(const BackendId &id) const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00048">BackendRegistry.cpp:48</a></div></div> |
| 1103 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a570cb1835ec73000a7954ba75257904f"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">armnn::BackendRegistry::GetBackendIds</a></div><div class="ttdeci">BackendIdSet GetBackendIds() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00066">BackendRegistry.cpp:66</a></div></div> |
| 1104 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1105 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1106 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a6789076aa25c6a10faeff1043359bda8"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">armnn::DynamicBackendUtils::IsBackendCompatible</a></div><div class="ttdeci">static bool IsBackendCompatible(const BackendVersion &backendVersion)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00051">DynamicBackendUtils.cpp:51</a></div></div> |
| 1107 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 1108 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 1109 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1110 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1111 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1112 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 1113 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1114 | <div class="ttc" id="namespacearmnn_xhtml_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00018">BackendRegistry.hpp:18</a></div></div> |
| 1115 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 1116 | </div><!-- fragment --> |
| 1117 | </div> |
| 1118 | </div> |
| 1119 | <a id="a98bdeaf1b8289ba5fa6ac2b0e45a13d0"></a> |
| 1120 | <h2 class="memtitle"><span class="permalink"><a href="#a98bdeaf1b8289ba5fa6ac2b0e45a13d0">◆ </a></span>RegisterMultipleInvalidDynamicBackendsTestImpl()</h2> |
| 1121 | |
| 1122 | <div class="memitem"> |
| 1123 | <div class="memproto"> |
| 1124 | <table class="memname"> |
| 1125 | <tr> |
| 1126 | <td class="memname">void RegisterMultipleInvalidDynamicBackendsTestImpl </td> |
| 1127 | <td>(</td> |
| 1128 | <td class="paramname"></td><td>)</td> |
| 1129 | <td></td> |
| 1130 | </tr> |
| 1131 | </table> |
| 1132 | </div><div class="memdoc"> |
| 1133 | |
| 1134 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00994">994</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1135 | |
| 1136 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1137 | <div class="fragment"><div class="line"><a name="l00995"></a><span class="lineno"> 995</span> {</div><div class="line"><a name="l00996"></a><span class="lineno"> 996</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00997"></a><span class="lineno"> 997</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00998"></a><span class="lineno"> 998</span> </div><div class="line"><a name="l00999"></a><span class="lineno"> 999</span>  <span class="comment">// Try to register many invalid dynamic backends</span></div><div class="line"><a name="l01000"></a><span class="lineno"> 1000</span> </div><div class="line"><a name="l01001"></a><span class="lineno"> 1001</span>  <span class="comment">// The test covers one directory:</span></div><div class="line"><a name="l01002"></a><span class="lineno"> 1002</span>  <span class="comment">// <unit test path>/src/backends/backendsCommon/test/</span></div><div class="line"><a name="l01003"></a><span class="lineno"> 1003</span>  <span class="comment">// └─ backendsTestPath9/ -> exists, contains files</span></div><div class="line"><a name="l01004"></a><span class="lineno"> 1004</span>  <span class="comment">//</span></div><div class="line"><a name="l01005"></a><span class="lineno"> 1005</span>  <span class="comment">// The test sub-directory backendsTestPath9/ contains the following test files:</span></div><div class="line"><a name="l01006"></a><span class="lineno"> 1006</span>  <span class="comment">//</span></div><div class="line"><a name="l01007"></a><span class="lineno"> 1007</span>  <span class="comment">// Arm_TestInvalid10_backend.so -> not valid (invalid backend id)</span></div><div class="line"><a name="l01008"></a><span class="lineno"> 1008</span>  <span class="comment">// Arm_TestInvalid11_backend.so -> not valid (invalid backend id)</span></div><div class="line"><a name="l01009"></a><span class="lineno"> 1009</span> </div><div class="line"><a name="l01010"></a><span class="lineno"> 1010</span>  std::string testDynamicBackendsSubDir9 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir9);</div><div class="line"><a name="l01011"></a><span class="lineno"> 1011</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir9));</div><div class="line"><a name="l01012"></a><span class="lineno"> 1012</span> </div><div class="line"><a name="l01013"></a><span class="lineno"> 1013</span>  std::string testInvalidBackend10FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir9,</div><div class="line"><a name="l01014"></a><span class="lineno"> 1014</span>  g_TestInvalidBackend10FileName);</div><div class="line"><a name="l01015"></a><span class="lineno"> 1015</span>  std::string testInvalidBackend11FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir9,</div><div class="line"><a name="l01016"></a><span class="lineno"> 1016</span>  g_TestInvalidBackend11FileName);</div><div class="line"><a name="l01017"></a><span class="lineno"> 1017</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend10FilePath));</div><div class="line"><a name="l01018"></a><span class="lineno"> 1018</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testInvalidBackend11FilePath));</div><div class="line"><a name="l01019"></a><span class="lineno"> 1019</span> </div><div class="line"><a name="l01020"></a><span class="lineno"> 1020</span>  std::vector<std::string> sharedObjects</div><div class="line"><a name="l01021"></a><span class="lineno"> 1021</span>  {</div><div class="line"><a name="l01022"></a><span class="lineno"> 1022</span>  testInvalidBackend10FilePath,</div><div class="line"><a name="l01023"></a><span class="lineno"> 1023</span>  testInvalidBackend11FilePath,</div><div class="line"><a name="l01024"></a><span class="lineno"> 1024</span>  <span class="stringliteral">"InvalidSharedObject"</span></div><div class="line"><a name="l01025"></a><span class="lineno"> 1025</span>  };</div><div class="line"><a name="l01026"></a><span class="lineno"> 1026</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">TestDynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l01027"></a><span class="lineno"> 1027</span> </div><div class="line"><a name="l01028"></a><span class="lineno"> 1028</span>  BOOST_TEST(dynamicBackends.size() == 2);</div><div class="line"><a name="l01029"></a><span class="lineno"> 1029</span>  BOOST_TEST((dynamicBackends[0] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01030"></a><span class="lineno"> 1030</span>  BOOST_TEST((dynamicBackends[1] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l01031"></a><span class="lineno"> 1031</span> </div><div class="line"><a name="l01032"></a><span class="lineno"> 1032</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId1 = dynamicBackends[0]->GetBackendId();</div><div class="line"><a name="l01033"></a><span class="lineno"> 1033</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId2 = dynamicBackends[1]->GetBackendId();</div><div class="line"><a name="l01034"></a><span class="lineno"> 1034</span>  BOOST_TEST((dynamicBackendId1 == <span class="stringliteral">""</span>));</div><div class="line"><a name="l01035"></a><span class="lineno"> 1035</span>  BOOST_TEST((dynamicBackendId2 == <span class="stringliteral">"Unknown"</span>));</div><div class="line"><a name="l01036"></a><span class="lineno"> 1036</span> </div><div class="line"><a name="l01037"></a><span class="lineno"> 1037</span>  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 0; i < dynamicBackends.size(); i++)</div><div class="line"><a name="l01038"></a><span class="lineno"> 1038</span>  {</div><div class="line"><a name="l01039"></a><span class="lineno"> 1039</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> dynamicBackendVersion = dynamicBackends[i]->GetBackendVersion();</div><div class="line"><a name="l01040"></a><span class="lineno"> 1040</span>  BOOST_TEST(<a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">TestDynamicBackendUtils::IsBackendCompatible</a>(dynamicBackendVersion));</div><div class="line"><a name="l01041"></a><span class="lineno"> 1041</span>  }</div><div class="line"><a name="l01042"></a><span class="lineno"> 1042</span> </div><div class="line"><a name="l01043"></a><span class="lineno"> 1043</span>  <span class="comment">// Dummy registry used for testing</span></div><div class="line"><a name="l01044"></a><span class="lineno"> 1044</span>  <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a> backendRegistry;</div><div class="line"><a name="l01045"></a><span class="lineno"> 1045</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01046"></a><span class="lineno"> 1046</span> </div><div class="line"><a name="l01047"></a><span class="lineno"> 1047</span>  <span class="comment">// Check that no dynamic backend got registered</span></div><div class="line"><a name="l01048"></a><span class="lineno"> 1048</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> registeredBackendIds = <a class="code" href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a>(backendRegistry,</div><div class="line"><a name="l01049"></a><span class="lineno"> 1049</span>  dynamicBackends);</div><div class="line"><a name="l01050"></a><span class="lineno"> 1050</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01051"></a><span class="lineno"> 1051</span>  BOOST_TEST(registeredBackendIds.empty());</div><div class="line"><a name="l01052"></a><span class="lineno"> 1052</span> }</div><div class="ttc" id="class_test_dynamic_backend_utils_xhtml_a304e5c5c5afc70590df8927e144fbaa5"><div class="ttname"><a href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a></div><div class="ttdeci">static armnn::BackendIdSet RegisterDynamicBackendsImplTest(armnn::BackendRegistry &backendRegistry, const std::vector< armnn::DynamicBackendPtr > &dynamicBackends)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00082">DynamicBackendTests.hpp:82</a></div></div> |
| 1138 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1139 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1140 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a6789076aa25c6a10faeff1043359bda8"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">armnn::DynamicBackendUtils::IsBackendCompatible</a></div><div class="ttdeci">static bool IsBackendCompatible(const BackendVersion &backendVersion)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00051">DynamicBackendUtils.cpp:51</a></div></div> |
| 1141 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 1142 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 1143 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1144 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1145 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1146 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 1147 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1148 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 1149 | </div><!-- fragment --> |
| 1150 | </div> |
| 1151 | </div> |
| 1152 | <a id="a30cad47158195db425c9580171a7703f"></a> |
| 1153 | <h2 class="memtitle"><span class="permalink"><a href="#a30cad47158195db425c9580171a7703f">◆ </a></span>RegisterSingleDynamicBackendTestImpl()</h2> |
| 1154 | |
| 1155 | <div class="memitem"> |
| 1156 | <div class="memproto"> |
| 1157 | <table class="memname"> |
| 1158 | <tr> |
| 1159 | <td class="memname">void RegisterSingleDynamicBackendTestImpl </td> |
| 1160 | <td>(</td> |
| 1161 | <td class="paramname"></td><td>)</td> |
| 1162 | <td></td> |
| 1163 | </tr> |
| 1164 | </table> |
| 1165 | </div><div class="memdoc"> |
| 1166 | |
| 1167 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00871">871</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1168 | |
| 1169 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>, and <a class="el" href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry::Size()</a>.</p> |
| 1170 | <div class="fragment"><div class="line"><a name="l00872"></a><span class="lineno"> 872</span> {</div><div class="line"><a name="l00873"></a><span class="lineno"> 873</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l00874"></a><span class="lineno"> 874</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l00875"></a><span class="lineno"> 875</span> </div><div class="line"><a name="l00876"></a><span class="lineno"> 876</span>  <span class="comment">// Register one valid dynamic backend</span></div><div class="line"><a name="l00877"></a><span class="lineno"> 877</span> </div><div class="line"><a name="l00878"></a><span class="lineno"> 878</span>  <span class="comment">// Dummy registry used for testing</span></div><div class="line"><a name="l00879"></a><span class="lineno"> 879</span>  <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a> backendRegistry;</div><div class="line"><a name="l00880"></a><span class="lineno"> 880</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l00881"></a><span class="lineno"> 881</span> </div><div class="line"><a name="l00882"></a><span class="lineno"> 882</span>  std::string testDynamicBackendsSubDir5 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir5);</div><div class="line"><a name="l00883"></a><span class="lineno"> 883</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir5));</div><div class="line"><a name="l00884"></a><span class="lineno"> 884</span> </div><div class="line"><a name="l00885"></a><span class="lineno"> 885</span>  std::string testValidBackend2FilePath = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a>(testDynamicBackendsSubDir5, g_TestValidBackend2FileName);</div><div class="line"><a name="l00886"></a><span class="lineno"> 886</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testValidBackend2FilePath));</div><div class="line"><a name="l00887"></a><span class="lineno"> 887</span> </div><div class="line"><a name="l00888"></a><span class="lineno"> 888</span>  std::vector<std::string> sharedObjects{ testValidBackend2FilePath };</div><div class="line"><a name="l00889"></a><span class="lineno"> 889</span>  std::vector<DynamicBackendPtr> dynamicBackends = <a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">TestDynamicBackendUtils::CreateDynamicBackends</a>(sharedObjects);</div><div class="line"><a name="l00890"></a><span class="lineno"> 890</span> </div><div class="line"><a name="l00891"></a><span class="lineno"> 891</span>  BOOST_TEST(dynamicBackends.size() == 1);</div><div class="line"><a name="l00892"></a><span class="lineno"> 892</span>  BOOST_TEST((dynamicBackends[0] != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00893"></a><span class="lineno"> 893</span> </div><div class="line"><a name="l00894"></a><span class="lineno"> 894</span>  <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a> dynamicBackendId = dynamicBackends[0]->GetBackendId();</div><div class="line"><a name="l00895"></a><span class="lineno"> 895</span>  BOOST_TEST((dynamicBackendId == <span class="stringliteral">"TestValid2"</span>));</div><div class="line"><a name="l00896"></a><span class="lineno"> 896</span> </div><div class="line"><a name="l00897"></a><span class="lineno"> 897</span>  <a class="code" href="structarmnn_1_1_backend_version.xhtml">BackendVersion</a> dynamicBackendVersion = dynamicBackends[0]->GetBackendVersion();</div><div class="line"><a name="l00898"></a><span class="lineno"> 898</span>  BOOST_TEST(<a class="code" href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">TestDynamicBackendUtils::IsBackendCompatible</a>(dynamicBackendVersion));</div><div class="line"><a name="l00899"></a><span class="lineno"> 899</span> </div><div class="line"><a name="l00900"></a><span class="lineno"> 900</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> registeredBackendIds = <a class="code" href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a>(backendRegistry,</div><div class="line"><a name="l00901"></a><span class="lineno"> 901</span>  dynamicBackends);</div><div class="line"><a name="l00902"></a><span class="lineno"> 902</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 1);</div><div class="line"><a name="l00903"></a><span class="lineno"> 903</span>  BOOST_TEST(registeredBackendIds.size() == 1);</div><div class="line"><a name="l00904"></a><span class="lineno"> 904</span> </div><div class="line"><a name="l00905"></a><span class="lineno"> 905</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> backendIds = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">GetBackendIds</a>();</div><div class="line"><a name="l00906"></a><span class="lineno"> 906</span>  BOOST_TEST(backendIds.size() == 1);</div><div class="line"><a name="l00907"></a><span class="lineno"> 907</span>  BOOST_TEST((backendIds.find(dynamicBackendId) != backendIds.end()));</div><div class="line"><a name="l00908"></a><span class="lineno"> 908</span>  BOOST_TEST((registeredBackendIds.find(dynamicBackendId) != registeredBackendIds.end()));</div><div class="line"><a name="l00909"></a><span class="lineno"> 909</span> </div><div class="line"><a name="l00910"></a><span class="lineno"> 910</span>  <span class="keyword">auto</span> dynamicBackendFactoryFunction = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#afc0c63ca8db8957b58826f6d7bd231b2">GetFactory</a>(dynamicBackendId);</div><div class="line"><a name="l00911"></a><span class="lineno"> 911</span>  BOOST_TEST((dynamicBackendFactoryFunction != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00912"></a><span class="lineno"> 912</span> </div><div class="line"><a name="l00913"></a><span class="lineno"> 913</span>  <a class="code" href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">IBackendInternalUniquePtr</a> dynamicBackend = dynamicBackendFactoryFunction();</div><div class="line"><a name="l00914"></a><span class="lineno"> 914</span>  BOOST_TEST((dynamicBackend != <span class="keyword">nullptr</span>));</div><div class="line"><a name="l00915"></a><span class="lineno"> 915</span>  BOOST_TEST((dynamicBackend->GetId() == dynamicBackendId));</div><div class="line"><a name="l00916"></a><span class="lineno"> 916</span> }</div><div class="ttc" id="class_test_dynamic_backend_utils_xhtml_a304e5c5c5afc70590df8927e144fbaa5"><div class="ttname"><a href="class_test_dynamic_backend_utils.xhtml#a304e5c5c5afc70590df8927e144fbaa5">TestDynamicBackendUtils::RegisterDynamicBackendsImplTest</a></div><div class="ttdeci">static armnn::BackendIdSet RegisterDynamicBackendsImplTest(armnn::BackendRegistry &backendRegistry, const std::vector< armnn::DynamicBackendPtr > &dynamicBackends)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00082">DynamicBackendTests.hpp:82</a></div></div> |
| 1171 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_afc0c63ca8db8957b58826f6d7bd231b2"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#afc0c63ca8db8957b58826f6d7bd231b2">armnn::BackendRegistry::GetFactory</a></div><div class="ttdeci">FactoryFunction GetFactory(const BackendId &id) const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00048">BackendRegistry.cpp:48</a></div></div> |
| 1172 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a570cb1835ec73000a7954ba75257904f"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">armnn::BackendRegistry::GetBackendIds</a></div><div class="ttdeci">BackendIdSet GetBackendIds() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00066">BackendRegistry.cpp:66</a></div></div> |
| 1173 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1174 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1175 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a6789076aa25c6a10faeff1043359bda8"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a6789076aa25c6a10faeff1043359bda8">armnn::DynamicBackendUtils::IsBackendCompatible</a></div><div class="ttdeci">static bool IsBackendCompatible(const BackendVersion &backendVersion)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00051">DynamicBackendUtils.cpp:51</a></div></div> |
| 1176 | <div class="ttc" id="classarmnn_1_1_dynamic_backend_utils_xhtml_a42e250dfa19b9df3abdb273e1d35fa5b"><div class="ttname"><a href="classarmnn_1_1_dynamic_backend_utils.xhtml#a42e250dfa19b9df3abdb273e1d35fa5b">armnn::DynamicBackendUtils::CreateDynamicBackends</a></div><div class="ttdeci">static std::vector< DynamicBackendPtr > CreateDynamicBackends(const std::vector< std::string > &sharedObjects)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_utils_8cpp_source.xhtml#l00263">DynamicBackendUtils.cpp:263</a></div></div> |
| 1177 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_ad01ee94919c8ecfba3b9e4fe89ed6bbe"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#ad01ee94919c8ecfba3b9e4fe89ed6bbe">GetTestFilePath</a></div><div class="ttdeci">std::string GetTestFilePath(const std::string &directory, const std::string &fileName)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00152">DynamicBackendTests.hpp:152</a></div></div> |
| 1178 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1179 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1180 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1181 | <div class="ttc" id="structarmnn_1_1_backend_version_xhtml"><div class="ttname"><a href="structarmnn_1_1_backend_version.xhtml">armnn::BackendVersion</a></div><div class="ttdef"><b>Definition:</b> <a href="include_2armnn_2backends_2_i_backend_internal_8hpp_source.xhtml#l00032">IBackendInternal.hpp:32</a></div></div> |
| 1182 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1183 | <div class="ttc" id="namespacearmnn_xhtml_ade0af9dacaa52cafdd701bef2e901c77"><div class="ttname"><a href="namespacearmnn.xhtml#ade0af9dacaa52cafdd701bef2e901c77">armnn::IBackendInternalUniquePtr</a></div><div class="ttdeci">std::unique_ptr< IBackendInternal > IBackendInternalUniquePtr</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00018">BackendRegistry.hpp:18</a></div></div> |
| 1184 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 1185 | </div><!-- fragment --> |
| 1186 | </div> |
| 1187 | </div> |
| 1188 | <a id="a805c0fe55cb42d8507a081c7c7659408"></a> |
| 1189 | <h2 class="memtitle"><span class="permalink"><a href="#a805c0fe55cb42d8507a081c7c7659408">◆ </a></span>RuntimeDuplicateDynamicBackendsTestImpl()</h2> |
| 1190 | |
| 1191 | <div class="memitem"> |
| 1192 | <div class="memproto"> |
| 1193 | <table class="memname"> |
| 1194 | <tr> |
| 1195 | <td class="memname">void RuntimeDuplicateDynamicBackendsTestImpl </td> |
| 1196 | <td>(</td> |
| 1197 | <td class="paramname"></td><td>)</td> |
| 1198 | <td></td> |
| 1199 | </tr> |
| 1200 | </table> |
| 1201 | </div><div class="memdoc"> |
| 1202 | |
| 1203 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01265">1265</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1204 | |
| 1205 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1206 | <div class="fragment"><div class="line"><a name="l01266"></a><span class="lineno"> 1266</span> {</div><div class="line"><a name="l01267"></a><span class="lineno"> 1267</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l01268"></a><span class="lineno"> 1268</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l01269"></a><span class="lineno"> 1269</span> </div><div class="line"><a name="l01270"></a><span class="lineno"> 1270</span>  <span class="comment">// Swapping the backend registry storage for testing</span></div><div class="line"><a name="l01271"></a><span class="lineno"> 1271</span>  <a class="code" href="class_test_backend_registry.xhtml">TestBackendRegistry</a> testBackendRegistry;</div><div class="line"><a name="l01272"></a><span class="lineno"> 1272</span> </div><div class="line"><a name="l01273"></a><span class="lineno"> 1273</span>  <span class="comment">// This directory contains valid, invalid and duplicate backends</span></div><div class="line"><a name="l01274"></a><span class="lineno"> 1274</span>  std::string testDynamicBackendsSubDir6 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir6);</div><div class="line"><a name="l01275"></a><span class="lineno"> 1275</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir6));</div><div class="line"><a name="l01276"></a><span class="lineno"> 1276</span> </div><div class="line"><a name="l01277"></a><span class="lineno"> 1277</span>  <span class="comment">// Using the path override in CreationOptions to load some test dynamic backends</span></div><div class="line"><a name="l01278"></a><span class="lineno"> 1278</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> creationOptions;</div><div class="line"><a name="l01279"></a><span class="lineno"> 1279</span>  creationOptions.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = testDynamicBackendsSubDir6;</div><div class="line"><a name="l01280"></a><span class="lineno"> 1280</span>  <a class="code" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">IRuntimePtr</a> runtime = <a class="code" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">IRuntime::Create</a>(creationOptions);</div><div class="line"><a name="l01281"></a><span class="lineno"> 1281</span> </div><div class="line"><a name="l01282"></a><span class="lineno"> 1282</span>  std::vector<BackendId> expectedRegisteredbackendIds</div><div class="line"><a name="l01283"></a><span class="lineno"> 1283</span>  {</div><div class="line"><a name="l01284"></a><span class="lineno"> 1284</span>  <span class="stringliteral">"TestValid2"</span>,</div><div class="line"><a name="l01285"></a><span class="lineno"> 1285</span>  <span class="stringliteral">"TestValid5"</span></div><div class="line"><a name="l01286"></a><span class="lineno"> 1286</span>  };</div><div class="line"><a name="l01287"></a><span class="lineno"> 1287</span> </div><div class="line"><a name="l01288"></a><span class="lineno"> 1288</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a>& backendRegistry = <a class="code" href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>();</div><div class="line"><a name="l01289"></a><span class="lineno"> 1289</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01290"></a><span class="lineno"> 1290</span> </div><div class="line"><a name="l01291"></a><span class="lineno"> 1291</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> backendIds = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">GetBackendIds</a>();</div><div class="line"><a name="l01292"></a><span class="lineno"> 1292</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& expectedRegisteredbackendId : expectedRegisteredbackendIds)</div><div class="line"><a name="l01293"></a><span class="lineno"> 1293</span>  {</div><div class="line"><a name="l01294"></a><span class="lineno"> 1294</span>  BOOST_TEST((backendIds.find(expectedRegisteredbackendId) != backendIds.end()));</div><div class="line"><a name="l01295"></a><span class="lineno"> 1295</span>  }</div><div class="line"><a name="l01296"></a><span class="lineno"> 1296</span> </div><div class="line"><a name="l01297"></a><span class="lineno"> 1297</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_device_spec.xhtml">DeviceSpec</a>& deviceSpec = *boost::polymorphic_downcast<const DeviceSpec*>(&runtime->GetDeviceSpec());</div><div class="line"><a name="l01298"></a><span class="lineno"> 1298</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> supportedBackendIds = deviceSpec.<a class="code" href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">GetSupportedBackends</a>();</div><div class="line"><a name="l01299"></a><span class="lineno"> 1299</span>  BOOST_TEST(supportedBackendIds.size() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01300"></a><span class="lineno"> 1300</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& expectedRegisteredbackendId : expectedRegisteredbackendIds)</div><div class="line"><a name="l01301"></a><span class="lineno"> 1301</span>  {</div><div class="line"><a name="l01302"></a><span class="lineno"> 1302</span>  BOOST_TEST((supportedBackendIds.find(expectedRegisteredbackendId) != supportedBackendIds.end()));</div><div class="line"><a name="l01303"></a><span class="lineno"> 1303</span>  }</div><div class="line"><a name="l01304"></a><span class="lineno"> 1304</span> }</div><div class="ttc" id="classarmnn_1_1_i_runtime_xhtml_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00032">Runtime.cpp:32</a></div></div> |
| 1207 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a570cb1835ec73000a7954ba75257904f"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">armnn::BackendRegistry::GetBackendIds</a></div><div class="ttdeci">BackendIdSet GetBackendIds() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00066">BackendRegistry.cpp:66</a></div></div> |
| 1208 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1209 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1210 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml">armnn::DeviceSpec</a></div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00014">DeviceSpec.hpp:14</a></div></div> |
| 1211 | <div class="ttc" id="namespacearmnn_xhtml_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00024">IRuntime.hpp:24</a></div></div> |
| 1212 | <div class="ttc" id="namespacearmnn_xhtml_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00013">BackendRegistry.cpp:13</a></div></div> |
| 1213 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1214 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1215 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1216 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1217 | <div class="ttc" id="class_test_backend_registry_xhtml"><div class="ttname"><a href="class_test_backend_registry.xhtml">TestBackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00091">DynamicBackendTests.hpp:91</a></div></div> |
| 1218 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> |
| 1219 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">armnn::IRuntime::CreationOptions::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdoc">Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00058">IRuntime.hpp:58</a></div></div> |
| 1220 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml_a89d4c29e22db837f787e2171b8a71892"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">armnn::DeviceSpec::GetSupportedBackends</a></div><div class="ttdeci">virtual const BackendIdSet & GetSupportedBackends() const override</div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec.hpp:25</a></div></div> |
| 1221 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 1222 | </div><!-- fragment --> |
| 1223 | </div> |
| 1224 | </div> |
| 1225 | <a id="a2a3715f6c83f6dd0c62035ecd2dbb386"></a> |
| 1226 | <h2 class="memtitle"><span class="permalink"><a href="#a2a3715f6c83f6dd0c62035ecd2dbb386">◆ </a></span>RuntimeDynamicBackendsTestImpl()</h2> |
| 1227 | |
| 1228 | <div class="memitem"> |
| 1229 | <div class="memproto"> |
| 1230 | <table class="memname"> |
| 1231 | <tr> |
| 1232 | <td class="memname">void RuntimeDynamicBackendsTestImpl </td> |
| 1233 | <td>(</td> |
| 1234 | <td class="paramname"></td><td>)</td> |
| 1235 | <td></td> |
| 1236 | </tr> |
| 1237 | </table> |
| 1238 | </div><div class="memdoc"> |
| 1239 | |
| 1240 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01224">1224</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1241 | |
| 1242 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1243 | <div class="fragment"><div class="line"><a name="l01225"></a><span class="lineno"> 1225</span> {</div><div class="line"><a name="l01226"></a><span class="lineno"> 1226</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l01227"></a><span class="lineno"> 1227</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l01228"></a><span class="lineno"> 1228</span> </div><div class="line"><a name="l01229"></a><span class="lineno"> 1229</span>  <span class="comment">// Swapping the backend registry storage for testing</span></div><div class="line"><a name="l01230"></a><span class="lineno"> 1230</span>  <a class="code" href="class_test_backend_registry.xhtml">TestBackendRegistry</a> testBackendRegistry;</div><div class="line"><a name="l01231"></a><span class="lineno"> 1231</span> </div><div class="line"><a name="l01232"></a><span class="lineno"> 1232</span>  <span class="comment">// This directory contains valid and invalid backends</span></div><div class="line"><a name="l01233"></a><span class="lineno"> 1233</span>  std::string testDynamicBackendsSubDir5 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir5);</div><div class="line"><a name="l01234"></a><span class="lineno"> 1234</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir5));</div><div class="line"><a name="l01235"></a><span class="lineno"> 1235</span> </div><div class="line"><a name="l01236"></a><span class="lineno"> 1236</span>  <span class="comment">// Using the path override in CreationOptions to load some test dynamic backends</span></div><div class="line"><a name="l01237"></a><span class="lineno"> 1237</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> creationOptions;</div><div class="line"><a name="l01238"></a><span class="lineno"> 1238</span>  creationOptions.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = testDynamicBackendsSubDir5;</div><div class="line"><a name="l01239"></a><span class="lineno"> 1239</span>  <a class="code" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">IRuntimePtr</a> runtime = <a class="code" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">IRuntime::Create</a>(creationOptions);</div><div class="line"><a name="l01240"></a><span class="lineno"> 1240</span> </div><div class="line"><a name="l01241"></a><span class="lineno"> 1241</span>  std::vector<BackendId> expectedRegisteredbackendIds</div><div class="line"><a name="l01242"></a><span class="lineno"> 1242</span>  {</div><div class="line"><a name="l01243"></a><span class="lineno"> 1243</span>  <span class="stringliteral">"TestValid2"</span>,</div><div class="line"><a name="l01244"></a><span class="lineno"> 1244</span>  <span class="stringliteral">"TestValid3"</span></div><div class="line"><a name="l01245"></a><span class="lineno"> 1245</span>  };</div><div class="line"><a name="l01246"></a><span class="lineno"> 1246</span> </div><div class="line"><a name="l01247"></a><span class="lineno"> 1247</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a>& backendRegistry = <a class="code" href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>();</div><div class="line"><a name="l01248"></a><span class="lineno"> 1248</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01249"></a><span class="lineno"> 1249</span> </div><div class="line"><a name="l01250"></a><span class="lineno"> 1250</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> backendIds = backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">GetBackendIds</a>();</div><div class="line"><a name="l01251"></a><span class="lineno"> 1251</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& expectedRegisteredbackendId : expectedRegisteredbackendIds)</div><div class="line"><a name="l01252"></a><span class="lineno"> 1252</span>  {</div><div class="line"><a name="l01253"></a><span class="lineno"> 1253</span>  BOOST_TEST((backendIds.find(expectedRegisteredbackendId) != backendIds.end()));</div><div class="line"><a name="l01254"></a><span class="lineno"> 1254</span>  }</div><div class="line"><a name="l01255"></a><span class="lineno"> 1255</span> </div><div class="line"><a name="l01256"></a><span class="lineno"> 1256</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_device_spec.xhtml">DeviceSpec</a>& deviceSpec = *boost::polymorphic_downcast<const DeviceSpec*>(&runtime->GetDeviceSpec());</div><div class="line"><a name="l01257"></a><span class="lineno"> 1257</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> supportedBackendIds = deviceSpec.<a class="code" href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">GetSupportedBackends</a>();</div><div class="line"><a name="l01258"></a><span class="lineno"> 1258</span>  BOOST_TEST(supportedBackendIds.size() == expectedRegisteredbackendIds.size());</div><div class="line"><a name="l01259"></a><span class="lineno"> 1259</span>  <span class="keywordflow">for</span> (<span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_id.xhtml">BackendId</a>& expectedRegisteredbackendId : expectedRegisteredbackendIds)</div><div class="line"><a name="l01260"></a><span class="lineno"> 1260</span>  {</div><div class="line"><a name="l01261"></a><span class="lineno"> 1261</span>  BOOST_TEST((supportedBackendIds.find(expectedRegisteredbackendId) != supportedBackendIds.end()));</div><div class="line"><a name="l01262"></a><span class="lineno"> 1262</span>  }</div><div class="line"><a name="l01263"></a><span class="lineno"> 1263</span> }</div><div class="ttc" id="classarmnn_1_1_i_runtime_xhtml_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00032">Runtime.cpp:32</a></div></div> |
| 1244 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a570cb1835ec73000a7954ba75257904f"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a570cb1835ec73000a7954ba75257904f">armnn::BackendRegistry::GetBackendIds</a></div><div class="ttdeci">BackendIdSet GetBackendIds() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00066">BackendRegistry.cpp:66</a></div></div> |
| 1245 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1246 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1247 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml">armnn::DeviceSpec</a></div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00014">DeviceSpec.hpp:14</a></div></div> |
| 1248 | <div class="ttc" id="namespacearmnn_xhtml_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00024">IRuntime.hpp:24</a></div></div> |
| 1249 | <div class="ttc" id="namespacearmnn_xhtml_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00013">BackendRegistry.cpp:13</a></div></div> |
| 1250 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1251 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1252 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1253 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1254 | <div class="ttc" id="class_test_backend_registry_xhtml"><div class="ttname"><a href="class_test_backend_registry.xhtml">TestBackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00091">DynamicBackendTests.hpp:91</a></div></div> |
| 1255 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> |
| 1256 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">armnn::IRuntime::CreationOptions::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdoc">Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00058">IRuntime.hpp:58</a></div></div> |
| 1257 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml_a89d4c29e22db837f787e2171b8a71892"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">armnn::DeviceSpec::GetSupportedBackends</a></div><div class="ttdeci">virtual const BackendIdSet & GetSupportedBackends() const override</div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec.hpp:25</a></div></div> |
| 1258 | <div class="ttc" id="classarmnn_1_1_backend_id_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_id.xhtml">armnn::BackendId</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00075">BackendId.hpp:75</a></div></div> |
| 1259 | </div><!-- fragment --> |
| 1260 | </div> |
| 1261 | </div> |
| 1262 | <a id="a4967976a2407f1e67482235953328fba"></a> |
| 1263 | <h2 class="memtitle"><span class="permalink"><a href="#a4967976a2407f1e67482235953328fba">◆ </a></span>RuntimeEmptyTestImpl()</h2> |
| 1264 | |
| 1265 | <div class="memitem"> |
| 1266 | <div class="memproto"> |
| 1267 | <table class="memname"> |
| 1268 | <tr> |
| 1269 | <td class="memname">void RuntimeEmptyTestImpl </td> |
| 1270 | <td>(</td> |
| 1271 | <td class="paramname"></td><td>)</td> |
| 1272 | <td></td> |
| 1273 | </tr> |
| 1274 | </table> |
| 1275 | </div><div class="memdoc"> |
| 1276 | |
| 1277 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01202">1202</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1278 | |
| 1279 | <p class="reference">References <a class="el" href="_backend_registry_8cpp_source.xhtml#l00013">armnn::BackendRegistryInstance()</a>, <a class="el" href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec::GetSupportedBackends()</a>, and <a class="el" href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry::Size()</a>.</p> |
| 1280 | <div class="fragment"><div class="line"><a name="l01203"></a><span class="lineno"> 1203</span> {</div><div class="line"><a name="l01204"></a><span class="lineno"> 1204</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l01205"></a><span class="lineno"> 1205</span> </div><div class="line"><a name="l01206"></a><span class="lineno"> 1206</span>  <span class="comment">// Swapping the backend registry storage for testing</span></div><div class="line"><a name="l01207"></a><span class="lineno"> 1207</span>  <a class="code" href="class_test_backend_registry.xhtml">TestBackendRegistry</a> testBackendRegistry;</div><div class="line"><a name="l01208"></a><span class="lineno"> 1208</span> </div><div class="line"><a name="l01209"></a><span class="lineno"> 1209</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a>& backendRegistry = <a class="code" href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>();</div><div class="line"><a name="l01210"></a><span class="lineno"> 1210</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01211"></a><span class="lineno"> 1211</span> </div><div class="line"><a name="l01212"></a><span class="lineno"> 1212</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> creationOptions;</div><div class="line"><a name="l01213"></a><span class="lineno"> 1213</span>  <a class="code" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">IRuntimePtr</a> runtime = <a class="code" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">IRuntime::Create</a>(creationOptions);</div><div class="line"><a name="l01214"></a><span class="lineno"> 1214</span> </div><div class="line"><a name="l01215"></a><span class="lineno"> 1215</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_device_spec.xhtml">DeviceSpec</a>& deviceSpec = *boost::polymorphic_downcast<const DeviceSpec*>(&runtime->GetDeviceSpec());</div><div class="line"><a name="l01216"></a><span class="lineno"> 1216</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> supportedBackendIds = deviceSpec.<a class="code" href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">GetSupportedBackends</a>();</div><div class="line"><a name="l01217"></a><span class="lineno"> 1217</span>  BOOST_TEST(supportedBackendIds.empty());</div><div class="line"><a name="l01218"></a><span class="lineno"> 1218</span> </div><div class="line"><a name="l01219"></a><span class="lineno"> 1219</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01220"></a><span class="lineno"> 1220</span> }</div><div class="ttc" id="classarmnn_1_1_i_runtime_xhtml_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00032">Runtime.cpp:32</a></div></div> |
| 1281 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1282 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml">armnn::DeviceSpec</a></div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00014">DeviceSpec.hpp:14</a></div></div> |
| 1283 | <div class="ttc" id="namespacearmnn_xhtml_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00024">IRuntime.hpp:24</a></div></div> |
| 1284 | <div class="ttc" id="namespacearmnn_xhtml_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00013">BackendRegistry.cpp:13</a></div></div> |
| 1285 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1286 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1287 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1288 | <div class="ttc" id="class_test_backend_registry_xhtml"><div class="ttname"><a href="class_test_backend_registry.xhtml">TestBackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00091">DynamicBackendTests.hpp:91</a></div></div> |
| 1289 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> |
| 1290 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml_a89d4c29e22db837f787e2171b8a71892"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">armnn::DeviceSpec::GetSupportedBackends</a></div><div class="ttdeci">virtual const BackendIdSet & GetSupportedBackends() const override</div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec.hpp:25</a></div></div> |
| 1291 | </div><!-- fragment --> |
| 1292 | </div> |
| 1293 | </div> |
| 1294 | <a id="afe972850015352cf8ae3e073ac31abcd"></a> |
| 1295 | <h2 class="memtitle"><span class="permalink"><a href="#afe972850015352cf8ae3e073ac31abcd">◆ </a></span>RuntimeInvalidDynamicBackendsTestImpl()</h2> |
| 1296 | |
| 1297 | <div class="memitem"> |
| 1298 | <div class="memproto"> |
| 1299 | <table class="memname"> |
| 1300 | <tr> |
| 1301 | <td class="memname">void RuntimeInvalidDynamicBackendsTestImpl </td> |
| 1302 | <td>(</td> |
| 1303 | <td class="paramname"></td><td>)</td> |
| 1304 | <td></td> |
| 1305 | </tr> |
| 1306 | </table> |
| 1307 | </div><div class="memdoc"> |
| 1308 | |
| 1309 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01306">1306</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1310 | |
| 1311 | <p class="reference">References <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>.</p> |
| 1312 | <div class="fragment"><div class="line"><a name="l01307"></a><span class="lineno"> 1307</span> {</div><div class="line"><a name="l01308"></a><span class="lineno"> 1308</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l01309"></a><span class="lineno"> 1309</span>  <span class="keyword">using namespace </span>boost::filesystem;</div><div class="line"><a name="l01310"></a><span class="lineno"> 1310</span> </div><div class="line"><a name="l01311"></a><span class="lineno"> 1311</span>  <span class="comment">// Swapping the backend registry storage for testing</span></div><div class="line"><a name="l01312"></a><span class="lineno"> 1312</span>  <a class="code" href="class_test_backend_registry.xhtml">TestBackendRegistry</a> testBackendRegistry;</div><div class="line"><a name="l01313"></a><span class="lineno"> 1313</span> </div><div class="line"><a name="l01314"></a><span class="lineno"> 1314</span>  <span class="comment">// This directory contains only invalid backends</span></div><div class="line"><a name="l01315"></a><span class="lineno"> 1315</span>  std::string testDynamicBackendsSubDir9 = <a class="code" href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a>(g_TestDynamicBackendsSubDir9);</div><div class="line"><a name="l01316"></a><span class="lineno"> 1316</span>  <a class="code" href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a>(exists(testDynamicBackendsSubDir9));</div><div class="line"><a name="l01317"></a><span class="lineno"> 1317</span> </div><div class="line"><a name="l01318"></a><span class="lineno"> 1318</span>  <span class="comment">// Using the path override in CreationOptions to load some test dynamic backends</span></div><div class="line"><a name="l01319"></a><span class="lineno"> 1319</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> creationOptions;</div><div class="line"><a name="l01320"></a><span class="lineno"> 1320</span>  creationOptions.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = testDynamicBackendsSubDir9;</div><div class="line"><a name="l01321"></a><span class="lineno"> 1321</span>  <a class="code" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">IRuntimePtr</a> runtime = <a class="code" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">IRuntime::Create</a>(creationOptions);</div><div class="line"><a name="l01322"></a><span class="lineno"> 1322</span> </div><div class="line"><a name="l01323"></a><span class="lineno"> 1323</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a>& backendRegistry = <a class="code" href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>();</div><div class="line"><a name="l01324"></a><span class="lineno"> 1324</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01325"></a><span class="lineno"> 1325</span> </div><div class="line"><a name="l01326"></a><span class="lineno"> 1326</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_device_spec.xhtml">DeviceSpec</a>& deviceSpec = *boost::polymorphic_downcast<const DeviceSpec*>(&runtime->GetDeviceSpec());</div><div class="line"><a name="l01327"></a><span class="lineno"> 1327</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> supportedBackendIds = deviceSpec.<a class="code" href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">GetSupportedBackends</a>();</div><div class="line"><a name="l01328"></a><span class="lineno"> 1328</span>  BOOST_TEST(supportedBackendIds.empty());</div><div class="line"><a name="l01329"></a><span class="lineno"> 1329</span> }</div><div class="ttc" id="classarmnn_1_1_i_runtime_xhtml_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00032">Runtime.cpp:32</a></div></div> |
| 1313 | <div class="ttc" id="_dynamic_backend_tests_8hpp_xhtml_aa21b882f38be6940c5c0515db9b69508"><div class="ttname"><a href="_dynamic_backend_tests_8hpp.xhtml#aa21b882f38be6940c5c0515db9b69508">GetTestSubDirectory</a></div><div class="ttdeci">std::string GetTestSubDirectory(const std::string &subdir)</div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">DynamicBackendTests.hpp:129</a></div></div> |
| 1314 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1315 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml">armnn::DeviceSpec</a></div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00014">DeviceSpec.hpp:14</a></div></div> |
| 1316 | <div class="ttc" id="namespacearmnn_xhtml_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00024">IRuntime.hpp:24</a></div></div> |
| 1317 | <div class="ttc" id="namespacearmnn_xhtml_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00013">BackendRegistry.cpp:13</a></div></div> |
| 1318 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1319 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1320 | <div class="ttc" id="_file_only_profiling_decorator_tests_8cpp_xhtml_a0c262ba6f6c189a2d092d127c1b7627b"><div class="ttname"><a href="_file_only_profiling_decorator_tests_8cpp.xhtml#a0c262ba6f6c189a2d092d127c1b7627b">BOOST_CHECK</a></div><div class="ttdeci">BOOST_CHECK(profilingService.GetCurrentState()==ProfilingState::WaitingForAck)</div></div> |
| 1321 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1322 | <div class="ttc" id="class_test_backend_registry_xhtml"><div class="ttname"><a href="class_test_backend_registry.xhtml">TestBackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00091">DynamicBackendTests.hpp:91</a></div></div> |
| 1323 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> |
| 1324 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">armnn::IRuntime::CreationOptions::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdoc">Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00058">IRuntime.hpp:58</a></div></div> |
| 1325 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml_a89d4c29e22db837f787e2171b8a71892"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">armnn::DeviceSpec::GetSupportedBackends</a></div><div class="ttdeci">virtual const BackendIdSet & GetSupportedBackends() const override</div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec.hpp:25</a></div></div> |
| 1326 | </div><!-- fragment --> |
| 1327 | </div> |
| 1328 | </div> |
| 1329 | <a id="a05f580df8c6c039d41d42c838cd97014"></a> |
| 1330 | <h2 class="memtitle"><span class="permalink"><a href="#a05f580df8c6c039d41d42c838cd97014">◆ </a></span>RuntimeInvalidOverridePathTestImpl()</h2> |
| 1331 | |
| 1332 | <div class="memitem"> |
| 1333 | <div class="memproto"> |
| 1334 | <table class="memname"> |
| 1335 | <tr> |
| 1336 | <td class="memname">void RuntimeInvalidOverridePathTestImpl </td> |
| 1337 | <td>(</td> |
| 1338 | <td class="paramname"></td><td>)</td> |
| 1339 | <td></td> |
| 1340 | </tr> |
| 1341 | </table> |
| 1342 | </div><div class="memdoc"> |
| 1343 | |
| 1344 | <p class="definition">Definition at line <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l01331">1331</a> of file <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml">DynamicBackendTests.hpp</a>.</p> |
| 1345 | |
| 1346 | <p class="reference">References <a class="el" href="_backend_registry_8cpp_source.xhtml#l00013">armnn::BackendRegistryInstance()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00124">GetDynamicBackendsBasePath()</a>, <a class="el" href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec::GetSupportedBackends()</a>, <a class="el" href="_dynamic_backend_tests_8hpp_source.xhtml#l00129">GetTestSubDirectory()</a>, <a class="el" href="_i_runtime_8hpp_source.xhtml#l00058">IRuntime::CreationOptions::m_DynamicBackendsPath</a>, and <a class="el" href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry::Size()</a>.</p> |
| 1347 | <div class="fragment"><div class="line"><a name="l01332"></a><span class="lineno"> 1332</span> {</div><div class="line"><a name="l01333"></a><span class="lineno"> 1333</span>  <span class="keyword">using namespace </span><a class="code" href="namespacearmnn.xhtml">armnn</a>;</div><div class="line"><a name="l01334"></a><span class="lineno"> 1334</span> </div><div class="line"><a name="l01335"></a><span class="lineno"> 1335</span>  <span class="comment">// Swapping the backend registry storage for testing</span></div><div class="line"><a name="l01336"></a><span class="lineno"> 1336</span>  <a class="code" href="class_test_backend_registry.xhtml">TestBackendRegistry</a> testBackendRegistry;</div><div class="line"><a name="l01337"></a><span class="lineno"> 1337</span> </div><div class="line"><a name="l01338"></a><span class="lineno"> 1338</span>  <span class="comment">// Using the path override in CreationOptions to load some test dynamic backends</span></div><div class="line"><a name="l01339"></a><span class="lineno"> 1339</span>  <a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">IRuntime::CreationOptions</a> creationOptions;</div><div class="line"><a name="l01340"></a><span class="lineno"> 1340</span>  creationOptions.<a class="code" href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">m_DynamicBackendsPath</a> = <span class="stringliteral">"InvalidPath"</span>;</div><div class="line"><a name="l01341"></a><span class="lineno"> 1341</span>  <a class="code" href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">IRuntimePtr</a> runtime = <a class="code" href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">IRuntime::Create</a>(creationOptions);</div><div class="line"><a name="l01342"></a><span class="lineno"> 1342</span> </div><div class="line"><a name="l01343"></a><span class="lineno"> 1343</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_backend_registry.xhtml">BackendRegistry</a>& backendRegistry = <a class="code" href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">BackendRegistryInstance</a>();</div><div class="line"><a name="l01344"></a><span class="lineno"> 1344</span>  BOOST_TEST(backendRegistry.<a class="code" href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">Size</a>() == 0);</div><div class="line"><a name="l01345"></a><span class="lineno"> 1345</span> </div><div class="line"><a name="l01346"></a><span class="lineno"> 1346</span>  <span class="keyword">const</span> <a class="code" href="classarmnn_1_1_device_spec.xhtml">DeviceSpec</a>& deviceSpec = *boost::polymorphic_downcast<const DeviceSpec*>(&runtime->GetDeviceSpec());</div><div class="line"><a name="l01347"></a><span class="lineno"> 1347</span>  <a class="code" href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">BackendIdSet</a> supportedBackendIds = deviceSpec.<a class="code" href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">GetSupportedBackends</a>();</div><div class="line"><a name="l01348"></a><span class="lineno"> 1348</span>  BOOST_TEST(supportedBackendIds.empty());</div><div class="line"><a name="l01349"></a><span class="lineno"> 1349</span> }</div><div class="ttc" id="classarmnn_1_1_i_runtime_xhtml_ad44ecd3700748dc30dc4bbe34ba5bde7"><div class="ttname"><a href="classarmnn_1_1_i_runtime.xhtml#ad44ecd3700748dc30dc4bbe34ba5bde7">armnn::IRuntime::Create</a></div><div class="ttdeci">static IRuntimePtr Create(const CreationOptions &options)</div><div class="ttdef"><b>Definition:</b> <a href="_runtime_8cpp_source.xhtml#l00032">Runtime.cpp:32</a></div></div> |
| 1348 | <div class="ttc" id="namespacearmnn_xhtml_a1854d9cda81304325664363c1fd0fb27"><div class="ttname"><a href="namespacearmnn.xhtml#a1854d9cda81304325664363c1fd0fb27">armnn::BackendIdSet</a></div><div class="ttdeci">std::unordered_set< BackendId > BackendIdSet</div><div class="ttdef"><b>Definition:</b> <a href="_backend_id_8hpp_source.xhtml#l00191">BackendId.hpp:191</a></div></div> |
| 1349 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml">armnn::DeviceSpec</a></div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00014">DeviceSpec.hpp:14</a></div></div> |
| 1350 | <div class="ttc" id="namespacearmnn_xhtml_a150468a02bd7b2d2d061c4aaaee939f0"><div class="ttname"><a href="namespacearmnn.xhtml#a150468a02bd7b2d2d061c4aaaee939f0">armnn::IRuntimePtr</a></div><div class="ttdeci">std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00024">IRuntime.hpp:24</a></div></div> |
| 1351 | <div class="ttc" id="namespacearmnn_xhtml_ac2807505b850738bc8a1991ce669dd47"><div class="ttname"><a href="namespacearmnn.xhtml#ac2807505b850738bc8a1991ce669dd47">armnn::BackendRegistryInstance</a></div><div class="ttdeci">BackendRegistry & BackendRegistryInstance()</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00013">BackendRegistry.cpp:13</a></div></div> |
| 1352 | <div class="ttc" id="namespacearmnn_xhtml"><div class="ttname"><a href="namespacearmnn.xhtml">armnn</a></div><div class="ttdoc">Copyright (c) 2020 ARM Limited. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00025">00_introduction.dox:25</a></div></div> |
| 1353 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml">armnn::BackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8hpp_source.xhtml#l00020">BackendRegistry.hpp:20</a></div></div> |
| 1354 | <div class="ttc" id="classarmnn_1_1_backend_registry_xhtml_a58f4b9e873b7c1c7d512bd9f7d1489d8"><div class="ttname"><a href="classarmnn_1_1_backend_registry.xhtml#a58f4b9e873b7c1c7d512bd9f7d1489d8">armnn::BackendRegistry::Size</a></div><div class="ttdeci">size_t Size() const</div><div class="ttdef"><b>Definition:</b> <a href="_backend_registry_8cpp_source.xhtml#l00061">BackendRegistry.cpp:61</a></div></div> |
| 1355 | <div class="ttc" id="class_test_backend_registry_xhtml"><div class="ttname"><a href="class_test_backend_registry.xhtml">TestBackendRegistry</a></div><div class="ttdef"><b>Definition:</b> <a href="_dynamic_backend_tests_8hpp_source.xhtml#l00091">DynamicBackendTests.hpp:91</a></div></div> |
| 1356 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml">armnn::IRuntime::CreationOptions</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00041">IRuntime.hpp:41</a></div></div> |
| 1357 | <div class="ttc" id="structarmnn_1_1_i_runtime_1_1_creation_options_xhtml_ae43cf4b5df0068ee6a9151c98947248b"><div class="ttname"><a href="structarmnn_1_1_i_runtime_1_1_creation_options.xhtml#ae43cf4b5df0068ee6a9151c98947248b">armnn::IRuntime::CreationOptions::m_DynamicBackendsPath</a></div><div class="ttdeci">std::string m_DynamicBackendsPath</div><div class="ttdoc">Setting this value will override the paths set by the DYNAMIC_BACKEND_PATHS compiler directive Only a...</div><div class="ttdef"><b>Definition:</b> <a href="_i_runtime_8hpp_source.xhtml#l00058">IRuntime.hpp:58</a></div></div> |
| 1358 | <div class="ttc" id="classarmnn_1_1_device_spec_xhtml_a89d4c29e22db837f787e2171b8a71892"><div class="ttname"><a href="classarmnn_1_1_device_spec.xhtml#a89d4c29e22db837f787e2171b8a71892">armnn::DeviceSpec::GetSupportedBackends</a></div><div class="ttdeci">virtual const BackendIdSet & GetSupportedBackends() const override</div><div class="ttdef"><b>Definition:</b> <a href="_device_spec_8hpp_source.xhtml#l00025">DeviceSpec.hpp:25</a></div></div> |
| 1359 | </div><!-- fragment --> |
| 1360 | </div> |
| 1361 | </div> |
| 1362 | </div><!-- contents --> |
| 1363 | </div><!-- doc-content --> |
| 1364 | <!-- start footer part --> |
| 1365 | <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> |
| 1366 | <ul> |
| 1367 | <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.xhtml">src</a></li><li class="navelem"><a class="el" href="dir_0f3cdec46afbc61a1ded8e1687c9c9a0.xhtml">backends</a></li><li class="navelem"><a class="el" href="dir_797a213d7d01b98ef12d53b0820ea64e.xhtml">backendsCommon</a></li><li class="navelem"><a class="el" href="dir_28bfe507f7e135bdae07c2a6b7f66696.xhtml">test</a></li><li class="navelem"><a class="el" href="_dynamic_backend_tests_8hpp.xhtml">DynamicBackendTests.hpp</a></li> |
| 1368 | <li class="footer">Generated on Fri Mar 13 2020 16:09:14 for ArmNN by |
| 1369 | <a href="http://www.doxygen.org/index.html"> |
| 1370 | <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> |
| 1371 | </ul> |
| 1372 | </div> |
| 1373 | </body> |
| 1374 | </html> |