23.02.1
|
Common interface for all the OpenCL kernels. More...
#include <ICLKernel.h>
Public Member Functions | |
ICLKernel () | |
Constructor. More... | |
cl::Kernel & | kernel () |
Returns a reference to the OpenCL kernel of this object. More... | |
CLKernelType | type () const |
Returns the CL kernel type. More... | |
template<typename T > | |
void | add_1D_array_argument (unsigned int &idx, const ICLArray< T > *array, const Strides &strides, unsigned int num_dimensions, const Window &window) |
Add the passed 1D array's parameters to the object's kernel's arguments starting from the index idx. More... | |
void | add_1D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx. More... | |
void | add_1D_tensor_argument_if (bool cond, unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx if the condition is true. More... | |
void | add_2D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx. More... | |
void | add_2D_tensor_argument_if (bool cond, unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx if the condition is true. More... | |
void | add_3D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 3D tensor's parameters to the object's kernel's arguments starting from the index idx. More... | |
void | add_4D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 4D tensor's parameters to the object's kernel's arguments starting from the index idx. More... | |
void | add_5D_tensor_argument (unsigned int &idx, const ICLTensor *tensor, const Window &window) |
Add the passed 5D tensor's parameters to the object's kernel's arguments starting from the index idx. More... | |
void | add_3d_tensor_nhw_argument (unsigned int &idx, const ICLTensor *tensor) |
Add the passed NHW 3D tensor's parameters to the object's kernel's arguments by passing strides, dimensions and the offset to the first valid element in bytes. More... | |
void | add_4d_tensor_nhwc_argument (unsigned int &idx, const ICLTensor *tensor) |
Add the passed NHWC 4D tensor's parameters to the object's kernel's arguments by passing strides, dimensions and the offset to the first valid element in bytes. More... | |
virtual void | run (const Window &window, cl::CommandQueue &queue) |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue. More... | |
virtual void | run_op (ITensorPack &tensors, const Window &window, cl::CommandQueue &queue) |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue. More... | |
template<typename T > | |
void | add_argument (unsigned int &idx, T value) |
Add the passed parameters to the object's kernel's arguments starting from the index idx. More... | |
void | set_lws_hint (const cl::NDRange &lws_hint) |
Set the Local-Workgroup-Size hint. More... | |
cl::NDRange | lws_hint () const |
Return the Local-Workgroup-Size hint. More... | |
void | set_wbsm_hint (const cl_int &wbsm_hint) |
Set the workgroup batch size modifier hint. More... | |
cl_int | wbsm_hint () const |
Return the workgroup batch size modifier hint. More... | |
const std::string & | config_id () const |
Get the configuration ID. More... | |
void | set_target (GPUTarget target) |
Set the targeted GPU architecture. More... | |
void | set_target (cl::Device &device) |
Set the targeted GPU architecture according to the CL device. More... | |
GPUTarget | get_target () const |
Get the targeted GPU architecture. More... | |
size_t | get_max_workgroup_size () |
Get the maximum workgroup size for the device the CLKernelLibrary uses. More... | |
template<unsigned int dimension_size> | |
void | add_tensor_argument (unsigned &idx, const ICLTensor *tensor, const Window &window) |
template<typename T , unsigned int dimension_size> | |
void | add_array_argument (unsigned &idx, const ICLArray< T > *array, const Strides &strides, unsigned int num_dimensions, const Window &window) |
Add the passed array's parameters to the object's kernel's arguments starting from the index idx. More... | |
Public Member Functions inherited from IKernel | |
IKernel () | |
Constructor. More... | |
virtual | ~IKernel ()=default |
Destructor. More... | |
virtual bool | is_parallelisable () const |
Indicates whether or not the kernel is parallelisable. More... | |
virtual BorderSize | border_size () const |
The size of the border for that kernel. More... | |
const Window & | window () const |
The maximum window the kernel can be executed on. More... | |
bool | is_window_configured () const |
Function to check if the embedded window of this kernel has been configured. More... | |
Static Public Member Functions | |
static constexpr unsigned int | num_arguments_per_3d_tensor_nhw () |
Returns the number of arguments enqueued per NHW 3D Tensor object. More... | |
static constexpr unsigned int | num_arguments_per_4d_tensor_nhwc () |
Returns the number of arguments enqueued per NHWC 4D Tensor object. More... | |
static constexpr unsigned int | num_arguments_per_1D_array () |
Returns the number of arguments enqueued per 1D array object. More... | |
static constexpr unsigned int | num_arguments_per_1D_tensor () |
Returns the number of arguments enqueued per 1D tensor object. More... | |
static constexpr unsigned int | num_arguments_per_2D_tensor () |
Returns the number of arguments enqueued per 2D tensor object. More... | |
static constexpr unsigned int | num_arguments_per_3D_tensor () |
Returns the number of arguments enqueued per 3D tensor object. More... | |
static constexpr unsigned int | num_arguments_per_4D_tensor () |
Returns the number of arguments enqueued per 4D tensor object. More... | |
static cl::NDRange | gws_from_window (const Window &window) |
Get the global work size given an execution window. More... | |
Common interface for all the OpenCL kernels.
Definition at line 67 of file ICLKernel.h.
|
inline |
Constructor.
Definition at line 126 of file ICLKernel.h.
|
inline |
Add the passed 1D array's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the array's arguments. Will be incremented by the number of kernel arguments set. |
[in] | array | Array to set as an argument of the object's kernel. |
[in] | strides | Strides object containing stride of each dimension in bytes. |
[in] | num_dimensions | Number of dimensions of the array . |
[in] | window | Window the kernel will be executed on. |
Definition at line 155 of file ICLKernel.h.
References IKernel::window().
|
inline |
Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 165 of file ICLKernel.h.
References tensor, and IKernel::window().
Referenced by ICLKernel::add_1D_tensor_argument_if(), CLSelectKernel::run(), CLReverseKernel::run(), CLComputeAllAnchorsKernel::run(), CLQLSTMLayerNormalizationKernel::run(), CLGatherKernel::run(), CLFFTDigitReverseKernel::run(), CLRangeKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLReductionOperationKernel::run(), CLBoundingBoxTransformKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), CLDeconvolutionReshapeOutputKernel::run(), CLBatchToSpaceLayerKernel::run(), CLBatchNormalizationLayerKernel::run(), CLFuseBatchNormalizationKernel::run(), ClTransposedConvolutionKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::run_op(), ClIndirectConv2dKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::run_op(), ClDirectConv2dKernel::run_op(), and ClDirectConv3dKernel::run_op().
|
inline |
Add the passed 1D tensor's parameters to the object's kernel's arguments starting from the index idx if the condition is true.
[in] | cond | Condition to check |
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 176 of file ICLKernel.h.
References ICLKernel::add_1D_tensor_argument().
Referenced by CLSpaceToBatchLayerKernel::run(), ClGemmLowpOffsetContributionKernel::run_op(), and ClGemmLowpOffsetContributionOutputStageKernel::run_op().
|
inline |
Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 189 of file ICLKernel.h.
References tensor, and IKernel::window().
Referenced by ICLKernel::add_2D_tensor_argument_if(), ICLSimple2DKernel::run(), CLBitwiseKernel::run(), CLQLSTMLayerNormalizationKernel::run(), CLROIPoolingLayerKernel::run(), CLMeanStdDevNormalizationKernel::run(), CLReductionOperationKernel::run(), CLPriorBoxLayerKernel::run(), CLL2NormalizeLayerKernel::run(), CLBoundingBoxTransformKernel::run(), CLArgMinMaxLayerKernel::run(), CLROIAlignLayerKernel::run(), ClTransposeKernel::run_op(), ClScaleKernel::run_op(), ClConvertFullyConnectedWeightsKernel::run_op(), ClGemmLowpMatrixMultiplyNativeKernel::run_op(), ClGemmMatrixMultiplyNativeKernel::run_op(), ClGemmLowpMatrixAReductionKernel::run_op(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::run_op(), ClIm2ColKernel::run_op(), ClGemmMatrixMultiplyReshapedKernel::run_op(), and ClGemmLowpMatrixBReductionKernel::run_op().
|
inline |
Add the passed 2D tensor's parameters to the object's kernel's arguments starting from the index idx if the condition is true.
[in] | cond | Condition to check |
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 200 of file ICLKernel.h.
References ICLKernel::add_2D_tensor_argument().
Referenced by CLMeanStdDevNormalizationKernel::run(), CLSpaceToBatchLayerKernel::run(), ClGemmLowpOffsetContributionKernel::run_op(), ClGemmLowpOffsetContributionOutputStageKernel::run_op(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::run_op(), and ClGemmMatrixMultiplyReshapedKernel::run_op().
|
inline |
Add the passed 3D tensor's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 213 of file ICLKernel.h.
References tensor, and IKernel::window().
Referenced by ICLSimple3DKernel::run(), CLInstanceNormalizationLayerKernel::run(), CLDepthToSpaceLayerKernel::run(), CLSelectKernel::run(), CLSpaceToDepthLayerKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CLMaxUnpoolingLayerKernel::run(), CLFFTScaleKernel::run(), CLComparisonKernel::run(), CLNormalizationLayerKernel::run(), CLROIPoolingLayerKernel::run(), CLFFTDigitReverseKernel::run(), CLReorgLayerKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLReductionOperationKernel::run(), CLPadLayerKernel::run(), CLFFTRadixStageKernel::run(), CLFillBorderKernel::run(), CLL2NormalizeLayerKernel::run(), CLArgMinMaxLayerKernel::run(), CLROIAlignLayerKernel::run(), CLDeconvolutionReshapeOutputKernel::run(), CLBatchToSpaceLayerKernel::run(), CLBatchNormalizationLayerKernel::run(), CLFuseBatchNormalizationKernel::run(), CLSpaceToBatchLayerKernel::run(), CLComputeMeanVariance::run(), ClElementwiseKernel::run_op(), ClDequantizeKernel::run_op(), ClFloorKernel::run_op(), ClReshapeKernel::run_op(), ClCopyKernel::run_op(), ClElementWiseUnaryKernel::run_op(), ClFillKernel::run_op(), ClActivationKernel::run_op(), ClQuantizeKernel::run_op(), ClDepthConcatenateKernel::run_op(), ClBatchConcatenateKernel::run_op(), ClCropKernel::run_op(), ClWinogradInputTransformKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleKernel::run_op(), ClCastKernel::run_op(), ClGemmLowpOffsetContributionKernel::run_op(), ClCol2ImKernel::run_op(), ClDirectConv2dKernel::run_op(), ClGemmLowpOffsetContributionOutputStageKernel::run_op(), ClLogits1DMaxShiftExpSumKernel::run_op(), ClMulKernel::run_op(), ClGemmLowpMatrixAReductionKernel::run_op(), CLFillBorderKernel::run_op(), ClIm2ColKernel::run_op(), ClComplexMulKernel::run_op(), ClLogits1DNormKernel::run_op(), and ClGemmLowpMatrixBReductionKernel::run_op().
void add_3d_tensor_nhw_argument | ( | unsigned int & | idx, |
const ICLTensor * | tensor | ||
) |
Add the passed NHW 3D tensor's parameters to the object's kernel's arguments by passing strides, dimensions and the offset to the first valid element in bytes.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
Definition at line 119 of file ICLKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ICLTensor::cl_buffer(), ITensorInfo::dimension(), ITensor::info(), arm_compute::test::validation::info, ITensorInfo::offset_first_element_in_bytes(), and ITensorInfo::strides_in_bytes().
Referenced by ICLKernel::add_5D_tensor_argument(), ClGemmReshapeLhsMatrixKernel::run_op(), ClGemmMatrixMultiplyReshapedOnlyRhsMMULKernel::run_op(), and ClGemmReshapeRhsMatrixKernel::run_op().
|
inline |
Add the passed 4D tensor's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 223 of file ICLKernel.h.
References tensor, and IKernel::window().
Referenced by CLChannelShuffleLayerKernel::run(), CLInstanceNormalizationLayerKernel::run(), CLDepthToSpaceLayerKernel::run(), CLReverseKernel::run(), CLSpaceToDepthLayerKernel::run(), CLGatherKernel::run(), CLTileKernel::run(), CLReductionOperationKernel::run(), CLStackLayerKernel::run(), CLArgMinMaxLayerKernel::run(), CLBatchToSpaceLayerKernel::run(), CLSpaceToBatchLayerKernel::run(), CLComputeMeanVariance::run(), ClWidthConcatenate2TensorsKernel::run_op(), ClHeightConcatenateKernel::run_op(), ClWidthConcatenateKernel::run_op(), ClWidthConcatenate4TensorsKernel::run_op(), ClPermuteKernel::run_op(), ClWinogradInputTransformKernel::run_op(), CLStridedSliceKernel::run_op(), ClCol2ImKernel::run_op(), and ClDirectConv3dKernel::run_op().
void add_4d_tensor_nhwc_argument | ( | unsigned int & | idx, |
const ICLTensor * | tensor | ||
) |
Add the passed NHWC 4D tensor's parameters to the object's kernel's arguments by passing strides, dimensions and the offset to the first valid element in bytes.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
Definition at line 144 of file ICLKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ICLTensor::cl_buffer(), ITensorInfo::dimension(), ITensor::info(), arm_compute::test::validation::info, ITensorInfo::offset_first_element_in_bytes(), ITensorInfo::strides_in_bytes(), tensor, and IKernel::window().
Referenced by ICLKernel::num_arguments_per_3d_tensor_nhw(), CLDepthwiseConvolutionLayerNativeKernel::run(), ClTransposedConvolutionKernel::run_op(), ClScaleKernel::run_op(), ClIndirectConv2dKernel::run_op(), ClIndirectConv2dAddressPrecalculationKernel::run_op(), and ClDirectConv2dKernel::run_op().
|
inline |
Add the passed 5D tensor's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the tensor's arguments. Will be incremented by the number of kernel arguments set. |
[in] | tensor | Tensor to set as an argument of the object's kernel. |
[in] | window | Window the kernel will be executed on. |
Definition at line 233 of file ICLKernel.h.
References ICLKernel::add_3d_tensor_nhw_argument(), tensor, and IKernel::window().
|
inline |
Add the passed parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the arguments. Will be incremented by the number of kernel arguments set. |
[in] | value | Value to set as an argument of the object's kernel. |
Definition at line 341 of file ICLKernel.h.
Referenced by CLDepthToSpaceLayerKernel::run(), CLSpaceToDepthLayerKernel::run(), CLBatchToSpaceLayerKernel::run(), CLSpaceToBatchLayerKernel::run(), and ClCropKernel::run_op().
void add_array_argument | ( | unsigned & | idx, |
const ICLArray< T > * | array, | ||
const Strides & | strides, | ||
unsigned int | num_dimensions, | ||
const Window & | window | ||
) |
Add the passed array's parameters to the object's kernel's arguments starting from the index idx.
[in,out] | idx | Index at which to start adding the array's arguments. Will be incremented by the number of kernel arguments set. |
[in] | array | Array to set as an argument of the object's kernel. |
[in] | strides | Strides object containing stride of each dimension in bytes. |
[in] | num_dimensions | Number of dimensions of the array . |
[in] | window | Window the kernel will be executed on. |
Definition at line 496 of file ICLKernel.h.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG_VAR, ARM_COMPUTE_UNUSED, ICLArray< T >::cl_buffer(), and arm_compute::test::validation::n.
Definition at line 88 of file ICLKernel.cpp.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG_VAR, ARM_COMPUTE_UNUSED, ICLTensor::cl_buffer(), ITensor::info(), arm_compute::test::validation::info, Window::is_broadcasted(), arm_compute::test::validation::n, ITensorInfo::num_dimensions(), ITensorInfo::offset_first_element_in_bytes(), and ITensorInfo::strides_in_bytes().
|
inline |
Get the configuration ID.
Definition at line 398 of file ICLKernel.h.
Referenced by CLTuner::tune_kernel_dynamic(), and ClSaturatedArithmeticKernel::validate().
size_t get_max_workgroup_size | ( | ) |
Get the maximum workgroup size for the device the CLKernelLibrary uses.
Definition at line 184 of file ICLKernel.cpp.
References CLKernelLibrary::get(), and CLKernelLibrary::max_local_workgroup_size().
Referenced by arm_compute::enqueue(), and ICLKernel::get_target().
|
inline |
Get the targeted GPU architecture.
Definition at line 422 of file ICLKernel.h.
References arm_compute::enqueue(), CLKernelLibrary::get(), ICLKernel::get_max_workgroup_size(), ICLKernel::gws_from_window(), ICLKernel::kernel(), ICLKernel::lws_hint(), and IKernel::window().
Referenced by ClIndirectConv2dKernel::configure(), ClDirectConv2dKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), and CLTuner::tune_kernel_dynamic().
|
static |
Get the global work size given an execution window.
[in] | window | Execution window |
Definition at line 193 of file ICLKernel.cpp.
References Window::Dimension::end(), Window::Dimension::start(), Window::Dimension::step(), Window::x(), Window::y(), and Window::z().
Referenced by CLTuner::add_tuning_params(), and ICLKernel::get_target().
|
inline |
Returns a reference to the OpenCL kernel of this object.
Definition at line 134 of file ICLKernel.h.
Referenced by arm_compute::enqueue(), and ICLKernel::get_target().
|
inline |
Return the Local-Workgroup-Size hint.
Definition at line 362 of file ICLKernel.h.
References CLTuningParams::get_lws().
Referenced by ClLogits1DMaxShiftExpSumKernel::configure(), CLArgMinMaxLayerKernel::configure(), ICLKernel::get_target(), ICLSimple2DKernel::run(), ICLSimple3DKernel::run(), CLBitwiseKernel::run(), CLChannelShuffleLayerKernel::run(), CLInstanceNormalizationLayerKernel::run(), CLReverseKernel::run(), CLSelectKernel::run(), CLSpaceToDepthLayerKernel::run(), CLDepthToSpaceLayerKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CLFFTScaleKernel::run(), CLComputeAllAnchorsKernel::run(), CLMaxUnpoolingLayerKernel::run(), CLQLSTMLayerNormalizationKernel::run(), CLROIPoolingLayerKernel::run(), CLGatherKernel::run(), CLComparisonKernel::run(), CLNormalizationLayerKernel::run(), CLFFTDigitReverseKernel::run(), CLTileKernel::run(), CLMeanStdDevNormalizationKernel::run(), CLRangeKernel::run(), CLReorgLayerKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLPriorBoxLayerKernel::run(), CLPadLayerKernel::run(), CLFFTRadixStageKernel::run(), CLFillBorderKernel::run(), CLL2NormalizeLayerKernel::run(), CLBoundingBoxTransformKernel::run(), CLStackLayerKernel::run(), CLArgMinMaxLayerKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), CLROIAlignLayerKernel::run(), CLDeconvolutionReshapeOutputKernel::run(), CLBatchToSpaceLayerKernel::run(), CLBatchNormalizationLayerKernel::run(), CLFuseBatchNormalizationKernel::run(), CLSpaceToBatchLayerKernel::run(), CLComputeMeanVariance::run(), ClElementwiseKernel::run_op(), ClTransposeKernel::run_op(), ClDequantizeKernel::run_op(), ClReshapeKernel::run_op(), ClFloorKernel::run_op(), ClTransposedConvolutionKernel::run_op(), ClFillKernel::run_op(), ClCopyKernel::run_op(), ClElementWiseUnaryKernel::run_op(), ClScaleKernel::run_op(), ClWidthConcatenate2TensorsKernel::run_op(), ClWidthConcatenateKernel::run_op(), ClHeightConcatenateKernel::run_op(), ClActivationKernel::run_op(), ClQuantizeKernel::run_op(), ClPermuteKernel::run_op(), ClWidthConcatenate4TensorsKernel::run_op(), ClBatchConcatenateKernel::run_op(), ClDepthConcatenateKernel::run_op(), ClCropKernel::run_op(), ClConvertFullyConnectedWeightsKernel::run_op(), ClGemmReshapeLhsMatrixKernel::run_op(), ClGemmLowpMatrixMultiplyNativeKernel::run_op(), ClWinogradInputTransformKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::run_op(), ClIndirectConv2dKernel::run_op(), ClCastKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleKernel::run_op(), ClGemmMatrixMultiplyNativeKernel::run_op(), ClGemmReshapeRhsMatrixKernel::run_op(), CLStridedSliceKernel::run_op(), ClGemmLowpOffsetContributionKernel::run_op(), ClCol2ImKernel::run_op(), ClGemmLowpOffsetContributionOutputStageKernel::run_op(), ClDirectConv2dKernel::run_op(), ClDirectConv3dKernel::run_op(), ClLogits1DMaxShiftExpSumKernel::run_op(), ClMulKernel::run_op(), ClGemmLowpMatrixAReductionKernel::run_op(), CLFillBorderKernel::run_op(), ClGemmMatrixMultiplyReshapedOnlyRhsKernel::run_op(), ClIm2ColKernel::run_op(), ClGemmMatrixMultiplyReshapedKernel::run_op(), ClComplexMulKernel::run_op(), ClLogits1DNormKernel::run_op(), and ClGemmLowpMatrixBReductionKernel::run_op().
|
inlinestatic |
Returns the number of arguments enqueued per 1D array object.
Definition at line 276 of file ICLKernel.h.
|
inlinestatic |
Returns the number of arguments enqueued per 1D tensor object.
Definition at line 284 of file ICLKernel.h.
Referenced by CLReverseKernel::configure(), CLBatchNormalizationLayerKernel::configure(), and CLSelectKernel::run().
|
inlinestatic |
Returns the number of arguments enqueued per 2D tensor object.
Definition at line 292 of file ICLKernel.h.
Referenced by CLPriorBoxLayerKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLArgMinMaxLayerKernel::run(), ClGemmLowpMatrixMultiplyNativeKernel::run_op(), ClGemmMatrixMultiplyNativeKernel::run_op(), and ClIm2ColKernel::run_op().
|
inlinestatic |
Returns the number of arguments enqueued per 3D tensor object.
Definition at line 300 of file ICLKernel.h.
Referenced by ClReshapeKernel::configure(), CLFFTScaleKernel::configure(), CLFFTRadixStageKernel::configure(), CLL2NormalizeLayerKernel::configure(), ClMulKernel::configure(), CLFillBorderKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLNormalizePlanarYUVLayerKernel::run(), CLBatchNormalizationLayerKernel::run(), ClDequantizeKernel::run_op(), ClBatchConcatenateKernel::run_op(), ClDepthConcatenateKernel::run_op(), ClWinogradInputTransformKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleKernel::run_op(), ClGemmLowpQuantizeDownInt32ScaleByFloatKernel::run_op(), ClDirectConv2dKernel::run_op(), and ClIm2ColKernel::run_op().
|
inlinestatic |
Returns the number of arguments enqueued per NHW 3D Tensor object.
Definition at line 249 of file ICLKernel.h.
References ICLKernel::add_4d_tensor_nhwc_argument().
Referenced by ClGemmReshapeLhsMatrixKernel::configure(), and ClGemmReshapeRhsMatrixKernel::configure().
|
inlinestatic |
Returns the number of arguments enqueued per 4D tensor object.
Definition at line 308 of file ICLKernel.h.
Referenced by CLReverseKernel::configure(), and CLStackLayerKernel::configure().
|
inlinestatic |
Returns the number of arguments enqueued per NHWC 4D Tensor object.
Definition at line 266 of file ICLKernel.h.
Referenced by ClScaleKernel::configure().
|
inlinevirtual |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue.
[in] | window | Region on which to execute the kernel. (Must be a valid region of the window returned by window()). |
[in,out] | queue | Command queue on which to enqueue the kernel. |
Reimplemented in CLComputeMeanVariance, CLSpaceToBatchLayerKernel, CLFuseBatchNormalizationKernel, CLBatchNormalizationLayerKernel, CLBatchToSpaceLayerKernel, CLDeconvolutionReshapeOutputKernel, CLROIAlignLayerKernel, CLArgMinMaxLayerKernel, CLDepthwiseConvolutionLayerNativeKernel, CLStackLayerKernel, CLBoundingBoxTransformKernel, CLL2NormalizeLayerKernel, CLFFTRadixStageKernel, CLFillBorderKernel, CLPadLayerKernel, CLPriorBoxLayerKernel, CLNormalizePlanarYUVLayerKernel, CLReductionOperationKernel, CLRangeKernel, CLReorgLayerKernel, CLMeanStdDevNormalizationKernel, CLFFTDigitReverseKernel, CLTileKernel, CLComparisonKernel, CLGatherKernel, CLNormalizationLayerKernel, CLROIPoolingLayerKernel, CLQLSTMLayerNormalizationKernel, CLFFTScaleKernel, CLComputeAllAnchorsKernel, CLMaxUnpoolingLayerKernel, CLDeconvolutionLayerUpsampleKernel, CLDepthToSpaceLayerKernel, CLReverseKernel, CLSelectKernel, CLSpaceToDepthLayerKernel, CLChannelShuffleLayerKernel, CLInstanceNormalizationLayerKernel, CLBitwiseKernel, ICLSimple3DKernel, and ICLSimple2DKernel.
Definition at line 319 of file ICLKernel.h.
References ARM_COMPUTE_UNUSED.
Referenced by CLScheduler::init().
|
inlinevirtual |
Enqueue the OpenCL kernel to process the given window on the passed OpenCL command queue.
[in] | tensors | A vector containing the tensors to operato on. |
[in] | window | Region on which to execute the kernel. (Must be a valid region of the window returned by window()). |
[in,out] | queue | Command queue on which to enqueue the kernel. |
Reimplemented in ClGemmLowpMatrixBReductionKernel, ClComplexMulKernel, ClGemmMatrixMultiplyReshapedKernel, ClIm2ColKernel, ClGemmMatrixMultiplyReshapedOnlyRhsKernel, CLFillBorderKernel, ClWeightsReshapeKernel, ClGemmLowpMatrixMultiplyReshapedOnlyRhsKernel, ClGemmLowpMatrixAReductionKernel, ClMulKernel, ClDirectConv3dKernel, ClDirectConv2dKernel, ClGemmLowpMatrixMultiplyReshapedOnlyRhsMMULKernel, ClGemmLowpOffsetContributionOutputStageKernel, ClCol2ImKernel, ClGemmLowpOffsetContributionKernel, CLStridedSliceKernel, ClGemmLowpMatrixMultiplyReshapedKernel, ClGemmReshapeRhsMatrixKernel, ClGemmMatrixMultiplyReshapedOnlyRhsMMULKernel, ClGemmMatrixMultiplyNativeKernel, ClGemmLowpQuantizeDownInt32ScaleByFloatKernel, ClGemmLowpQuantizeDownInt32ScaleKernel, ClIndirectConv2dAddressPrecalculationKernel, ClWinogradOutputTransformKernel, ClIndirectConv2dKernel, ClGemmLowpQuantizeDownInt32ScaleByFixedPointKernel, ClWinogradFilterTransformKernel, ClWinogradInputTransformKernel, ClGemmLowpMatrixMultiplyNativeKernel, ClGemmReshapeLhsMatrixKernel, ClCropKernel, ClPermuteKernel, ClQuantizeKernel, ClPool2dKernel, ClPool3dKernel, ClScaleKernel, ClCopyKernel, ClElementWiseUnaryKernel, ClFillKernel, ClTransposedConvolutionKernel, ClDequantizeKernel, ClFloorKernel, ClReshapeKernel, ClTransposeKernel, and ClKernelRuntime.
Definition at line 331 of file ICLKernel.h.
References ARM_COMPUTE_UNUSED.
Referenced by CLScheduler::init().
|
inline |
Set the Local-Workgroup-Size hint.
[in] | lws_hint | Local-Workgroup-Size to use |
Definition at line 352 of file ICLKernel.h.
References ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, and CLTuningParams::set_lws().
Referenced by CLTuner::tune_kernel_dynamic().
|
inline |
Set the targeted GPU architecture.
[in] | target | The targeted GPU architecture |
Definition at line 407 of file ICLKernel.h.
void set_target | ( | cl::Device & | device | ) |
Set the targeted GPU architecture according to the CL device.
[in] | device | A CL device |
Definition at line 179 of file ICLKernel.cpp.
References arm_compute::get_target_from_device().
|
inline |
Set the workgroup batch size modifier hint.
[in] | wbsm_hint | workgroup batch size modifier value |
Definition at line 373 of file ICLKernel.h.
References ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, and CLTuningParams::set_wbsm().
Referenced by CLTuner::tune_kernel_dynamic().
|
inline |
|
inline |
Return the workgroup batch size modifier hint.
Definition at line 383 of file ICLKernel.h.
References CLTuningParams::get_wbsm().
Referenced by arm_compute::enqueue().