Unreordering Functions - 5.2 English - 68552

AOCL API Guide (68552)

Document ID
68552
Release Date
2025-12-29
Version
5.2 English
void aocl_unreorder_bf16bf16f32of32(const char order, const char mat_type, const bfloat16 *reorder_buf_addr, bfloat16 *output_buf_addr, const md_t k, const md_t n, const md_t ldb, dlp_metadata_t *metadata)#

Converts a reordered matrix back to its original format.

Parameters:
  • order[in] Memory layout (row-major or column-major).

  • trans[in] Transpose option for the matrix.

  • mat_type[in] Type of the matrix (e.g., ‘A’ for matrix A, ‘B’ for matrix B).

  • reorder_buf_addr[in] Pointer to the reordered matrix buffer.

  • output_buf_addr[out] Pointer to the output matrix buffer.

  • k[in] Number of rows in the matrix.

  • n[in] Number of columns in the matrix.

  • ldb[in] Leading dimension of the matrix.

  • metadata[in] Metadata for the post-operations.

void aocl_unreorder_bf16bf16f32of32_reference(const char order, const char mat_type, const bfloat16 *reorder_buf_addr, bfloat16 *output_buf_addr, const md_t k, const md_t n, const md_t ldb, dlp_metadata_t *metadata)#
void aocl_unreorder_f32f32f32of32_reference(const char order, const char mat_type, const float *reorder_buf_addr, float *output_buf_addr, const md_t k, const md_t n, const md_t ldb, dlp_metadata_t *metadata)#
void aocl_unreorder_s8s8s32os32_reference(const char order, const char mat_type, const int8_t *reorder_buf_addr, int8_t *output_buf_addr, const md_t k, const md_t n, const md_t ldb, dlp_metadata_t *metadata)#

See Also