Compute Library
 20.08
CLBuildOptions Class Referencefinal

Build options. More...

#include <CLCompileContext.h>

Public Member Functions

 CLBuildOptions ()
 Default constructor. More...
 
void add_option (std::string option)
 Adds option to the existing build option list. More...
 
void add_option_if (bool cond, std::string option)
 Adds option if a given condition is true;. More...
 
void add_option_if_else (bool cond, std::string option_true, std::string option_false)
 Adds first option if condition is true else the second one. More...
 
void add_options (const StringSet &options)
 Appends given build options to the current's objects options. More...
 
void add_options_if (bool cond, const StringSet &options)
 Appends given build options to the current's objects options if a given condition is true. More...
 
const StringSet & options () const
 Gets the current options list set. More...
 

Detailed Description

Build options.

Definition at line 38 of file CLCompileContext.h.

Constructor & Destructor Documentation

◆ CLBuildOptions()

Default constructor.

Definition at line 34 of file CLCompileContext.cpp.

35  : _build_opts()
36 {
37 }

Member Function Documentation

◆ add_option()

void add_option ( std::string  option)

Adds option to the existing build option list.

Parameters
[in]optionOption to add

Definition at line 39 of file CLCompileContext.cpp.

40 {
41  _build_opts.emplace(std::move(option));
42 }

Referenced by CLBuildOptions::add_option_if(), CLBuildOptions::add_option_if_else(), CLElementWiseUnaryLayerKernel::configure(), CLStridedSliceKernel::configure(), CLScaleKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLActivationLayerKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLHeightConcatenateLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLDequantizationLayerKernel::configure(), CLGEMMMatrixVectorMultiplyKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLReverseKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLFlattenLayerKernel::configure(), CLSpaceToDepthLayerKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLCopyKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLUpsampleLayerKernel::configure(), CLFFTScaleKernel::configure(), CLMemsetKernel::configure(), CLNormalizationLayerKernel::configure(), CLGatherKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLTileKernel::configure(), CLReorgLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLPermuteKernel::configure(), CLQuantizationLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLRangeKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPoolingLayerKernel::configure(), CLSelectKernel::configure(), CLPadLayerKernel::configure(), CLPriorBoxLayerKernel::configure(), CLReductionOperationKernel::configure(), CLConvertFullyConnectedWeightsKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLCropKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLYOLOLayerKernel::configure(), CLFillBorderKernel::configure(), CLStackLayerKernel::configure(), CLDepthConvertLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLWinogradInputTransformKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel::configure(), CLCol2ImKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLLogits1DNormKernel::configure(), CLGEMMLowpMatrixBReductionKernel::configure(), and CLComplexPixelWiseMultiplicationKernel::configure().

◆ add_option_if()

void add_option_if ( bool  cond,
std::string  option 
)

Adds option if a given condition is true;.

Parameters
[in]condCondition to check
[in]optionOption to add if condition is true

Definition at line 44 of file CLCompileContext.cpp.

45 {
46  if(cond)
47  {
48  add_option(std::move(option));
49  }
50 }
void add_option(std::string option)
Adds option to the existing build option list.

References CLBuildOptions::add_option().

Referenced by CLElementWiseUnaryLayerKernel::configure(), CLStridedSliceKernel::configure(), CLScaleKernel::configure(), CLActivationLayerKernel::configure(), CLDequantizationLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLFlattenLayerKernel::configure(), CLCopyKernel::configure(), CLFFTScaleKernel::configure(), CLMemsetKernel::configure(), CLNormalizationLayerKernel::configure(), CLUpsampleLayerKernel::configure(), CLTileKernel::configure(), CLQuantizationLayerKernel::configure(), CLFFTDigitReverseKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLPoolingLayerKernel::configure(), CLLogits1DMaxShiftExpSumKernel::configure(), CLPadLayerKernel::configure(), CLPriorBoxLayerKernel::configure(), CLReductionOperationKernel::configure(), CLFFTRadixStageKernel::configure(), CLCropKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLYOLOLayerKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLDepthConvertLayerKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLROIAlignLayerKernel::configure(), CLWinogradInputTransformKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLLogits1DNormKernel::configure(), and CLGEMMLowpMatrixBReductionKernel::configure().

