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