GetCoreNumVector
功能说明
用于获取硬件平台独立的Vector Core的核数。
该接口仅在
函数原型
1 | uint32_t GetCoreNumVector(void) const |
参数说明
无
返回值说明
返回硬件平台Vector Core的核数。
约束说明
调用示例
1 2 3 4 5 6 7 8 | ge::graphStatus TilingXXX(gert::TilingContext* context) { auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo()); auto aivCoreNum = ascendcPlatform.GetCoreNumAiv(); auto vectorCoreNum = ascendcPlatform.GetCoreNumVector(); auto allVecCoreNums = aivCoreNum + vectorCoreNum; // ...按照allVecCoreNums切分 return ret; } |
父主题: PlatformAscendC