hipCUB: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hipcub/checkouts/docs-5.4.4/hipcub/include/hipcub/backend/cub/device/device_partition.hpp Source File
30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_PARTITION_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_PARTITION_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_partition.cuh>
37 BEGIN_HIPCUB_NAMESPACE
39 struct DevicePartition
42 typename InputIteratorT,
43 typename FlagIterator,
44 typename OutputIteratorT,
45 typename NumSelectedIteratorT>
46 HIPCUB_RUNTIME_FUNCTION __forceinline__
47 static hipError_t Flagged(
49 size_t &temp_storage_bytes,
52 OutputIteratorT d_out,
53 NumSelectedIteratorT d_num_selected_out,
55 hipStream_t stream = 0,
56 bool debug_synchronous =
false )
58 return hipCUDAErrorTohipError(
59 ::cub::DevicePartition::Flagged(
74 typename InputIteratorT,
75 typename OutputIteratorT,
76 typename NumSelectedIteratorT,
78 HIPCUB_RUNTIME_FUNCTION __forceinline__
81 size_t &temp_storage_bytes,
83 OutputIteratorT d_out,
84 NumSelectedIteratorT d_num_selected_out,
87 hipStream_t stream = 0,
88 bool debug_synchronous =
false )
90 return hipCUDAErrorTohipError(
91 ::cub::DevicePartition::If(
105 template <
typename InputIteratorT,
106 typename FirstOutputIteratorT,
107 typename SecondOutputIteratorT,
108 typename UnselectedOutputIteratorT,
109 typename NumSelectedIteratorT,
110 typename SelectFirstPartOp,
111 typename SelectSecondPartOp>
112 HIPCUB_RUNTIME_FUNCTION __forceinline__
static hipError_t
113 If (
void *d_temp_storage,
114 std::size_t &temp_storage_bytes,
116 FirstOutputIteratorT d_first_part_out,
117 SecondOutputIteratorT d_second_part_out,
118 UnselectedOutputIteratorT d_unselected_out,
119 NumSelectedIteratorT d_num_selected_out,
121 SelectFirstPartOp select_first_part_op,
122 SelectSecondPartOp select_second_part_op,
123 hipStream_t stream = 0,
124 bool debug_synchronous =
false )
126 return hipCUDAErrorTohipError(
127 ::cub::DevicePartition::If(
136 select_first_part_op,
137 select_second_part_op,
147 #endif // HIPCUB_CUB_DEVICE_DEVICE_PARTITION_HPP_
Definition: util_type.hpp:79