| 96 | // sort() for device iterators |
| 97 | template<class Iterator, class Compare> |
| 98 | inline 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 |
| 114 | template<class Iterator, class Compare> |
no test coverage detected