30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_SCAN_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_SCAN_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_scan.cuh>
37 BEGIN_HIPCUB_NAMESPACE
43 typename InputIteratorT,
44 typename OutputIteratorT
46 HIPCUB_RUNTIME_FUNCTION
static
47 hipError_t InclusiveSum(
void *d_temp_storage,
48 size_t &temp_storage_bytes,
50 OutputIteratorT d_out,
52 hipStream_t stream = 0,
53 bool debug_synchronous =
false)
55 return hipCUDAErrorTohipError(
56 ::cub::DeviceScan::InclusiveSum(
57 d_temp_storage, temp_storage_bytes,
58 d_in, d_out, num_items,
59 stream, debug_synchronous
65 typename InputIteratorT,
66 typename OutputIteratorT,
69 HIPCUB_RUNTIME_FUNCTION
static
70 hipError_t InclusiveScan(
void *d_temp_storage,
71 size_t &temp_storage_bytes,
73 OutputIteratorT d_out,
76 hipStream_t stream = 0,
77 bool debug_synchronous =
false)
79 return hipCUDAErrorTohipError(
80 ::cub::DeviceScan::InclusiveScan(
81 d_temp_storage, temp_storage_bytes,
82 d_in, d_out, scan_op, num_items,
83 stream, debug_synchronous
89 typename InputIteratorT,
90 typename OutputIteratorT
92 HIPCUB_RUNTIME_FUNCTION
static
93 hipError_t ExclusiveSum(
void *d_temp_storage,
94 size_t &temp_storage_bytes,
96 OutputIteratorT d_out,
98 hipStream_t stream = 0,
99 bool debug_synchronous =
false)
101 return hipCUDAErrorTohipError(
102 ::cub::DeviceScan::ExclusiveSum(
103 d_temp_storage, temp_storage_bytes,
104 d_in, d_out, num_items,
105 stream, debug_synchronous
111 typename InputIteratorT,
112 typename OutputIteratorT,
116 HIPCUB_RUNTIME_FUNCTION
static
117 hipError_t ExclusiveScan(
void *d_temp_storage,
118 size_t &temp_storage_bytes,
120 OutputIteratorT d_out,
122 InitValueT init_value,
124 hipStream_t stream = 0,
125 bool debug_synchronous =
false)
127 return hipCUDAErrorTohipError(
128 ::cub::DeviceScan::ExclusiveScan(
129 d_temp_storage, temp_storage_bytes,
130 d_in, d_out, scan_op, init_value, num_items,
131 stream, debug_synchronous
Definition: device_scan.hpp:40