GetSortLen
Function Usage
Obtains the size (in bytes) of the sorted data based on the number of elements.
Prototype
1 2 | template <typename T> __aicore__ inline uint32_t GetSortLen(const uint32_t elemCount) |
Parameters
Parameter |
Function |
|---|---|
T |
Data type of the operand. |
API |
Input/Output |
Function |
|---|---|---|
elemCount |
Input |
Number of elements of the input data. |
Returns
Size of the sorted data, in bytes.
Availability
Example
1 | AscendC::GetSortLen<half>(128); |
Parent topic: Sort