GetSocVersion
Function Usage
Obtains the short model information of the Ascend AI Processor. The format is Ascendxxx.
Prototype
SocVersion GetSocVersion()
Parameters
None
Returns
SoC version.
Constraints
None
Example
1 2 3 4 5 6 | void func() { // Replace ASCENDXXX with the actual version. if (GetCurrentPlatformInfo().GetSocVersion() != SocVersion::ASCENDXXX) { return; } } |
Parent topic: platform