Compute Library
 22.11
ICLTuner Class Referenceabstract

Basic interface for tuning the OpenCL kernels. More...

#include <ICLTuner.h>

Public Member Functions

virtual ~ICLTuner ()=default
 Virtual destructor. More...
 
virtual void tune_kernel_static (ICLKernel &kernel)=0
 Tune OpenCL kernel statically. More...
 
virtual void tune_kernel_dynamic (ICLKernel &kernel)=0
 Tune OpenCL kernel dynamically. More...
 
virtual void tune_kernel_dynamic (ICLKernel &kernel, ITensorPack &tensors)=0
 Tune OpenCL kernel dynamically. More...
 
virtual void tune_kernel_dynamic (ICLKernel &kernel, ITensorPack &tensors, const experimental::dynamic_fusion::ClExecutionDescriptor &exec_desc)=0
 Tune OpenCL kernel dynamically for dynamic fusion interface. More...
 

Detailed Description

Basic interface for tuning the OpenCL kernels.

Definition at line 43 of file ICLTuner.h.

Constructor & Destructor Documentation

◆ ~ICLTuner()

virtual ~ICLTuner ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ tune_kernel_dynamic() [1/3]

virtual void tune_kernel_dynamic ( ICLKernel kernel)
pure virtual

Tune OpenCL kernel dynamically.

Note
Tuning requires memory to be available on all kernel tensors and objects in order to be performed
Parameters
[in]kernelKernel to tune

Implemented in CLTuner.

Referenced by CLScheduler::init().

◆ tune_kernel_dynamic() [2/3]

virtual void tune_kernel_dynamic ( ICLKernel kernel,
ITensorPack tensors 
)
pure virtual

Tune OpenCL kernel dynamically.

Parameters
[in]kernelKernel to tune
[in,out]tensorsTensors for the kernel to use

Implemented in CLTuner.

◆ tune_kernel_dynamic() [3/3]

virtual void tune_kernel_dynamic ( ICLKernel kernel,
ITensorPack tensors,
const experimental::dynamic_fusion::ClExecutionDescriptor exec_desc 
)
pure virtual

Tune OpenCL kernel dynamically for dynamic fusion interface.

Parameters
[in]kernelKernel to tune
[in,out]tensorsTensors for the kernel to use
[in]exec_descExecution descriptor

Implemented in CLTuner.

◆ tune_kernel_static()

virtual void tune_kernel_static ( ICLKernel kernel)
pure virtual

Tune OpenCL kernel statically.

Note
Tuning is performed using only kernel and tensor metadata, thus can be performed when memory is not available
Parameters
[in]kernelKernel to tune

Implemented in CLTuner.

Referenced by CLScheduler::tune_kernel_static().


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