Reserved APIs

The APIs described in this section are reserved and may be changed or deprecated in the future. They do not need your attention.

Table 1 API list

API Definition

Description

PlatformInfo()

Indicates the PlatformInfo constructor.

PlatformInfo(int32_t deviceId)

Indicates the PlatformInfo constructor.

PlatformInfo(const PlatformInfo &other)

Indicates the PlatformInfo constructor for copying data.

PlatformInfo(const PlatformInfo &&other)

Indicates the PlatformInfo constructor for moving data.

SetPlatformImpl(PlatformInfoImpl *impl)

Sets the PlatformInfoImpl object of PlatformInfo.

GetDeviceId()

Obtains deviceId from PlatformInfo.

CheckSupport(SocSpec socSpec, SocSpecAbility ability)

Obtains socSpec from PlatformInfo.

GetCubeCoreNum()

Obtains the number of Cube Cores from PlatformInfo.

GetVectorCoreNum()

Obtains the number of Vector Cores from PlatformInfo.

Valid()

Checks whether PlatformInfo is valid.

GetPlatformInfos()

Obtains NPU platform information, including the Ascend AI Processor model and parameters.

ToString(SocVersion socVersion)

Converts SocVersion to a string.