Bolt  1.3
C++ template library with support for OpenCL
gather.h
Go to the documentation of this file.
1 /***************************************************************************
2 * © 2012,2014 Advanced Micro Devices, Inc. All rights reserved.
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_AMP_GATHER_H )
19 #define BOLT_AMP_GATHER_H
20 #pragma once
21 
22 #include "bolt/amp/device_vector.h"
23 
29 namespace bolt {
30  namespace amp {
31 
76  template< typename InputIterator1,
77  typename InputIterator2,
78  typename OutputIterator >
79  void gather( ::bolt::amp::control &ctl,
80  InputIterator1 map_first,
81  InputIterator1 map_last,
82  InputIterator2 input_first,
83  OutputIterator result );
84 
85  template< typename InputIterator1,
86  typename InputIterator2,
87  typename OutputIterator >
88  void gather( InputIterator1 map_first,
89  InputIterator1 map_last,
90  InputIterator2 input_first,
91  OutputIterator result );
92 
93 
127  template< typename InputIterator1,
128  typename InputIterator2,
129  typename InputIterator3,
130  typename OutputIterator >
131  void gather_if( bolt::amp::control &ctl,
132  InputIterator1 map_first,
133  InputIterator1 map_last,
134  InputIterator2 stencil,
135  InputIterator3 input_first,
136  OutputIterator result);
137 
138  template< typename InputIterator1,
139  typename InputIterator2,
140  typename InputIterator3,
141  typename OutputIterator >
142  void gather_if( InputIterator1 map_first,
143  InputIterator1 map_last,
144  InputIterator2 stencil,
145  InputIterator3 input_first,
146  OutputIterator result);
147 
194  template< typename InputIterator1,
195  typename InputIterator2,
196  typename InputIterator3,
197  typename OutputIterator,
198  typename Predicate >
199  void gather_if( bolt::amp::control &ctl,
200  InputIterator1 map_first,
201  InputIterator1 map_last,
202  InputIterator2 stencil,
203  InputIterator3 input,
204  OutputIterator result,
205  Predicate pred);
206 
207  template< typename InputIterator1,
208  typename InputIterator2,
209  typename InputIterator3,
210  typename OutputIterator,
211  typename Predicate >
212  void gather_if( InputIterator1 map_first,
213  InputIterator1 map_last,
214  InputIterator2 stencil,
215  InputIterator3 input,
216  OutputIterator result,
217  Predicate pred );
218 
219 
221  };
222 };
223 
224 #include <bolt/amp/detail/gather.inl>
225 #endif