Compute Library
 22.08
ClKernelArgDescriptor Struct Reference

Describes all the info required to add a kernel argument at run time. More...

#include <ClWorkload.h>

Public Member Functions

 ClKernelArgDescriptor ()=default
 
 ClKernelArgDescriptor (int arg_id, ClKernelTensorArgType type, bool slide_along_dimz=true)
 
 ~ClKernelArgDescriptor ()=default
 

Data Fields

int arg_id { -1 }
 Arg ID in the blueprint, -1 means empty / uninitialized. More...
 
ClKernelTensorArgType tensor_arg_type { ClKernelTensorArgType::Image }
 tensor argument type More...
 
bool slide_along_dimz { true }
 

Friends

bool operator== (const ClKernelArgDescriptor &arg0, const ClKernelArgDescriptor &arg1)
 

Detailed Description

Describes all the info required to add a kernel argument at run time.

Note
This struct can later be expanded into a more concise and formal way to specify how to set up arguments for a kernel inside a ClUnitWorkload

Definition at line 70 of file ClWorkload.h.

Constructor & Destructor Documentation

◆ ClKernelArgDescriptor() [1/2]

ClKernelArgDescriptor ( )
default

◆ ClKernelArgDescriptor() [2/2]

ClKernelArgDescriptor ( int  arg_id,
ClKernelTensorArgType  type,
bool  slide_along_dimz = true 
)
inline

Definition at line 73 of file ClWorkload.h.

References type.

75  {
76  }
decltype(strategy::transforms) typedef type
ClKernelTensorArgType tensor_arg_type
tensor argument type
Definition: ClWorkload.h:83
int arg_id
Arg ID in the blueprint, -1 means empty / uninitialized.
Definition: ClWorkload.h:82

◆ ~ClKernelArgDescriptor()

~ClKernelArgDescriptor ( )
default

Friends And Related Function Documentation

◆ operator==

bool operator== ( const ClKernelArgDescriptor arg0,
const ClKernelArgDescriptor arg1 
)
friend

Definition at line 78 of file ClWorkload.h.

79  {
80  return (arg0.tensor_arg_type == arg1.tensor_arg_type) && (arg0.slide_along_dimz == arg1.slide_along_dimz);
81  }

Field Documentation

◆ arg_id

int arg_id { -1 }

Arg ID in the blueprint, -1 means empty / uninitialized.

Definition at line 82 of file ClWorkload.h.

Referenced by ClCompositeKernel::run_composite_op().

◆ slide_along_dimz

bool slide_along_dimz { true }
Note
slide_along_dimz will be moved out of this descriptor in later iterations

Definition at line 84 of file ClWorkload.h.

Referenced by ClCompositeKernel::run_composite_op().

◆ tensor_arg_type


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