OSDN Git Service

CUDA
[eos/hostdependX86LINUX64.git] / util / X86LINUX64 / cuda-6.5 / include / thrust / system / cuda / detail / detail / fast_scan.h
1 /*
2  *  Copyright 2008-2013 NVIDIA Corporation
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 /*! \file fast_scan.h
19  *  \brief A fast scan for primitive types.
20  */
21
22 #pragma once
23
24 namespace thrust
25 {
26 namespace system
27 {
28 namespace cuda
29 {
30 namespace detail
31 {
32 namespace detail
33 {
34 namespace fast_scan
35 {
36
37 template <typename ExecutionPolicy,
38           typename InputIterator,
39           typename OutputIterator,
40           typename BinaryFunction>
41 OutputIterator inclusive_scan(execution_policy<ExecutionPolicy> &exec,
42                               InputIterator first,
43                               InputIterator last,
44                               OutputIterator output,
45                               BinaryFunction binary_op);
46
47 template <typename ExecutionPolicy,
48           typename InputIterator,
49           typename OutputIterator,
50           typename T,
51           typename BinaryFunction>
52 OutputIterator exclusive_scan(execution_policy<ExecutionPolicy> &exec,
53                               InputIterator first,
54                               InputIterator last,
55                               OutputIterator output,
56                               const T init,
57                               BinaryFunction binary_op);
58
59 } // end namespace fast_scan
60 } // end namespace detail
61 } // end namespace detail
62 } // end namespace cuda
63 } // end namespace system
64 } // end namespace thrust
65
66 #include "fast_scan.inl"
67