◆ add_option_if_else()

void add_option_if_else ( bool  cond,
std::string  option_true,
std::string  option_false 
)

Adds first option if condition is true else the second one.

Parameters
[in]condCondition to check
[in]option_trueOption to add if condition is true
[in]option_falseOption to add if condition is false

Definition at line 52 of file CLCompileContext.cpp.

53 {
54  (cond) ? add_option(std::move(option_true)) : add_option(std::move(option_false));
55 }
void add_option(std::string option)
Adds option to the existing build option list.

References CLBuildOptions::add_option().

Referenced by CLStridedSliceKernel::configure(), CLScaleKernel::configure(), CLReductionOperationKernel::configure(), CLArgMinMaxLayerKernel::configure(), and CLPixelWiseMultiplicationKernel::configure().

◆ add_options()

void add_options ( const StringSet &  options)

Appends given build options to the current's objects options.

Parameters
[in]optionsBuild options to append

Definition at line 57 of file CLCompileContext.cpp.

58 {
59  _build_opts.insert(options.begin(), options.end());
60 }
const StringSet & options() const
Gets the current options list set.

References CLBuildOptions::options().

Referenced by CLBuildOptions::add_options_if().

◆ add_options_if()

void add_options_if ( bool  cond,
const StringSet &  options 
)

Appends given build options to the current's objects options if a given condition is true.

Parameters
[in]condCondition to check
[in]optionsOption to add if condition is true

Definition at line 62 of file CLCompileContext.cpp.

63 {
64  if(cond)
65  {
67  }
68 }
const StringSet & options() const
Gets the current options list set.
void add_options(const StringSet &options)
Appends given build options to the current's objects options.

References CLBuildOptions::add_options(), and CLBuildOptions::options().

Referenced by CLLogits1DMaxShiftExpSumKernel::configure(), and CLLogits1DNormKernel::configure().

◆ options()

const CLBuildOptions::StringSet & options ( ) const

Gets the current options list set.

Returns
Build options set

Definition at line 70 of file CLCompileContext.cpp.

71 {
72  return _build_opts;
73 }

Referenced by CLBuildOptions::add_options(), CLBuildOptions::add_options_if(), CLElementWiseUnaryLayerKernel::configure(), CLStridedSliceKernel::configure(), CLScaleKernel::configure(), CLActivationLayerKernel::configure(), CLWidthConcatenate2TensorsKernel::configure(), CLWidthConcatenateLayerKernel::configure(), CLHeightConcatenateLayerKernel::configure(), CLWidthConcatenate4TensorsKernel::configure(), CLDequantizationLayerKernel::configure(), CLDepthwiseConvolutionLayerReshapeWeightsKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLDepthConcatenateLayerKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLFlattenLayerKernel::configure(), CLReverseKernel::configure(), CLCopyKernel::configure(), CLBatchConcatenateLayerKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLUpsampleLayerKernel::configure(), CLFFTScaleKernel::configure(), CLMemsetKernel::configure(), CLNormalizationLayerKernel::configure(), CLGatherKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLTileKernel::configure(), CLFFTDigitReverseKernel::configure(), CLQuantizationLayerKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLPoolingLayerKernel::configure(), CLSelectKernel::configure(), CLPadLayerKernel::configure(), CLPriorBoxLayerKernel::configure(), CLConvertFullyConnectedWeightsKernel::configure(), CLFFTRadixStageKernel::configure(), CLReductionOperationKernel::configure(), CLCropKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLYOLOLayerKernel::configure(), CLFillBorderKernel::configure(), CLDepthConvertLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLROIAlignLayerKernel::configure(), CLWinogradInputTransformKernel::configure(), CLCol2ImKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt16ScaleByFixedPointKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLGEMMLowpQuantizeDownInt32ToInt8ScaleByFixedPointKernel::configure(), CLGEMMLowpQuantizeDownInt32ToUint8ScaleByFixedPointKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLPixelWiseMultiplicationKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLLogits1DNormKernel::configure(), CLGEMMLowpMatrixBReductionKernel::configure(), CLComplexPixelWiseMultiplicationKernel::configure(), and arm_compute::create_opencl_kernel().


The documentation for this class was generated from the following files: