aclrtLaunchKernelAttrValue

typedef union aclrtLaunchKernelAttrValue {
    uint8_t schemMode;
    uint32_t localMemorySize;
    uint32_t rsv[4];
} aclrtLaunchKernelAttrValue;

成员名称

描述

schemMode

调度模式。取值如下:

  • 0:普通调度模式,有空闲的核,就启动算子执行。例如,当blockDim为8时,表示算子核函数将会在8个核上执行,这时如果指定普通调度模式,则表示只要有1个核空闲了,就启动算子执行。
  • 1:batch调度模式,必须所有所需的核都空闲了,才启动算子执行。例如,当blockDim为8时,表示算子核函数将会在8个核上执行,这时如果指定batch调度模式,则表示必须等8个核都空闲了,才启动算子执行。

localMemorySize

预留参数,暂不支持。

rsv

预留值。