GetAicpuNumBlocks

Function Usage

Obtains the configured number of AI CPU cores that can be scheduled. For details about the setting method, see SetAicpuNumBlocks.

Prototype

1
uint32_t GetAicpuNumBlocks() const

Parameters

None

Returns

Configured number of AI CPU cores that can be scheduled.

Constraints

None

Examples

1
2
3
4
ge::graphStatus Tiling4XXX(TilingContext* context) {
  auto block_dim = context->GetAicpuNumBlocks();
  // ...
}