Compute Library
 22.05
arm_compute::cl_tuner Namespace Reference

Data Structures

class  ICLTuningParametersList
 Interface for Tuning Parameters lists. More...
 

Functions

std::unique_ptr< ICLTuningParametersListget_tuning_parameters_list (CLTuningInfo tuning_info, const cl::NDRange &gws)
 Construct an ICLTuningParametersList object for the given tuner mode and gws configuration. More...
 

Variables

constexpr unsigned int max_lws_supported_x { 64u }
 
constexpr unsigned int max_lws_supported_y { 32u }
 
constexpr unsigned int max_lws_supported_z { 32u }
 

Function Documentation

◆ get_tuning_parameters_list()

std::unique_ptr< ICLTuningParametersList > get_tuning_parameters_list ( CLTuningInfo  tuning_info,
const cl::NDRange &  gws 
)

Construct an ICLTuningParametersList object for the given tuner mode and gws configuration.

Parameters
[in]tuning_infoTuning info containng which parameters to tune and the tuner mode
[in]gwsGlobal worksize values
Returns
unique_ptr to the requested ICLTuningParametersList implementation.

Definition at line 263 of file CLTuningParametersList.cpp.

References arm_compute::EXHAUSTIVE, arm_compute::NORMAL, arm_compute::RAPID, and CLTuningInfo::tuner_mode.

Referenced by CLTuner::add_tuning_params().

264 {
265  switch(tuning_info.tuner_mode)
266  {
267  case CLTunerMode::EXHAUSTIVE:
268  return std::make_unique<CLTuningParametersListExhaustive>(gws, tuning_info);
269  case CLTunerMode::NORMAL:
270  return std::make_unique<CLTuningParametersListNormal>(gws, tuning_info);
271  case CLTunerMode::RAPID:
272  return std::make_unique<CLTuningParametersListRapid>(gws, tuning_info);
273  default:
274  return nullptr;
275  }
276 }

Variable Documentation

◆ max_lws_supported_x

constexpr unsigned int max_lws_supported_x { 64u }

Definition at line 30 of file CLTuningParametersList.cpp.

◆ max_lws_supported_y

constexpr unsigned int max_lws_supported_y { 32u }

Definition at line 31 of file CLTuningParametersList.cpp.

◆ max_lws_supported_z

constexpr unsigned int max_lws_supported_z { 32u }

Definition at line 32 of file CLTuningParametersList.cpp.