aclrtLaunchKernelAttrValue
typedef union aclrtLaunchKernelAttrValue {
uint8_t schemMode;
uint32_t localMemorySize;
aclrtEngineType engineType;
uint32_t blockDimOffset;
uint8_t isBlockTaskPrefetch;
uint8_t isDataDump;
uint16_t timeout;
aclrtTimeoutUs timeoutUs;
uint32_t rsv[4];
} aclrtLaunchKernelAttrValue;
Member |
Description |
|---|---|
schemMode |
Scheduling mode. The options are as follows:
|
localMemorySize |
Size of the internal UB buffer of the Vector Core required for executing the Single Instruction Multiple Thread (SIMT) operator, in bytes. This parameter is not supported currently, and the related configuration does not take effect. |
engineType |
Operator execution engine. For details about the values, see aclrtEngineType. Only This parameter does not take effect for the following products:
|
blockDimOffset |
Block dimension offset.
Only This parameter is not supported by the following products:
|
isBlockTaskPrefetch |
Whether to block hardware from prefetching the information of the current task when the task is delivered. The options are as follows:
|
isDataDump |
Whether to enable dump. The options are as follows:
|
timeout |
Timeout interval for the task scheduler to wait for task execution. This parameter applies only to the scenario where the AI CPU or AI Core operator is executed. The options are as follows:
|
timeoutUs |
Timeout interval for the task scheduler to wait for task execution, in microseconds. If both timeoutLow and timeoutHigh in the aclrtTimeoutUs struct are set to 0, it indicates forever waiting. For the same launch kernel task, timeoutUs and timeout cannot be configured at the same time. Otherwise, an error is reported. |
rsv |
Reserved. The value is fixed at 0. |