Compute Library
 21.05
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(), ClFloorKernel::configure(), ClTransposeKernel::configure(), ClCopyKernel::configure(), ClElementWiseUnaryKernel::configure(), ClDequantizationKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), CLStridedSliceKernel::configure(), ClActivationKernel::configure(), ClHeightConcatenateKernel::configure(), ClPoolingKernel::configure(), ClWidthConcatenateKernel::configure(), ClPermuteKernel::configure(), ClScaleKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClDepthConcatenateKernel::configure(), ClFillKernel::configure(), ClQuantizationKernel::configure(), ClBatchConcatenateKernel::configure(), ClConvertFullyConnectedWeightsKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLBitwiseKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLReverseKernel::configure(), CLSelectKernel::configure(), CLBatchToSpaceLayerKernel::configure(), CLDepthToSpaceLayerKernel::configure(), CLSpaceToDepthLayerKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), CLComputeAllAnchorsKernel::configure(), CLNormalizationLayerKernel::configure(), CLFFTScaleKernel::configure(), CLGatherKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), CLTileKernel::configure(), CLFFTDigitReverseKernel::configure(), CLReorgLayerKernel::configure(), ClCropKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), ClMulKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), CLPadLayerKernel::configure(), CLFFTRadixStageKernel::configure(), CLPriorBoxLayerKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLBoundingBoxTransformKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLROIPoolingLayerKernel::configure(), CLStackLayerKernel::configure(), CLFillBorderKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLDepthConvertLayerKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLWinogradInputTransformKernel::configure(), CLCol2ImKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLBatchNormalizationLayerKernel::configure(), CLWinogradFilterTransformKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLDepthwiseConvolutionLayer3x3NCHWKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLGEMMLowpOffsetContributionKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLGEMMLowpOffsetContributionOutputStageKernel::configure(), CLWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), ClComplexMulKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), ClLogits1DNormKernel::configure(), CLComputeMeanVariance::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), and CLGEMMLowpMatrixBReductionKernel::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 ClElementWiseUnaryKernel::configure(), CLStridedSliceKernel::configure(), ClDequantizationKernel::configure(), ClActivationKernel::configure(), ClPoolingKernel::configure(), ClScaleKernel::configure(), ClFillKernel::configure(), ClQuantizationKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), CLFFTScaleKernel::configure(), CLNormalizationLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), CLTileKernel::configure(), CLFFTDigitReverseKernel::configure(), ClCropKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), ClMulKernel::configure(), CLPriorBoxLayerKernel::configure(), CLFFTRadixStageKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLWinogradInputTransformKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLDepthwiseConvolutionLayerNativeKernel::configure(), CLWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), CLComputeMeanVariance::configure(), and CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::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(), ClMulKernel::configure(), and CLArgMinMaxLayerKernel::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().

◆ 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(), ClFloorKernel::configure(), ClTransposeKernel::configure(), ClElementWiseUnaryKernel::configure(), CLStridedSliceKernel::configure(), ClActivationKernel::configure(), ClDequantizationKernel::configure(), ClWidthConcatenate2TensorsKernel::configure(), ClPoolingKernel::configure(), ClWidthConcatenate4TensorsKernel::configure(), ClPermuteKernel::configure(), ClScaleKernel::configure(), ClQuantizationKernel::configure(), ClFillKernel::configure(), ClConvertFullyConnectedWeightsKernel::configure(), CLBitwiseKernel::configure(), CLInstanceNormalizationLayerKernel::configure(), CLMaxUnpoolingLayerKernel::configure(), CLReverseKernel::configure(), CLSelectKernel::configure(), CLChannelShuffleLayerKernel::configure(), CLDeconvolutionLayerUpsampleKernel::configure(), ClLogits1DMaxShiftExpSumKernel::configure(), CLGatherKernel::configure(), CLNormalizationLayerKernel::configure(), CLQLSTMLayerNormalizationKernel::configure(), CLSpaceToBatchLayerKernel::configure(), CLFFTScaleKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleByFixedPointKernel::configure(), CLTileKernel::configure(), CLFFTDigitReverseKernel::configure(), CLMeanStdDevNormalizationKernel::configure(), ClCropKernel::configure(), CLNormalizePlanarYUVLayerKernel::configure(), CLRangeKernel::configure(), ClMulKernel::configure(), CLPriorBoxLayerKernel::configure(), CLFFTRadixStageKernel::configure(), CLL2NormalizeLayerKernel::configure(), CLGEMMLowpMatrixMultiplyNativeKernel::configure(), CLROIPoolingLayerKernel::configure(), CLFillBorderKernel::configure(), CLDepthwiseConvolutionLayer3x3NHWCKernel::configure(), CLGEMMReshapeLHSMatrixKernel::configure(), CLGEMMLowpQuantizeDownInt32ScaleKernel::configure(), CLArgMinMaxLayerKernel::configure(), CLROIAlignLayerKernel::configure(), CLDeconvolutionReshapeOutputKernel::configure(), CLWinogradInputTransformKernel::configure(), CLCol2ImKernel::configure(), CLFuseBatchNormalizationKernel::configure(), CLGEMMMatrixMultiplyNativeKernel::configure(), CLGEMMMatrixMultiplyKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedKernel::configure(), CLWinogradOutputTransformKernel::configure(), CLWeightsReshapeKernel::configure(), CLGEMMReshapeRHSMatrixKernel::configure(), CLGEMMLowpMatrixMultiplyReshapedOnlyRHSKernel::configure(), CLGEMMLowpMatrixAReductionKernel::configure(), CLComputeMeanVariance::configure(), CLGEMMMatrixMultiplyReshapedOnlyRHSKernel::configure(), and arm_compute::create_opencl_kernel().


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