GetSocVersion
函数功能
获取当前硬件平台版本型号。
函数原型
SocVersion GetSocVersion(void) const;
参数说明
参数 |
输入/输出 |
说明 |
---|---|---|
- |
- |
- |
返回值说明
当前硬件平台版本型号的枚举类。
约束说明
无
调用示例
ge::graphStatus TilingXXX(gert::TilingContext* context) { auto ascendcPlatform = platform_ascend::PlatformAscendC(context->GetPlatformInfo()); auto socVersion = ascendcPlatform.GetSocVersion(); // ... 根据所获得的版本型号自行设计Tiling策略 return ret; }
父主题: 平台信息获取