ArmNN
 20.02
ClWorkloadUtils.hpp File Reference
#include <Half.hpp>
#include <aclCommon/ArmComputeTensorUtils.hpp>
#include <cl/OpenClTimer.hpp>
#include <backendsCommon/CpuTensorHandle.hpp>
#include <armnn/Utils.hpp>
#include <arm_compute/runtime/CL/CLTensor.h>
#include <arm_compute/runtime/IFunction.h>
#include <sstream>

Go to the source code of this file.

Namespaces

 armnn
 Copyright (c) 2020 ARM Limited.
 

Macros

#define ARMNN_SCOPED_PROFILING_EVENT_CL(name)
 

Functions

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 ConstCpuTensorHandle *handle)
 
RuntimeException WrapClError (const cl::Error &clError, const CheckLocation &location)
 
void RunClFunction (arm_compute::IFunction &function, const CheckLocation &location)
 

Macro Definition Documentation

◆ ARMNN_SCOPED_PROFILING_EVENT_CL

#define ARMNN_SCOPED_PROFILING_EVENT_CL (   name)
Value:
name, \
#define ARMNN_SCOPED_PROFILING_EVENT_WITH_INSTRUMENTS(backendId,...)
Definition: Profiling.hpp:166
GPU Execution: OpenCL: ArmCompute.
OpenClTimer instrument that times all OpenCl kernels executed between calls to Start() and Stop()...
Definition: OpenClTimer.hpp:20

Definition at line 20 of file ClWorkloadUtils.hpp.

Referenced by armnn::CopyArmComputeClTensorData(), ClConstantWorkload::Execute(), ClPadWorkload::Execute(), ClConvertFp16ToFp32Workload::Execute(), ClAdditionWorkload::Execute(), ClConvertFp32ToFp16Workload::Execute(), ClSubtractionWorkload::Execute(), ClQuantizeWorkload::Execute(), ClRsqrtWorkload::Execute(), ClActivationWorkload::Execute(), ClLstmFloatWorkload::Execute(), ClAbsWorkload::Execute(), ClDequantizeWorkload::Execute(), ClPreluWorkload::Execute(), ClFloorFloatWorkload::Execute(), ClReshapeWorkload::Execute(), ClResizeWorkload::Execute(), ClSoftmaxFloatWorkload::Execute(), ClInstanceNormalizationWorkload::Execute(), ClSpaceToDepthWorkload::Execute(), ClStackWorkload::Execute(), ClMaximumWorkload::Execute(), ClMinimumWorkload::Execute(), ClBatchToSpaceNdWorkload::Execute(), ClNormalizationFloatWorkload::Execute(), ClMeanWorkload::Execute(), ClArgMinMaxWorkload::Execute(), ClL2NormalizationFloatWorkload::Execute(), ClSoftmaxUint8Workload::Execute(), ClSliceWorkload::Execute(), ClGreaterWorkload< T >::Execute(), ClMultiplicationWorkload::Execute(), ClDepthToSpaceWorkload::Execute(), ClConcatWorkload::Execute(), ClQuantizedLstmWorkload::Execute(), ClStridedSliceWorkload::Execute(), ClSpaceToBatchNdWorkload::Execute(), ClDivisionFloatWorkload::Execute(), ClSplitterWorkload::Execute(), ClPooling2dWorkload::Execute(), ClBatchNormalizationFloatWorkload::Execute(), ClDepthwiseConvolutionWorkload::Execute(), ClFullyConnectedWorkload::Execute(), ClConvolution2dWorkload::Execute(), ClPermuteWorkload::Execute(), ClTransposeWorkload::Execute(), and ClTransposeConvolution2dWorkload::Execute().