获取当前硬件平台版本型号。
SocVersion GetSocVersion(void) const;
参数 |
输入/输出 |
说明 |
|---|---|---|
- |
- |
- |
当前硬件平台版本型号的枚举类。
无
ge::graphStatus TilingXXX(gert::TilingContext* context) {
auto ascendcPlatform = platform_ascend::PlatformAscendC(context->GetPlatformInfo());
auto socVersion = ascendcPlatform.GetSocVersion();
// ... 根据所获得的版本型号自行设计Tiling策略
return ret;
}