aclrtGetSocName

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Queries the AI processor version of the current operating environment.

Prototype

const char *aclrtGetSocName()

Parameters

None

Returns

Success: a pointer to the AI processor version string.

If the processor version fails to be obtained by calling this API, a null pointer is returned. If there are more than one device in the operating environment, the AI processor version name of device 0 is returned.