API Signature - 5.2 English - 57404

AOCL User Guide (57404)

Document ID
57404
Release Date
2025-12-29
Version
5.2 English
siz_t aocl_gemm_<OP_TYPE>
     (
       const dim_t n,
       V_Type*     x,
       const inc_t incx
     );
Table 4.35 API Parameters:#

Parameter

Description

n

length of vector

x

pointer to array of type V_Type

incx

stride between adjacent elements

Supported OP_TYPEs are explained in below table.

Table 4.36 Utility APIs#

API

Description

aocl_gemm_gelu_tanh_f32

Performs gelu tanh operation on each element of the given input buffer and updates it

aocl_gemm_gelu_erf_f32

Performs gelu erf operation on each element of the given input buffer and updates it

aocl_gemm_softmax_f32

Performs softmax operation on each element of the given input buffer and updates it