Compute Library
 22.05
CLSynthetizeFunction< K > Class Template Reference

This template synthetizes an ICLSimpleFunction which runs the given kernel K. More...

#include <Helper.h>

Collaboration diagram for CLSynthetizeFunction< K >:
[legend]

Public Member Functions

template<typename... Args>
void configure (Args &&... args)
 Configure the kernel. More...
 
template<typename... Args>
void configure (GPUTarget gpu_target, Args &&... args)
 Configure the kernel setting the GPU target as well. More...
 
- Public Member Functions inherited from ICLSimpleFunction
 ICLSimpleFunction (CLRuntimeContext *ctx=nullptr)
 Constructor. More...
 
 ICLSimpleFunction (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
 ICLSimpleFunction (ICLSimpleFunction &&)=default
 Default move constructor. More...
 
ICLSimpleFunctionoperator= (const ICLSimpleFunction &)=delete
 Prevent instances of this class from being copied (As this class contains pointers) More...
 
ICLSimpleFunctionoperator= (ICLSimpleFunction &&)=default
 Default move assignment operator. More...
 
 ~ICLSimpleFunction ()
 Default destructor. More...
 
void run () override final
 Run the kernels contained in the function. More...
 
- Public Member Functions inherited from IFunction
virtual ~IFunction ()=default
 Destructor. More...
 
virtual void prepare ()
 Prepare the function for executing. More...
 

Static Public Member Functions

template<typename... Args>
static Status validate (Args &&... args)
 Validate input arguments. More...
 

Detailed Description

template<typename K>
class arm_compute::test::CLSynthetizeFunction< K >

This template synthetizes an ICLSimpleFunction which runs the given kernel K.

Definition at line 126 of file Helper.h.

Member Function Documentation

◆ configure() [1/2]

void configure ( Args &&...  args)
inline

Configure the kernel.

Parameters
[in]argsConfiguration arguments.

Definition at line 134 of file Helper.h.

References GemmTuner::args, and arm_compute::test::validation::k.

135  {
136  auto k = std::make_unique<K>();
137  k->configure(std::forward<Args>(args)...);
138  _kernel = std::move(k);
139  }

◆ configure() [2/2]

void configure ( GPUTarget  gpu_target,
Args &&...  args 
)
inline

Configure the kernel setting the GPU target as well.

Parameters
[in]gpu_targetGPUTarget to set
[in]argsConfiguration arguments.

Definition at line 146 of file Helper.h.

References GemmTuner::args, and arm_compute::test::validation::k.

147  {
148  auto k = std::make_unique<K>();
149  k->set_target(gpu_target);
150  k->configure(std::forward<Args>(args)...);
151  _kernel = std::move(k);
152  }

◆ validate()

static Status validate ( Args &&...  args)
inlinestatic

Validate input arguments.

Parameters
[in]argsConfiguration arguments.

Definition at line 158 of file Helper.h.

References GemmTuner::args, and arm_compute::experimental::dynamic_fusion::validate().

159  {
160  return K::validate(std::forward<Args>(args)...);
161  }
Status validate(const OperatorGraph &op_graph)
Return the validity of op_graph, usually after performing an operation (e.g.

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