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

Function dispatch_sort

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

Source from the content-addressed store, hash-verified

107// sort() for device iterators
108template<class Iterator, class Compare>
109inline void dispatch_sort(Iterator first,
110 Iterator last,
111 Compare compare,
112 command_queue &queue,
113 typename boost::enable_if<
114 is_device_iterator<Iterator>
115 >::type* = 0)
116{
117 if(queue.get_device().type() & device::gpu) {
118 dispatch_gpu_sort(first, last, compare, queue);
119 return;
120 }
121 ::boost::compute::detail::merge_sort_on_cpu(first, last, compare, queue);
122}
123
124// sort() for host iterators
125template<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