GetBlockDim
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File
#include <graph/kernel_launch_info.h>
Function Usage
Obtains the BlockDim value of an operator.
Prototype
1 | uint32_t GetBlockDim() const |
Parameters
None
Returns
BlockDim value of the operator task. The default value is 0.
If an exception occurs, int32_max is returned.
Constraints
None
Examples
1 2 3 4 5 6 7 | graphStatus Mc2GenTaskCallback(const gert::ExeResGenerationContext *context, std::vector<std::vector<uint8_t>> &tasks) { ... auto aicore_task = KernelLaunchInfo::LoadFromData(context, tasks.back()); auto block_dim = aicore_task.GetBlockDim(); ... } |
Parent topic: KernelLaunchInfo