Dependent Header Files and Library Files

Include the dependency header files based on the AscendCL APIs to be called. Refer to following table for details.

The AscendCL header files are stored in the CANN software installation directory/include/ directory, and the AscendCL library files are stored in the CANN software installation directory/lib64/ directory.

When building code based on the AscendCL APIs, depend on the corresponding library files based on the included header files. If redundant .so files (such as libascendcl.a) are referenced, version functions may be abnormal or compatibility issues may occur during version update.

Table 1 Header files

Header File

Description

Matching Library File

acl/acl_base.h

Declares basic data types (such as aclDataBuffer and aclTensorDesc) and their operation APIs, enumerations (such as aclFormat), and log management APIs.

libascendcl.so

acl/acl.h

Has already included acl/acl_mdl.h, acl/acl_rt.h, and acl/acl_op.h. Once the acl.h file is included, APIs related to initialization/deinitialization, device management, group management, context management, stream management, synchronization, memory management, model loading and execution, operator compilation (excluding aclopCompile), and operator loading and execution (excluding aclopCompileAndExecute) can be referenced.

libascendcl.so

acl/acl_prof.h

Declares the Profiling configuration APIs.

libmsprofiler.so

NOTE:

libascendcl.so is supported in earlier versions to avoid compatibility issues. However, it will be removed in later versions. Therefore, you are advised to use libmsprofiler.so to ensure compatibility with later versions.

acl/ops/acl_cblas.h

Declares the CBLAS APIs.

libacl_cblas.so

acl/ops/acl_dvpp.h

Declares the media data processing V1 APIs.

libacl_dvpp.so

acl/ops/acl_fv.h

Declares the feature vector search APIs.

For the Ascend 310 AI Processor, APIs declared in this header file cannot be referenced.

For the Ascend 910 AI Processor, APIs declared in this header file cannot be referenced.

libacl_retr.so

acl/acl_op_compiler.h

Declares the APIs, data types, and enumerations related to online operator compilation such as aclopCompile, aclopCompileAndExecute, and aclSetCompileopt.

libacl_op_compiler.so

acl/acl_tdt.h

Declares the tensor data transfer APIs.

For the Ascend 310 AI Processor, APIs declared in this header file cannot be referenced.

libacl_tdt_channel.so

acl/acl_tdt_queue.h

Declares the shared queue management and shared buffer management APIs.

Reserved. APIs declared in this header file cannot be referenced.

libacl_tdt_queue.so

acl/dvpp/hi_dvpp.h

Declares the media data processing V2 APIs.

libacl_dvpp_mpi.so