GetSortOffset
Function Usage
Obtains the offset (in bytes) in the sorted data based on the element position.
Prototype
1 2 | template <typename T> __aicore__ inline uint32_t GetSortOffset(const uint32_t elemOffset) |
Parameters
Parameter |
Description |
|---|---|
T |
Operand data type. For the Atlas 350 Accelerator Card, the supported data types are half and float. For the For the For the |
Parameter |
Input/Output |
Description |
|---|---|---|
elemOffset |
Input |
Element position. |
Returns
Offset in the sorted data.
Constraints
None
Examples
1 | AscendC::GetSortOffset<half>(128); |
Parent topic: Sorting Operations