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

Table 1 Parameters in the template

Parameter

Function

T

Data type of the operand.

Table 2 API parameters

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);