Conventions

API Naming Conventions

The AscendCL APIs are named according to the following rules:

  1. acl+classname+OperationVerb+ObjectNoun
  2. The OperationVerb and ObjectNoun fields are written in mixed case with the first letter of each internal word capitalized.

The naming conventions are not applicable to media data processing V2 APIs, which start with "hi_mpi".

API Classes

API Class

Abbreviation

Definition

runtime

rt

Runtime

DVPP

dvpp, vdec, venc

Digital Vision Pre-Processing (DVPP)

AIPP

aipp

AI Pre-Processing (AIPP)

CBLAS

blas

Basic Linear Algebra Subprograms (BLAS)

model

mdl

Model inference

graph

grph

Graph

driver

drv

Driver

OP

op

Operator execution

fv

fv

Feature vector search

Profiling

prof

Profiling configurations

tdt

tdt

Tensor data transfer

Notes:

1. The abbreviation of each class name contains a maximum of four letters.

2. If the class name coincides with the operation object name, the object name is omitted.

For example, aclmdlLoadFromFileWithMem is a model API for loading a model from file and mdl after Load is omitted in the API name.

Variable Naming Conventions

In the code examples provided in this guide, a variable with an underscore (_) suffix (for example, deviceId_) is private to the corresponding class.