Obtains the compute capability details of a group in the current context.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
The Ascend 310P AI Processor does not support this API in the current version.
aclError aclrtGetGroupInfoDetail(const aclrtGroupInfo *groupInfo, int32_t groupIndex, aclrtGroupAttr attr, void *attrValue, size_t valueLen, size_t *paramRetSize)
Parameter |
Input/Output |
Description |
|---|---|---|
groupInfo |
Input |
Pointer to the start address of the compute capability details. Call aclrtGetAllGroupInfo to obtain the compute capability details of all groups. |
groupIndex |
Input |
Group index for accessing contiguous memory blocks with groupInfo. Must be within the range of [0, Group count – 1]. Call aclrtGetGroupCount to obtain the group count. |
attr |
Input |
Compute capability attribute to be obtained. |
attrValue |
Output |
Pointer to the value of the compute capability attribute to be obtained. Allocate memory according to the data type of each attribute value to store the attribute values. |
valueLen |
Input |
Maximum length of attrValue, in bytes. |
paramRetSize |
Output |
Pointer to the size of the returned attrValue, in bytes. |
0 on success; else, failure.