aclblasHgemv

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

×

Atlas A3 training products / Atlas A3 inference products

√

Atlas A2 training products / Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function Usage

Computes matrix-vector multiplication: y = αAx + βy. The inputs and outputs are all of data type FLOAT16. This API is asynchronous.

Prototype

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
aclError aclblasHgemv(aclTransType transA,
int m,
int n,
const aclFloat16 *alpha,
const aclFloat16 *a,
int lda,
const aclFloat16 *x,
int incx,
const aclFloat16 *beta,
aclFloat16 *y,
int incy,
aclComputeType type,
aclrtStream stream)

Parameters

Parameter

Input/Output

Description

transA

Input

Transpose flag of matrix A. For details about the type definition, see aclTransType.

m

Input

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

n

Input

Number of columns in matrix A.

alpha

Input

Pointer to scalar α used for executing the multiplication operation. For the type definition, see aclFloat16.

a

Input

Pointer to matrix A. For the type definition, see aclFloat16.

lda

Input

Leading dimension of matrix A. For row-major transpose, lda is the number of columns of matrix A. This parameter is reserved and can only be set to –1.

x

Input

Pointer to vector x. For the type definition, see aclFloat16.

incx

Input

Increment between successive x elements.

This parameter is reserved and can only be set to –1.

beta

Input

Pointer to scalar β used for executing the multiplication operation. For the type definition, see aclFloat16.

y

Input and output

Pointer to vector y. For the type definition, see aclFloat16.

incy

Input

Increment between successive y elements.

This parameter is reserved and can only be set to –1.

type

Input

Computation precision type (high precision by default). For details about the type definition, see aclComputeType.

stream

Input

Stream where the operator is executed. For the type definition, see aclrtStream.

Returns

0 on success; else, failure. For details, see aclError.