~ubuntu-branches/ubuntu/utopic/libthrust/utopic

« back to all changes in this revision

Viewing changes to system/cuda/detail/scan.inl

  • Committer: Package Import Robot
  • Author(s): Andreas Beckmann
  • Date: 2013-07-10 12:57:33 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20130710125733-my19jic71sqsabaj
Tags: 1.7.0-1
* New upstream release.  (Closes: #715362)
* Update watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
namespace detail
34
34
{
35
35
 
36
 
template<typename InputIterator,
 
36
template<typename DerivedPolicy,
 
37
         typename InputIterator,
37
38
         typename OutputIterator,
38
39
         typename AssociativeOperator>
39
 
  OutputIterator inclusive_scan(tag,
 
40
  OutputIterator inclusive_scan(execution_policy<DerivedPolicy> &exec,
40
41
                                InputIterator first,
41
42
                                InputIterator last,
42
43
                                OutputIterator result,
49
50
    // ========================================================================
50
51
    THRUST_STATIC_ASSERT( (thrust::detail::depend_on_instantiation<InputIterator, THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC>::value) );
51
52
    
52
 
    return thrust::system::cuda::detail::detail::fast_scan::inclusive_scan
53
 
        (first, last, result, binary_op);
 
53
    return thrust::system::cuda::detail::detail::fast_scan::inclusive_scan(exec, first, last, result, binary_op);
54
54
}
55
55
 
56
 
template<typename InputIterator,
 
56
template<typename DerivedPolicy,
 
57
         typename InputIterator,
57
58
         typename OutputIterator,
58
59
         typename T,
59
60
         typename AssociativeOperator>
60
 
  OutputIterator exclusive_scan(tag,
 
61
  OutputIterator exclusive_scan(execution_policy<DerivedPolicy> &exec,
61
62
                                InputIterator first,
62
63
                                InputIterator last,
63
64
                                OutputIterator result,
71
72
    // ========================================================================
72
73
    THRUST_STATIC_ASSERT( (thrust::detail::depend_on_instantiation<InputIterator, THRUST_DEVICE_COMPILER == THRUST_DEVICE_COMPILER_NVCC>::value) );
73
74
 
74
 
    return thrust::system::cuda::detail::detail::fast_scan::exclusive_scan
75
 
        (first, last, result, init, binary_op);
 
75
    return thrust::system::cuda::detail::detail::fast_scan::exclusive_scan(exec, first, last, result, init, binary_op);
76
76
}
77
77
 
78
78
} // end namespace detail