我要评分
获取效率
正确性
完整性
易理解

gemm_s8u8s32_pack_get_size

Return the number of bytes required to store the packed matrix.

Interface Definition

C interface:

size_t cblas_gemm_s8u8s32_pack_get_size (const enum CBLAS_IDENTIFIER identifier, const BLASINT m, const BLASINT n, const BLASINT k);

Parameters

Parameter

Type

Description

Input/Output

identifier

Enumeration type CBLAS_IDENTIFIER

Matrix to be packed.

  • If identifier = CblasA, the number of bytes required to pack matrix A is returned.
  • If identifier = CblasB, the number of bytes required to pack matrix B is returned.

Input

m

Integer

Number of rows in matrix A to be packed.

Input

n

Integer

Number of columns in matrix B to be packed.

Input

k

Integer

Number of columns in matrix A and number of rows in matrix B to be packed.

Input

Dependency

#include "kblas.h"

Examples

1
2
3
4
5
6
    int m = 4, k = 3, n = 4; 
 
    size_t size = cblas_gemm_s8u8s32_pack_get_size(CblasA, m, n, k); 
    /* 
     * Output size: 64
     */