Bolt  1.1
C++ template library with support for OpenCL
sort.h
Go to the documentation of this file.
1 /***************************************************************************
2 * Copyright 2012 - 2013 Advanced Micro Devices, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 
16 ***************************************************************************/
17 
18 #if !defined( BOLT_CL_SORT_H )
19 #define BOLT_CL_SORT_H
20 #pragma once
21 
22 #include <bolt/cl/bolt.h>
23 #include <string>
24 
25 
26 
32 namespace bolt {
33  namespace cl {
34 
35 
86  template<typename RandomAccessIterator>
87  void sort(bolt::cl::control &ctl,
88  RandomAccessIterator first,
89  RandomAccessIterator last,
90  const std::string& cl_code="");
91 
92  template<typename RandomAccessIterator>
93  void sort(RandomAccessIterator first,
94  RandomAccessIterator last,
95  const std::string& cl_code="");
96 
134  template<typename RandomAccessIterator, typename StrictWeakOrdering>
135  void sort(bolt::cl::control &ctl,
136  RandomAccessIterator first,
137  RandomAccessIterator last,
138  StrictWeakOrdering comp,
139  const std::string& cl_code="");
140 
141 
142  template<typename RandomAccessIterator, typename StrictWeakOrdering>
143  void sort(RandomAccessIterator first,
144  RandomAccessIterator last,
145  StrictWeakOrdering comp,
146  const std::string& cl_code="");
147 
148 
151  }// end of bolt::cl namespace
152 }// end of bolt namespace
153 
154 #include <bolt/cl/detail/sort.inl>
155 #endif