GetSocLongVersion
Function Usage
Obtains the long model information of the Ascend AI Processor. The format is Ascendxxxyy.
Prototype
const std::string &GetSocLongVersion()
Parameters
None
Returns
Long model information in the string format.
Constraints
None
Example
1 2 3 4 5 6 | void func() { // Replace Ascendxxx with the actual version model. if (GetCurrentPlatformInfo().GetLongSocVersion() != "Ascendxxx") { return; } } |
Parent topic: platform