From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_cl_runtime_tests_8cpp.xhtml | 195 +++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 21.02/_cl_runtime_tests_8cpp.xhtml (limited to '21.02/_cl_runtime_tests_8cpp.xhtml') diff --git a/21.02/_cl_runtime_tests_8cpp.xhtml b/21.02/_cl_runtime_tests_8cpp.xhtml new file mode 100644 index 0000000000..d5a48898d6 --- /dev/null +++ b/21.02/_cl_runtime_tests_8cpp.xhtml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + +ArmNN: src/backends/cl/test/ClRuntimeTests.cpp File Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ClRuntimeTests.cpp File Reference
+
+
+
#include <test/RuntimeTests.hpp>
+#include <LeakChecking.hpp>
+#include <backendsCommon/test/RuntimeTestImpl.hpp>
+#include <test/ProfilingTestUtils.hpp>
+#include <armnn/utility/IgnoreUnused.hpp>
+#include <boost/test/unit_test.hpp>
+
+

Go to the source code of this file.

+ + + + + + +

+Functions

 BOOST_AUTO_TEST_CASE (RuntimeValidateGpuDeviceSupportLayerNoFallback)
 
 BOOST_AUTO_TEST_CASE (ProfilingPostOptimisationStructureGpuAcc)
 
+

Function Documentation

+ +

◆ BOOST_AUTO_TEST_CASE() [1/2]

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (RuntimeValidateGpuDeviceSupportLayerNoFallback )
+
+ +

Definition at line 22 of file ClRuntimeTests.cpp.

+ +

References ARMNN_BYTES_LEAKED_IN_SCOPE, ARMNN_LEAK_CHECKER_IS_ACTIVE, ARMNN_NO_LEAKS_IN_SCOPE, ARMNN_OBJECTS_LEAKED_IN_SCOPE, ARMNN_SCOPED_LEAK_CHECKER, IOutputSlot::Connect(), IRuntime::Create(), INetwork::Create(), armnn::Float32, IConnectableLayer::GetInputSlot(), IConnectableLayer::GetOutputSlot(), armnn::GpuAcc, armnn::IgnoreUnused(), armnn::Optimize(), armnn::RuntimeLoadedNetworksReserve(), IOutputSlot::SetTensorInfo(), and armnn::Success.

+
23 {
24  // build up the structure of the network
26 
27  armnn::IConnectableLayer* input = net->AddInputLayer(0);
28  armnn::IConnectableLayer* output = net->AddOutputLayer(0);
29 
30  input->GetOutputSlot(0).Connect(output->GetInputSlot(0));
32 
35 
36  std::vector<armnn::BackendId> backends = { armnn::Compute::GpuAcc };
37  armnn::IOptimizedNetworkPtr optNet = armnn::Optimize(*net, backends, runtime->GetDeviceSpec());
38  BOOST_CHECK(optNet);
39 
40  // Load it into the runtime. It should success.
41  armnn::NetworkId netId;
42  BOOST_TEST(runtime->LoadNetwork(netId, std::move(optNet)) == armnn::Status::Success);
43 }
static IRuntimePtr Create(const CreationOptions &options)
Definition: Runtime.cpp:37
+
Interface for a layer that is connectable to other layers via InputSlots and OutputSlots.
Definition: INetwork.hpp:62
+ +
std::unique_ptr< IRuntime, void(*)(IRuntime *runtime)> IRuntimePtr
Definition: IRuntime.hpp:26
+
int NetworkId
Definition: IRuntime.hpp:20
+
virtual void SetTensorInfo(const TensorInfo &tensorInfo)=0
+ +
IOptimizedNetworkPtr Optimize(const INetwork &network, const std::vector< BackendId > &backendPreferences, const IDeviceSpec &deviceSpec, const OptimizerOptions &options=OptimizerOptions(), Optional< std::vector< std::string > &> messages=EmptyOptional())
Create an optimized version of the network.
Definition: Network.cpp:1502
+
std::unique_ptr< IOptimizedNetwork, void(*)(IOptimizedNetwork *network)> IOptimizedNetworkPtr
Definition: INetwork.hpp:174
+
GPU Execution: OpenCL: ArmCompute.
+ +
virtual const IInputSlot & GetInputSlot(unsigned int index) const =0
Get a const input slot handle by slot index.
+ +
virtual const IOutputSlot & GetOutputSlot(unsigned int index) const =0
Get the const output slot handle by slot index.
+
std::unique_ptr< INetwork, void(*)(INetwork *network)> INetworkPtr
Definition: INetwork.hpp:173
+
virtual int Connect(IInputSlot &destination)=0
+
static INetworkPtr Create(NetworkOptions networkOptions={})
Definition: Network.cpp:510
+
+
+
+ +

◆ BOOST_AUTO_TEST_CASE() [2/2]

+ +
+
+ + + + + + + + +
BOOST_AUTO_TEST_CASE (ProfilingPostOptimisationStructureGpuAcc )
+
+ +

Definition at line 152 of file ClRuntimeTests.cpp.

+ +

References BOOST_AUTO_TEST_SUITE_END(), armnn::GpuAcc, and VerifyPostOptimisationStructureTestImpl().

+
153 {
155 }
void VerifyPostOptimisationStructureTestImpl(armnn::BackendId backendId)
+
GPU Execution: OpenCL: ArmCompute.
+
+
+
+
+
+ + + + -- cgit v1.2.1