用于获取硬件平台独立的Vector Core的核数。
该接口仅在
uint32_t GetCoreNumVector(void) const
无
返回硬件平台Vector Core的核数。
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; }