21.05
|
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... | |
Build options.
Definition at line 38 of file CLCompileContext.h.
CLBuildOptions | ( | ) |
Default constructor.
Definition at line 34 of file CLCompileContext.cpp.
void add_option | ( | std::string | option | ) |
Adds option to the existing build option list.
[in] | option | Option to add |
Definition at line 39 of file CLCompileContext.cpp.
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().
void add_option_if | ( | bool | cond, |
std::string | option | ||
) |
Adds option if a given condition is true;.
[in] | cond | Condition to check |
[in] | option | Option to add if condition is true |
Definition at line 44 of file CLCompileContext.cpp.
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().
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.
[in] | cond | Condition to check |
[in] | option_true | Option to add if condition is true |
[in] | option_false | Option to add if condition is false |
Definition at line 52 of file CLCompileContext.cpp.
References CLBuildOptions::add_option().
Referenced by CLStridedSliceKernel::configure(), ClScaleKernel::configure(), ClMulKernel::configure(), and CLArgMinMaxLayerKernel::configure().
void add_options | ( | const StringSet & | options | ) |
Appends given build options to the current's objects options.
[in] | options | Build options to append |
Definition at line 57 of file CLCompileContext.cpp.
References CLBuildOptions::options().
Referenced by CLBuildOptions::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.
[in] | cond | Condition to check |
[in] | options | Option to add if condition is true |
Definition at line 62 of file CLCompileContext.cpp.
References CLBuildOptions::add_options(), and CLBuildOptions::options().
Referenced by ClLogits1DMaxShiftExpSumKernel::configure().
const CLBuildOptions::StringSet & options | ( | ) | const |
Gets the current options list set.
Definition at line 70 of file CLCompileContext.cpp.
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().