aclblasCreateHandleForGemvEx

Description

Creates a handle to matrix-vector multiplication. The data types of the input and output are set using arguments. This API is synchronous.

After the handle is created, call aclopExecWithHandle to execute the operator.

Restrictions

A, x, and y support a limited combination of data types.

Data Type of A

Data Type of x

Data Type of y

aclFloat16

aclFloat16

aclFloat16

aclFloat16

aclFloat16

float(float32)

int8_t

int8_t

float(float32)

int8_t

int8_t

int32_t

Prototype

aclError aclblasCreateHandleForGemvEx(aclTransType transA,

int m,

int n,

aclDataType dataTypeA,

aclDataType dataTypeX,

aclDataType dataTypeY,

aclComputeType type,

aclopHandle **handle)

Parameters

Parameter

Input/Output

Description

transA

Input

Transpose flag of matrix A.

m

Input

Number of rows in matrix A (row-major first in data storing).

n

Input

Number of columns in matrix A.

dataTypeA

Input

Data type of matrix A.

dataTypeX

Input

Data type of vector x.

dataTypeY

Input

Data type of vector y.

type

Input

Computation precision type (high precision by default).

handle

Output

Pointer to the pointer to the operator handle.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.