Rounding operations

void ckernel::rounding_op_tile_init()

Please refer to documentation for any_init.

frac_tile

void ckernel::frac_tile(uint32_t idst)

Performs element-wise frac computation on input x , where x is each element of a tile in DST register at index tile_index. 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.

Return value: None

Argument Description

idst The index of the tile in DST register buffer to perform frac operation

trunc_tile

void ckernel::trunc_tile(uint32_t idst)

Performs element-wise trunc computation on input x , where x is each element of a tile in DST register at index tile_index. 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.

Return value: None

Argument Description

idst The index of the tile in DST register buffer to perform trunc operation

round_tile

void ckernel::round_tile(uint32_t idst, int32_t decimals)

Performs element-wise computation of the round operation on each element of a tile in DST register at index tile_index. 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.

Return value: None

Argument Description

idst The index of the tile in DST register buffer to perform the computation on

decimals The number of decimal places to round to.

floor_tile

void ckernel::floor_tile(uint32_t idst)

Performs element-wise floor computation on input x , where x is each element of a tile in DST register at index tile_index. 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.

Return value: None

Argument Description

idst The index of the tile in DST register buffer to perform floor operation

ceil_tile

void ckernel::ceil_tile(uint32_t idst)

Performs element-wise ceil computation on input x , where x is each element of a tile in DST register at index tile_index. 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.

Return value: None

Argument Description

idst The index of the tile in DST register buffer to perform ceil operation