GetCoreNumVector
Function
Obtains the number of independent vector cores on the hardware platform.
This API is valid only on the
Prototype
1 | uint32_t GetCoreNumVector(void) const |
Parameters
None
Returns
Number of vector cores on the hardware platform
Constraints
For the
For the
For the
For the
For the
Example
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; // ... Split by allVecCoreNums. return ret; } |
Parent topic: PlatformAscendC