GetSubBlockNum(ISASI)
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
x |
|
|
x |
|
|
x |
Function Usage
Obtains the number of AI Cube cores or AI Vector cores on an AI Core in separated mode.
Prototype
1
|
__aicore__ inline int64_t GetSubBlockNum() |
Parameters
None
Returns
For different kernel types (Setting Kernel Type), the return values of calling this API on the AIC and AIV are as follows:
|
Kernel Type |
KERNEL_TYPE_AIV_ONLY |
KERNEL_TYPE_AIC_ONLY |
KERNEL_TYPE_MIX_AIC_1_2 |
KERNEL_TYPE_MIX_AIC_1_1 |
KERNEL_TYPE_MIX_AIC_1_0 |
KERNEL_TYPE_MIX_AIV_1_0 |
|---|---|---|---|---|---|---|
|
AIV |
1 |
- |
2 |
1 |
- |
1 |
|
AIC |
- |
1 |
1 |
1 |
1 |
- |
Constraints
None
Example
1
|
int64_t subBlockNum = AscendC::GetSubBlockNum(); |