Partial Sort#

Configuring the kernel#

template<class NthElementConfig, class MergeSortConfig = default_config, class RadixSortConfig = default_config>
struct partial_sort_config#

Configuration of device-level partial sort.

Template Parameters:

partial_sort#

Warning

doxygenfunction: Unable to resolve function “rocprim::partial_sort” with arguments (void*, size_t&, KeysIterator, size_t, size_t, BinaryFunction, hipStream_t, bool) in doxygen xml output for project “rocPRIM” from directory: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocprim/checkouts/develop/docs/doxygen/xml. Potential matches:

- template<class Config = default_config, class KeysIterator, class BinaryFunction = ::rocprim::less<typename std::iterator_traits<KeysIterator>::value_type>, class Decomposer = ::rocprim::identity_decomposer> hipError_t partial_sort(void *temporary_storage, size_t &storage_size, KeysIterator keys, size_t middle, size_t size, BinaryFunction compare_function = BinaryFunction(), hipStream_t stream = 0, bool debug_synchronous = false, Decomposer decomposer = {})

Warning

doxygenfunction: Unable to resolve function “rocprim::partial_sort_copy” with arguments (void*, size_t&, KeysInputIterator, KeysOutputIterator, size_t, size_t, BinaryFunction, hipStream_t, bool) in doxygen xml output for project “rocPRIM” from directory: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocprim/checkouts/develop/docs/doxygen/xml. Potential matches:

- template<class Config = default_config, class KeysInputIterator, class KeysOutputIterator, class BinaryFunction = ::rocprim::less<typename std::iterator_traits<KeysInputIterator>::value_type>, class Decomposer = ::rocprim::identity_decomposer> hipError_t partial_sort_copy(void *temporary_storage, size_t &storage_size, KeysInputIterator keys_input, KeysOutputIterator keys_output, size_t middle, size_t size, BinaryFunction compare_function = BinaryFunction(), hipStream_t stream = 0, bool debug_synchronous = false, Decomposer decomposer = Decomposer())