ArmNN
 24.02
ClWorkloadUtils.hpp File Reference
#include <BFloat16.hpp>
#include <Half.hpp>
#include <aclCommon/ArmComputeTensorUtils.hpp>
#include <cl/OpenClTimer.hpp>
#include <armnn/backends/TensorHandle.hpp>
#include <armnn/Utils.hpp>
#include <arm_compute/runtime/CL/CLTensor.h>
#include <arm_compute/runtime/IFunction.h>
#include <sstream>
Include dependency graph for ClWorkloadUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 armnn
 Copyright (c) 2021 ARM Limited and Contributors.
 

Macros

#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
 
#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID(name, guid)
 
#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID(label)
 Creates a profiling event that uses GetGuid() and GetName() from the calling class. More...
 

Functions

std::string GetConvolutionMethodString (arm_compute::ConvolutionMethod &convolutionMethod)
 
template<typename T >
void CopyArmComputeClTensorData (arm_compute::CLTensor &dstTensor, const T *srcData)
 
auto SetClStridedSliceData (const std::vector< int > &m_begin, const std::vector< int > &m_end, const std::vector< int > &m_stride)
 
auto SetClSliceData (const std::vector< unsigned int > &m_begin, const std::vector< unsigned int > &m_size)
 
void InitializeArmComputeClTensorData (arm_compute::CLTensor &clTensor, const ConstTensorHandle *handle)
 
RuntimeException WrapClError (const cl::Error &clError, const CheckLocation &location)
 
void RunClFunction (arm_compute::IFunction &function, const CheckLocation &location)
 
template<typename DataType , typename PayloadType >
DataType * GetOutputTensorData (unsigned int idx, const PayloadType &data)
 

Macro Definition Documentation

◆ ARMNN_SCOPED_PROFILING_EVENT_CL

#define ARMNN_SCOPED_PROFILING_EVENT_CL (   name)

◆ ARMNN_SCOPED_PROFILING_EVENT_CL_GUID

#define ARMNN_SCOPED_PROFILING_EVENT_CL_GUID (   name,
  guid 
)
Value:

Definition at line 28 of file ClWorkloadUtils.hpp.

◆ ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID

#define ARMNN_SCOPED_PROFILING_EVENT_CL_NAME_GUID (   label)
Value:

Creates a profiling event that uses GetGuid() and GetName() from the calling class.

Definition at line 36 of file ClWorkloadUtils.hpp.

ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS
#define ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS(backendId, guid,...)
Definition: Profiling.hpp:217
armnn::Compute::GpuAcc
@ GpuAcc
GPU Execution: OpenCL: ArmCompute.
armnn::OpenClTimer
OpenClTimer instrument that times all OpenCl kernels executed between calls to Start() and Stop().
Definition: OpenClTimer.hpp:20
armnn::EmptyOptional
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
armnn::WallClockTimer
Definition: WallClockTimer.hpp:38