29 #ifndef HIPCUB_CUB_DEVICE_DEVICE_ADJACENT_DIFFERENCE_HPP_
30 #define HIPCUB_CUB_DEVICE_DEVICE_ADJACENT_DIFFERENCE_HPP_
32 #include "../../../config.hpp"
34 #include <cub/device/device_adjacent_difference.cuh>
36 BEGIN_HIPCUB_NAMESPACE
40 template<
typename InputIteratorT,
41 typename OutputIteratorT,
42 typename DifferenceOpT = ::cub::Difference,
43 typename NumItemsT = std::uint32_t>
44 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractLeftCopy(
void* d_temp_storage,
45 std::size_t& temp_storage_bytes,
46 InputIteratorT d_input,
47 OutputIteratorT d_output,
49 DifferenceOpT difference_op = {},
50 hipStream_t stream = 0,
51 bool debug_synchronous =
false)
53 (void)debug_synchronous;
54 return hipCUDAErrorTohipError(
55 ::cub::DeviceAdjacentDifference::SubtractLeftCopy(d_temp_storage,
64 template<
typename RandomAccessIteratorT,
65 typename DifferenceOpT = ::cub::Difference,
66 typename NumItemsT = std::uint32_t>
67 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractLeft(
void* d_temp_storage,
68 std::size_t& temp_storage_bytes,
69 RandomAccessIteratorT d_input,
71 DifferenceOpT difference_op = {},
72 hipStream_t stream = 0,
73 bool debug_synchronous =
false)
75 (void)debug_synchronous;
76 return hipCUDAErrorTohipError(
77 ::cub::DeviceAdjacentDifference::SubtractLeft(d_temp_storage,
85 template<
typename InputIteratorT,
86 typename OutputIteratorT,
87 typename DifferenceOpT = ::cub::Difference,
88 typename NumItemsT = std::uint32_t>
89 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractRightCopy(
void* d_temp_storage,
90 std::size_t& temp_storage_bytes,
91 InputIteratorT d_input,
92 OutputIteratorT d_output,
94 DifferenceOpT difference_op = {},
95 hipStream_t stream = 0,
96 bool debug_synchronous =
false)
98 (void)debug_synchronous;
99 return hipCUDAErrorTohipError(
100 ::cub::DeviceAdjacentDifference::SubtractRightCopy(d_temp_storage,
109 template<
typename RandomAccessIteratorT,
110 typename DifferenceOpT = ::cub::Difference,
111 typename NumItemsT = std::uint32_t>
112 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractRight(
void* d_temp_storage,
113 std::size_t& temp_storage_bytes,
114 RandomAccessIteratorT d_input,
116 DifferenceOpT difference_op = {},
117 hipStream_t stream = 0,
118 bool debug_synchronous =
false)
120 (void)debug_synchronous;
121 return hipCUDAErrorTohipError(
122 ::cub::DeviceAdjacentDifference::SubtractRight(d_temp_storage,
Definition: device_adjacent_difference.hpp:39