Bolt  1.3
C++ template library with support for OpenCL
copy.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_CL_COPY_H )
19 #define BOLT_CL_COPY_H
20 #pragma once
21 
22 #include "bolt/cl/device_vector.h"
23 
24 #include <string>
25 #include <iostream>
26 
31 namespace bolt {
32  namespace cl {
33 
84  template<typename InputIterator, typename OutputIterator>
85  OutputIterator copy(
86  const bolt::cl::control &ctl,
87  InputIterator first,
88  InputIterator last,
89  OutputIterator result,
90  const std::string& user_code="");
91 
92  template<typename InputIterator, typename OutputIterator>
93  OutputIterator copy(
94  InputIterator first,
95  InputIterator last,
96  OutputIterator result,
97  const std::string& user_code="");
98 
139  template<typename InputIterator, typename Size, typename OutputIterator>
140  OutputIterator copy_n(
141  const bolt::cl::control &ctl,
142  InputIterator first,
143  Size n,
144  OutputIterator result,
145  const std::string& user_code="");
146 
147  template<typename InputIterator, typename Size, typename OutputIterator>
148  OutputIterator copy_n(
149  InputIterator first,
150  Size n,
151  OutputIterator result,
152  const std::string& user_code="");
153 
155  };
156 };
157 
158 #include <bolt/cl/detail/copy.inl>
159 #endif