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 return hipCUDAErrorTohipError(
54 ::cub::DeviceAdjacentDifference::SubtractLeftCopy(
55 d_temp_storage, temp_storage_bytes, d_input, d_output,
56 num_items, difference_op, stream, debug_synchronous
61 template<
typename RandomAccessIteratorT,
62 typename DifferenceOpT = ::cub::Difference,
63 typename NumItemsT = std::uint32_t>
64 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractLeft(
void* d_temp_storage,
65 std::size_t& temp_storage_bytes,
66 RandomAccessIteratorT d_input,
68 DifferenceOpT difference_op = {},
69 hipStream_t stream = 0,
70 bool debug_synchronous =
false)
72 return hipCUDAErrorTohipError(
73 ::cub::DeviceAdjacentDifference::SubtractLeft(
74 d_temp_storage, temp_storage_bytes, d_input,
75 num_items, difference_op, stream, debug_synchronous
80 template<
typename InputIteratorT,
81 typename OutputIteratorT,
82 typename DifferenceOpT = ::cub::Difference,
83 typename NumItemsT = std::uint32_t>
84 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractRightCopy(
void* d_temp_storage,
85 std::size_t& temp_storage_bytes,
86 InputIteratorT d_input,
87 OutputIteratorT d_output,
89 DifferenceOpT difference_op = {},
90 hipStream_t stream = 0,
91 bool debug_synchronous =
false)
93 return hipCUDAErrorTohipError(
94 ::cub::DeviceAdjacentDifference::SubtractRightCopy(
95 d_temp_storage, temp_storage_bytes, d_input, d_output,
96 num_items, difference_op, stream, debug_synchronous
101 template<
typename RandomAccessIteratorT,
102 typename DifferenceOpT = ::cub::Difference,
103 typename NumItemsT = std::uint32_t>
104 static HIPCUB_RUNTIME_FUNCTION hipError_t SubtractRight(
void* d_temp_storage,
105 std::size_t& temp_storage_bytes,
106 RandomAccessIteratorT d_input,
108 DifferenceOpT difference_op = {},
109 hipStream_t stream = 0,
110 bool debug_synchronous =
false)
112 return hipCUDAErrorTohipError(
113 ::cub::DeviceAdjacentDifference::SubtractRight(
114 d_temp_storage, temp_storage_bytes, d_input,
115 num_items, difference_op, stream, debug_synchronous
Definition: device_adjacent_difference.hpp:39