| 107 | // sort() for device iterators |
| 108 | template<class Iterator, class Compare> |
| 109 | inline 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 |
| 125 | template<class Iterator, class Compare> |
no test coverage detected