aclrtLaunchKernelAttr
1 2 3 4 | typedef struct aclrtLaunchKernelAttr { aclrtLaunchKernelAttrId id; aclrtLaunchKernelAttrValue value; } aclrtLaunchKernelAttr; |
When a kernel is launched, each attribute consists of two parts: the attribute ID aclrtLaunchKernelAttr.id and the corresponding attribute value aclrtLaunchKernelAttr.value. For example, when aclrtLaunchKernelAttr.id is set to ACL_RT_LAUNCH_KERNEL_ATTR_SCHEM_MODE, aclrtLaunchKernelAttr.value needs to be configured based on the value of schemMode.
For details about the definition of aclrtLaunchKernelAttr.id, see aclrtLaunchKernelAttrId.
For details about the definition of aclrtLaunchKernelAttr.value, see aclrtLaunchKernelAttrValue.
Parent topic: Data Types and Operation APIs