Developer Reference for Intel® Integrated Performance Primitives
Computes the size of the buffer for the TopK function.
IppStatus ippsTopKGetBufferSize(Ipp64s srcLen, Ipp64s dstLen, IppDataType dataType, IppTopKMode hint, Ipp64s* bufSize);
ipps.h
Headers: ippcore.h, ippvm.h
Libraries: ippcore.lib, ippvm.lib
srcLen |
Number of elements in the source vector. |
dstLen |
Number of K values to be returned, the function returns min(K, dstLen) elements. |
dataType |
Data type of the vector. |
hint |
Parameter to choose the optimization that is most suitable for the srcLen+dstlen(K) combination, supported values: ippTopKAuto/ ippTopKDirect/ ippTopKRadix. |
bufSize |
Size of the required work buffer. |
This function computes the size of the work buffer required for the ippsTopK function.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error when bufSize is NULL. |
ippStsSizeErr |
Indicates an error when at least one of the srcLen or dstLen values is less than, or equal to zero. |
ippStsBadArgErr |
Indicates an error when the hint value is not supported. |