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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True

void ckernel::frac_tile_float32(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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True

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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True

void ckernel::trunc_tile_float32(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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True

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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True

decimals

The number of decimal places to round to.

uint32_t

True

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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True

void ckernel::floor_tile_float32(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

Type

Valid Range

Required

idst

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

uint32_t

Must be less than the size of the DST register buffer

True