GetSubBlockNum(ISASI)
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
√ |
|
x |
|
x |
|
x |
|
x |
|
x |
功能说明
获取AI Core上Vector核的数量。
函数原型
1 | __aicore__ inline int64_t GetSubBlockNum() |
参数说明
无
返回值
返回int64_t类型的Vector核数量。
约束说明
无
调用示例
1 | int64_t subBlockNum = AscendC::GetSubBlockNum(); |
父主题: 系统变量访问