binary_max_tile
-
void ckernel::binary_max_tile_init()
-
Please refer to documentation.
-
void ckernel::binary_max_tile(uint32_t idst0, uint32_t idst1, uint32_t odst, VectorMode vector_mode = VectorMode::RC)
-
Performs an elementwise maximum operation on inputs at idst0, idst1: y = max(x0, x1). 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. A maximum of 4 tiles from each operand can be loaded into DST at once, for a total of 8 tiles, when using 16 bit formats. This gets reduced to 2 tiles from each operand for 32 bit formats.
Return value: None
Argument Description
idst0 The index of the tile in DST register buffer to use as first operand
idst1 The index of the tile in DST register buffer to use as second operand
odst The index of the tile in DST register buffer to use as output
-
void ckernel::binary_max_int32_tile(uint32_t idst0, uint32_t idst1, uint32_t odst)
-
Performs an elementwise maximum operation on inputs of int32 data type at idst0, idst1: y = max(x0, x1). 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. A maximum of 4 tiles from each operand can be loaded into DST at once, for a total of 8 tiles, when using 16 bit formats. This gets reduced to 2 tiles from each operand for 32 bit formats.
Return value: None
Argument Description
idst0 The index of the tile in DST register buffer to use as first operand
idst1 The index of the tile in DST register buffer to use as second operand
odst The index of the tile in DST register buffer to use as output