GetArithProgressionMaxMinTmpSize
Function Usage
Obtains the ArithProgression tiling parameters, that is, the maximum temporary space size (max) and minimum temporary space size (min) required for ArithProgression computation.
The ArithProgression API does not need to use the temporary space. Therefore, 0 is returned for both max and min.
Prototype
1 | void GetArithProgressionMaxMinTmpSize(uint32_t &maxValue, uint32_t &minValue) |
Parameter |
Input/Output |
Description |
|---|---|---|
maxValue |
Output |
Maximum size of the temporary space required by ArithProgression computation. NOTE:
maxValue is for reference only and may be larger than the available space of the Unified Buffer. In this case, select a proper temporary space size based on the remaining space of the Unified Buffer. |
minValue |
Output |
Minimum size of the temporary space required by ArithProgression computation. |
Returns
None
Examples
1 2 3 | uint32_t maxValue = 0; uint32_t minValue = 0; AscendC::GetArithProgressionMaxMinTmpSize(maxValue, minValue); |
Parent topic: Index Operations