GetAicCoreNum
Description
Obtains the number of AI Cube cores.
Prototype
template <typename T> uint32_t GetAicCoreNum(const T *context)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
context |
Input |
Tiling context, of TilingContext or TilingParseContext type. |
Return Value
uint32_t: number of AI Cube cores on the platform. Value 0 means the count failed to be obtained.
Constraints
None.
Example
The following sample code is for reference only. Do not copy and run it.
1 | compileInfo->vectorCoreNum = GetAicCoreNum(context_); |
Parent topic: platform