addcmul_tile
-
void ckernel::addcmul_tile_init()
-
Please refer to documentation for any_init.
-
template<DataFormat data_format, bool is_fp32_dest_acc_en = DST_ACCUM_MODE>
void ckernel::addcmul_tile(uint32_t idst0, uint32_t idst1, uint32_t idst2, uint32_t odst, uint32_t value)
-
Performs elementwise addcmul (add with constant multiply) operation.
Mathematical formula: odst = idst0 + (value * idst1 * idst2)
This operation computes the elementwise result by:
Multiplying the scalar value with each element of idst1
Multiplying that result with the corresponding element of idst2
Adding the result to the corresponding element of idst0
Output overwrites odst in DST.
The DST register buffer must be in acquired state via acquire_dst call. This call is blocking and is only available on the compute engine.
Argument Description
idst0 Index of the tile in DST register buffer (first input)
idst1 Index of the tile in DST register buffer (second input)
idst2 Index of the tile in DST register buffer (third input)
value Scalar constant multiplier
odst Index of the tile in DST register buffer (output)