platform

表1 接口列表

接口定义

功能说明

PlatformInfo()

PlatformInfo的构造函数。

PlatformInfo(int32_t deviceId)

PlatformInfo的构造函数。

PlatformInfo(const PlatformInfo &other)

PlatformInfo拷贝构造函数。

PlatformInfo(const PlatformInfo &&other)

PlatformInfo移动构造函数。

SetPlatformImpl(PlatformInfoImpl *impl)

设置PlatformInfo的PlatformInfoImpl对象。

GetCurrentPlatformInfo()

获取当前线程的PlatformInfo。

GetSocVersion()

从PlatformInfo中获取Soc短版本号。

GetSocLongVersion()

从PlatformInfo中获取Soc版本号。

GetDeviceId()

从PlatformInfo中获取deviceId。

CheckSupport(SocSpec socSpec, SocSpecAbility ability)

从PlatformInfo中获取socSpec。

GetBlockSize()

从PlatformInfo中获取block大小。

GetCubeCoreNum()

从PlatformInfo中获取cube核数。

GetVectorCoreNum()

从PlatformInfo中获取vector核数。

Valid()

判断PlatformInfo是否valid。

ToString(SocVersion socVersion)

将SocVersion转换为字符串。