MCPcopy Create free account
hub / github.com/boostorg/compute / stable_sort

Function stable_sort

include/boost/compute/algorithm/stable_sort.hpp:70–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68/// \see sort(), is_sorted()
69template<class Iterator, class Compare>
70inline void stable_sort(Iterator first,
71 Iterator last,
72 Compare compare,
73 command_queue &queue = system::default_queue())
74{
75 if(queue.get_device().type() & device::gpu) {
76 ::boost::compute::detail::dispatch_gpu_stable_sort(
77 first, last, compare, queue
78 );
79 }
80 ::boost::compute::detail::merge_sort_on_cpu(first, last, compare, queue);
81}
82
83/// \overload
84template<class Iterator>

Callers 2

BOOST_AUTO_TEST_CASEFunction · 0.85

Calls 4

dispatch_gpu_stable_sortFunction · 0.85
merge_sort_on_cpuFunction · 0.85
typeMethod · 0.45
get_deviceMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.68