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

Function dispatch_sort

include/boost/compute/algorithm/sort.hpp:98–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96// sort() for device iterators
97template<class Iterator, class Compare>
98inline void dispatch_sort(Iterator first,
99 Iterator last,
100 Compare compare,
101 command_queue &queue,
102 typename boost::enable_if<
103 is_device_iterator<Iterator>
104 >::type* = 0)
105{
106 if(queue.get_device().type() & device::gpu) {
107 dispatch_gpu_sort(first, last, compare, queue);
108 return;
109 }
110 ::boost::compute::detail::merge_sort_on_cpu(first, last, compare, queue);
111}
112
113// sort() for host iterators
114template<class Iterator, class Compare>

Callers 1

sortFunction · 0.85

Calls 8

dispatch_gpu_sortFunction · 0.85
merge_sort_on_cpuFunction · 0.85
mapMethod · 0.80
typeMethod · 0.45
get_deviceMethod · 0.45
get_contextMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected