binary_init_funcs
-
void ckernel::binary_op_init_common(uint32_t icb0, uint32_t icb1, uint32_t ocb)
-
Init function for all binary ops Followed by the specific init required with an opcode (binrary_op_specific_init)
Argument
Description
Type
Valid Range
Required
icb0
The identifier of the circular buffer (CB) containing A
uint32_t
0 to 31
True
icb1
The identifier of the circular buffer (CB) containing B
uint32_t
0 to 31
True
ocb
The identifier of the circular buffer (CB) containing output
uint32_t
0 to 31, defaults to CB 16
True
-
template<bool full_init, EltwiseBinaryType eltwise_binary_type>
void ckernel::binary_tiles_init(uint32_t icb0, uint32_t icb1, bool acc_to_dest = false)
-
Template for initializing element-wise binary operations. Template parameters: full_init: if true, the full init is performed (unpack+math), otherwise only math init is performed eltwise_binary_type: the binary operation type
Function
Argument
Description
Type
Valid Range
Required
icb0
The identifier of the circular buffer (CB) containing A
uint32_t
0 to 31
True
icb1
The identifier of the circular buffer (CB) containing B
uint32_t
0 to 31
True
acc_to_dest
If true, operation = A [+,-,x] B + dst_tile_idx of *_tiles, depending on the eltwise_binary_type
bool
0,1
False