API List

The msKPP tool provides two types of APIs: basic APIs and instruction APIs. Basic APIs simulate the chip platform and basic data for operator computing. Instruction APIs simulate specific operator instruction operations, including Vector and Cube computing instructions.

Table 1 msKPP API list

API Type

API

Description

Basic APIs

Chip

Chip platform for performance modeling, which initializes the performance data of the chip.

Core

AI Core inside the analog chip.

Tensor

Basic data type for operator execution.

Tensor.load

Data movement API, which models data movement between different units.

Synchronization instruction APIs

set_flag

Instruction API for synchronization between pipes in a core, which is used with wait_flag.

wait_flag

Instruction API for synchronization between pipes in a core, which is used with set_flag.

Instruction APIs

mmad

API for modeling mmad performance of cube instructions.

vadd

API for modeling vadd performance of vector instructions.

vbrcb

API for modeling vbrcb performance of vector instructions.

vconv

API for modeling vconv performance of vector instructions.

vconv_deq

API for modeling vconv_deq performance of vector instructions.

vconv_vdeq

API for modeling vconv_vdeq performance of vector instructions.

vector_dup

API for modeling vector_dup performance of vector instructions.

vexp

API for modeling vexp performance of vector instructions.

vln

API for modeling vln performance of vector instructions.

vmax

API for modeling vmax performance of vector instructions.

vmul

API for modeling vmul performance of vector instructions.

vmuls

API for modeling vmuls performance of vector instructions.

vsub

API for modeling vsub performance of vector instructions.

vdiv

API for modeling vdiv performance of vector instructions.

vcadd

API for modeling vcadd performance of vector instructions.

vabs

API for modeling vabs performance of vector instructions.

vaddrelu

API for modeling vaddrelu performance of vector instructions.

vaddreluconv

API for modeling vaddreluconv performance of vector instructions.

vadds

API for modeling vadds performance of vector instructions.

vand

API for modeling vand performance of vector instructions.

vaxpy

API for modeling vaxpy performance of vector instructions.

vbitsort

API for modeling vbitsort performance of vector instructions.

vcgadd

API for modeling vcgadd performance of vector instructions.

vcgmax

API for modeling vcgmax performance of vector instructions.

vcgmin

API for modeling vcgmin performance of vector instructions.

vcmax

API for modeling vcmax performance of vector instructions.

vcmin

API for modeling vcmin performance of vector instructions.

vcmp_xxx

API for modeling vcmp_xxx performance of vector instructions.

vcmpv_xxx

API for modeling vcmpv_xxx performance of vector instructions.

vcmpvs_xxx

API for modeling vcmpvs_xxx performance of vector instructions.

vcopy

API for modeling vcopy performance of vector instructions.

vcpadd

API for modeling vcpadd performance of vector instructions.

vgather

API for modeling vgather performance of vector instructions.

vgatherb

API for modeling vgatherb performance of vector instructions.

vlrelu

API for modeling vlrelu performance of vector instructions.

vmadd

API for modeling vmadd performance of vector instructions.

vmaddrelu

API for modeling vmaddrelu performance of vector instructions.

vmaxs

API for modeling vmaxs performance of vector instructions.

vmin

API for modeling vmin performance of vector instructions.

vmins

API for modeling vmins performance of vector instructions.

vmla

API for modeling vmla performance of vector instructions.

vmrgsort

API for modeling vmrgsort performance of vector instructions.

vmulconv

API for modeling vmulconv performance of vector instructions.

vnot

API for modeling vnot performance of vector instructions.

vor

API for modeling vor performance of vector instructions.

vrec

API for modeling vrec performance of vector instructions.

vreduce

API for modeling vreduce performance of vector instructions.

vreducev2

API for modeling vreducev2 performance of vector instructions.

vrelu

API for modeling vrelu performance of vector instructions.

vrsqrt

API for modeling vrsqrt performance of vector instructions.

vsel

API for modeling vsel performance of vector instructions.

vshl

API for modeling vshl performance of vector instructions.

vshr

API for modeling vshr performance of vector instructions.

vsqrt

API for modeling vsqrt performance of vector instructions.

vsubrelu

API for modeling vsubrelu performance of vector instructions.

vsubreluconv

API for modeling vsubreluconv performance of vector instructions.

vtranspose

API for modeling vtranspose performance of vector instructions.