21.05
|
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... | |
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... | |
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_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 46 of file ICLKernel.h.
|
inline |
Constructor.
Definition at line 93 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 114 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 124 of file ICLKernel.h.
References IKernel::window().
Referenced by ICLKernel::add_1D_tensor_argument_if(), CLReverseKernel::run(), CLSelectKernel::run(), CLComputeAllAnchorsKernel::run(), CLQLSTMLayerNormalizationKernel::run(), CLGatherKernel::run(), CLMinMaxLayerKernel::run(), CLFFTDigitReverseKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::run(), CLRangeKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLReductionOperationKernel::run(), CLBoundingBoxTransformKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleByFloatKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleKernel::run(), CLDeconvolutionReshapeOutputKernel::run(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLBatchToSpaceLayerKernel::run(), CLBatchNormalizationLayerKernel::run(), CLFuseBatchNormalizationKernel::run(), CLDepthwiseConvolutionLayer3x3NCHWKernel::run(), CLWeightsReshapeKernel::run(), CLWinogradOutputTransformKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), and ClDirectConvolutionKernel::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 135 of file ICLKernel.h.
References ICLKernel::add_1D_tensor_argument(), and IKernel::window().
Referenced by CLGEMMLowpOffsetContributionKernel::run(), CLSpaceToBatchLayerKernel::run(), CLGEMMLowpOffsetContributionOutputStageKernel::run(), and CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run().
|
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 148 of file ICLKernel.h.
References IKernel::window().
Referenced by ICLKernel::add_2D_tensor_argument_if(), ICLSimple2DKernel::run(), CLBitwiseKernel::run(), CLRemapKernel::run(), CLQLSTMLayerNormalizationKernel::run(), CLROIPoolingLayerKernel::run(), CLMeanStdDevNormalizationKernel::run(), CLReductionOperationKernel::run(), CLPriorBoxLayerKernel::run(), CLL2NormalizeLayerKernel::run(), CLBoundingBoxTransformKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), CLArgMinMaxLayerKernel::run(), CLROIAlignLayerKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLWeightsReshapeKernel::run(), CLIm2ColKernel::run(), CLGEMMLowpMatrixAReductionKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMLowpMatrixBReductionKernel::run(), ClTransposeKernel::run_op(), ClScaleKernel::run_op(), and ClConvertFullyConnectedWeightsKernel::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 159 of file ICLKernel.h.
References ICLKernel::add_2D_tensor_argument(), and IKernel::window().
Referenced by CLMeanStdDevNormalizationKernel::run(), CLGEMMLowpOffsetContributionKernel::run(), CLSpaceToBatchLayerKernel::run(), CLGEMMLowpOffsetContributionOutputStageKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), and CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run().
|
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 172 of file ICLKernel.h.
References IKernel::window().
Referenced by ICLSimple3DKernel::run(), CLInstanceNormalizationLayerKernel::run(), CLDepthToSpaceLayerKernel::run(), CLSelectKernel::run(), CLSpaceToDepthLayerKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CLMaxUnpoolingLayerKernel::run(), CLFFTScaleKernel::run(), CLMinMaxLayerKernel::run(), CLNormalizationLayerKernel::run(), CLROIPoolingLayerKernel::run(), CLComparisonKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::run(), CLFFTDigitReverseKernel::run(), CLReorgLayerKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLReductionOperationKernel::run(), CLPadLayerKernel::run(), CLFillBorderKernel::run(), CLFFTRadixStageKernel::run(), CLL2NormalizeLayerKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleByFloatKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleKernel::run(), CLArgMinMaxLayerKernel::run(), CLGEMMReshapeLHSMatrixKernel::run(), CLCol2ImKernel::run(), CLDeconvolutionReshapeOutputKernel::run(), CLROIAlignLayerKernel::run(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLBatchToSpaceLayerKernel::run(), CLGEMMLowpOffsetContributionKernel::run(), CLWinogradInputTransformKernel::run(), CLBatchNormalizationLayerKernel::run(), CLWinogradFilterTransformKernel::run(), CLFuseBatchNormalizationKernel::run(), CLDepthwiseConvolutionLayer3x3NCHWKernel::run(), CLWeightsReshapeKernel::run(), CLSpaceToBatchLayerKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), CLComputeMeanVariance::run(), CLGEMMLowpOffsetContributionOutputStageKernel::run(), CLIm2ColKernel::run(), CLGEMMLowpMatrixAReductionKernel::run(), CLGEMMReshapeRHSMatrixKernel::run(), CLGEMMLowpMatrixBReductionKernel::run(), ClElementwiseKernel::run_op(), ClFloorKernel::run_op(), ClReshapeKernel::run_op(), ClCopyKernel::run_op(), ClElementWiseUnaryKernel::run_op(), ClDequantizationKernel::run_op(), ClActivationKernel::run_op(), ClPoolingKernel::run_op(), ClQuantizationKernel::run_op(), ClFillKernel::run_op(), ClDepthConcatenateKernel::run_op(), ClBatchConcatenateKernel::run_op(), ClMulKernel::run_op(), ClDirectConvolutionKernel::run_op(), ClCropKernel::run_op(), CLFillBorderKernel::run_op(), ClLogits1DMaxShiftExpSumKernel::run_op(), ClComplexMulKernel::run_op(), and ClLogits1DNormKernel::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 182 of file ICLKernel.h.
References IKernel::window().
Referenced by CLChannelShuffleLayerKernel::run(), CLInstanceNormalizationLayerKernel::run(), CLDepthToSpaceLayerKernel::run(), CLReverseKernel::run(), CLSpaceToDepthLayerKernel::run(), CLGatherKernel::run(), CLTileKernel::run(), CLReductionOperationKernel::run(), CLStackLayerKernel::run(), CLArgMinMaxLayerKernel::run(), CLCol2ImKernel::run(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLBatchToSpaceLayerKernel::run(), CLWinogradInputTransformKernel::run(), CLWinogradFilterTransformKernel::run(), CLSpaceToBatchLayerKernel::run(), CLWinogradOutputTransformKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), CLComputeMeanVariance::run(), ClWidthConcatenate2TensorsKernel::run_op(), ClHeightConcatenateKernel::run_op(), ClWidthConcatenateKernel::run_op(), ClPoolingKernel::run_op(), ClWidthConcatenate4TensorsKernel::run_op(), ClPermuteKernel::run_op(), ClScaleKernel::run_op(), CLStridedSliceKernel::run_op(), and ClDirectConvolutionKernel::run_op().
|
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 255 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 409 of file ICLKernel.h.
References ARM_COMPUTE_ERROR_ON, ARM_COMPUTE_ERROR_ON_MSG_VAR, ARM_COMPUTE_UNUSED, ICLArray< T >::cl_buffer(), and IKernel::window().
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(), and IKernel::window().
|
inline |
Get the configuration ID.
Definition at line 312 of file ICLKernel.h.
Referenced by CLTuner::tune_kernel_dynamic().
size_t get_max_workgroup_size | ( | ) |
Get the maximum workgroup size for the device the CLKernelLibrary uses.
Definition at line 131 of file ICLKernel.cpp.
References CLKernelLibrary::get(), and CLKernelLibrary::max_local_workgroup_size().
Referenced by arm_compute::enqueue().
|
inline |
Get the targeted GPU architecture.
Definition at line 336 of file ICLKernel.h.
Referenced by ClDirectConvolutionKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), ClDirectConvolutionKernel::run_op(), and CLTuner::tune_kernel_dynamic().
|
static |
Get the global work size given an execution window.
[in] | window | Execution window |
Definition at line 140 of file ICLKernel.cpp.
References Window::Dimension::end(), Window::Dimension::start(), Window::Dimension::step(), IKernel::window(), Window::x(), Window::y(), and Window::z().
|
inline |
Returns a reference to the OpenCL kernel of this object.
Definition at line 101 of file ICLKernel.h.
Referenced by arm_compute::enqueue().
|
inline |
Return the Local-Workgroup-Size hint.
Definition at line 276 of file ICLKernel.h.
References CLTuningParams::get_lws().
Referenced by ClLogits1DMaxShiftExpSumKernel::configure(), CLArgMinMaxLayerKernel::configure(), ICLSimple2DKernel::run(), ICLSimple3DKernel::run(), CLBitwiseKernel::run(), CLRemapKernel::run(), CLInstanceNormalizationLayerKernel::run(), CLChannelShuffleLayerKernel::run(), CLDepthToSpaceLayerKernel::run(), CLReverseKernel::run(), CLSelectKernel::run(), CLSpaceToDepthLayerKernel::run(), CLDeconvolutionLayerUpsampleKernel::run(), CLComputeAllAnchorsKernel::run(), CLFFTScaleKernel::run(), CLMaxUnpoolingLayerKernel::run(), CLQLSTMLayerNormalizationKernel::run(), CLMinMaxLayerKernel::run(), CLGatherKernel::run(), CLNormalizationLayerKernel::run(), CLComparisonKernel::run(), CLROIPoolingLayerKernel::run(), CLTileKernel::run(), CLFFTDigitReverseKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::run(), CLMeanStdDevNormalizationKernel::run(), CLRangeKernel::run(), CLReorgLayerKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLPadLayerKernel::run(), CLPriorBoxLayerKernel::run(), CLFFTRadixStageKernel::run(), CLFillBorderKernel::run(), CLL2NormalizeLayerKernel::run(), CLBoundingBoxTransformKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleKernel::run(), CLStackLayerKernel::run(), CLArgMinMaxLayerKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), CLGEMMReshapeLHSMatrixKernel::run(), CLCol2ImKernel::run(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLROIAlignLayerKernel::run(), CLDeconvolutionReshapeOutputKernel::run(), CLBatchToSpaceLayerKernel::run(), CLWinogradInputTransformKernel::run(), CLGEMMLowpOffsetContributionKernel::run(), CLBatchNormalizationLayerKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLWinogradFilterTransformKernel::run(), CLFuseBatchNormalizationKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLDepthwiseConvolutionLayer3x3NCHWKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLWeightsReshapeKernel::run(), CLSpaceToBatchLayerKernel::run(), CLWinogradOutputTransformKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), CLComputeMeanVariance::run(), CLGEMMLowpOffsetContributionOutputStageKernel::run(), CLIm2ColKernel::run(), CLGEMMLowpMatrixAReductionKernel::run(), CLGEMMReshapeRHSMatrixKernel::run(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::run(), CLGEMMLowpMatrixBReductionKernel::run(), ClElementwiseKernel::run_op(), ClTransposeKernel::run_op(), ClFloorKernel::run_op(), ClReshapeKernel::run_op(), ClCopyKernel::run_op(), ClElementWiseUnaryKernel::run_op(), ClDequantizationKernel::run_op(), ClWidthConcatenate2TensorsKernel::run_op(), ClHeightConcatenateKernel::run_op(), ClWidthConcatenateKernel::run_op(), ClActivationKernel::run_op(), ClPoolingKernel::run_op(), ClQuantizationKernel::run_op(), ClBatchConcatenateKernel::run_op(), ClDepthConcatenateKernel::run_op(), ClFillKernel::run_op(), ClWidthConcatenate4TensorsKernel::run_op(), ClPermuteKernel::run_op(), ClConvertFullyConnectedWeightsKernel::run_op(), ClScaleKernel::run_op(), CLStridedSliceKernel::run_op(), ClMulKernel::run_op(), ClDirectConvolutionKernel::run_op(), ClCropKernel::run_op(), CLFillBorderKernel::run_op(), ClLogits1DMaxShiftExpSumKernel::run_op(), ClComplexMulKernel::run_op(), ClLogits1DNormKernel::run_op(), and ICLKernel::set_lws_hint().
|
inlinestatic |
Returns the number of arguments enqueued per 1D array object.
Definition at line 190 of file ICLKernel.h.
|
inlinestatic |
Returns the number of arguments enqueued per 1D tensor object.
Definition at line 198 of file ICLKernel.h.
Referenced by CLReverseKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLSelectKernel::run(), CLWeightsReshapeKernel::run(), and CLWinogradOutputTransformKernel::run().
|
inlinestatic |
Returns the number of arguments enqueued per 2D tensor object.
Definition at line 206 of file ICLKernel.h.
Referenced by ClScaleKernel::configure(), CLRemapKernel::configure(), CLPriorBoxLayerKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLArgMinMaxLayerKernel::run(), CLGEMMLowpMatrixMultiplyNativeKernel::run(), CLGEMMMatrixMultiplyKernel::run(), CLGEMMLowpMatrixMultiplyReshapedKernel::run(), CLGEMMMatrixMultiplyNativeKernel::run(), CLWeightsReshapeKernel::run(), CLIm2ColKernel::run(), and CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::run().
|
inlinestatic |
Returns the number of arguments enqueued per 3D tensor object.
Definition at line 214 of file ICLKernel.h.
Referenced by ClReshapeKernel::configure(), CLFFTScaleKernel::configure(), ClMulKernel::configure(), CLFFTRadixStageKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLFillBorderKernel::configure(), CLDepthConvertLayerKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::run(), CLNormalizePlanarYUVLayerKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleByFloatKernel::run(), CLGEMMLowpQuantizeDownInt32ScaleKernel::run(), CLGEMMReshapeLHSMatrixKernel::run(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLWinogradInputTransformKernel::run(), CLBatchNormalizationLayerKernel::run(), CLDepthwiseConvolutionLayer3x3NCHWKernel::run(), CLWeightsReshapeKernel::run(), CLDepthwiseConvolutionLayerNativeKernel::run(), CLIm2ColKernel::run(), ClDequantizationKernel::run_op(), ClBatchConcatenateKernel::run_op(), ClDepthConcatenateKernel::run_op(), and ClDirectConvolutionKernel::run_op().
|
inlinestatic |
Returns the number of arguments enqueued per 4D tensor object.
Definition at line 222 of file ICLKernel.h.
Referenced by ClScaleKernel::configure(), CLReverseKernel::configure(), CLStackLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::run(), CLWinogradOutputTransformKernel::run(), and CLDepthwiseConvolutionLayerNativeKernel::run().
|
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 CLGEMMLowpMatrixBReductionKernel, CLGEMMMatrixMultiplyReshapedKernel, CLGEMMMatrixMultiplyReshapedOnlyRHSKernel, CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel, CLGEMMReshapeRHSMatrixKernel, CLGEMMLowpMatrixAReductionKernel, CLIm2ColKernel, CLGEMMLowpOffsetContributionOutputStageKernel, CLComputeMeanVariance, CLDepthwiseConvolutionLayerNativeKernel, CLWinogradOutputTransformKernel, CLSpaceToBatchLayerKernel, CLWeightsReshapeKernel, CLDepthwiseConvolutionLayer3x3NCHWKernel, CLGEMMMatrixMultiplyNativeKernel, CLGEMMLowpMatrixMultiplyReshapedKernel, CLFuseBatchNormalizationKernel, CLGEMMMatrixMultiplyKernel, CLWinogradFilterTransformKernel, CLBatchNormalizationLayerKernel, CLGEMMLowpOffsetContributionKernel, CLWinogradInputTransformKernel, CLBatchToSpaceLayerKernel, CLDeconvolutionReshapeOutputKernel, CLDepthwiseConvolutionLayer3x3NHWCKernel, CLROIAlignLayerKernel, CLCol2ImKernel, CLGEMMReshapeLHSMatrixKernel, CLArgMinMaxLayerKernel, CLGEMMLowpMatrixMultiplyNativeKernel, CLStackLayerKernel, CLGEMMLowpQuantizeDownInt32ScaleByFloatKernel, CLGEMMLowpQuantizeDownInt32ScaleKernel, CLBoundingBoxTransformKernel, CLL2NormalizeLayerKernel, CLFFTRadixStageKernel, CLFillBorderKernel, CLPadLayerKernel, CLPriorBoxLayerKernel, CLNormalizePlanarYUVLayerKernel, CLReductionOperationKernel, CLRangeKernel, CLReorgLayerKernel, CLMeanStdDevNormalizationKernel, CLFFTDigitReverseKernel, CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel, CLTileKernel, CLComparisonKernel, CLGatherKernel, CLMinMaxLayerKernel, CLNormalizationLayerKernel, CLROIPoolingLayerKernel, CLQLSTMLayerNormalizationKernel, CLFFTScaleKernel, CLComputeAllAnchorsKernel, CLMaxUnpoolingLayerKernel, CLDeconvolutionLayerUpsampleKernel, CLDepthToSpaceLayerKernel, CLReverseKernel, CLSelectKernel, CLSpaceToDepthLayerKernel, CLChannelShuffleLayerKernel, CLInstanceNormalizationLayerKernel, CLRemapKernel, CLBitwiseKernel, ICLSimple3DKernel, and ICLSimple2DKernel.
Definition at line 233 of file ICLKernel.h.
References ARM_COMPUTE_UNUSED, and IKernel::window().
|
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 ClComplexMulKernel, CLFillBorderKernel, ClCropKernel, ClDirectConvolutionKernel, ClMulKernel, CLStridedSliceKernel, ClScaleKernel, ClPermuteKernel, ClFillKernel, ClQuantizationKernel, ClPoolingKernel, ClDequantizationKernel, ClCopyKernel, ClElementWiseUnaryKernel, ClFloorKernel, ClReshapeKernel, and ClTransposeKernel.
Definition at line 245 of file ICLKernel.h.
References ARM_COMPUTE_UNUSED, and IKernel::window().
|
inline |
Set the Local-Workgroup-Size hint.
[in] | lws_hint | Local-Workgroup-Size to use |
Definition at line 266 of file ICLKernel.h.
References ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, ICLKernel::lws_hint(), and CLTuningParams::set_lws().
Referenced by CLGEMMMatrixMultiplyKernel::configure(), and CLTuner::tune_kernel_dynamic().
|
inline |
Set the targeted GPU architecture.
[in] | target | The targeted GPU architecture |
Definition at line 321 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 126 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 287 of file ICLKernel.h.
References ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL, CLTuningParams::set_wbsm(), and ICLKernel::wbsm_hint().
Referenced by CLTuner::tune_kernel_dynamic().
|
inline |
Return the workgroup batch size modifier hint.
Definition at line 297 of file ICLKernel.h.
References CLTuningParams::get_wbsm().
Referenced by arm_compute::enqueue(), and ICLKernel::set_wbsm_hint().