30 #ifndef HIPCUB_CUB_DEVICE_DEVICE_RUN_LENGTH_ENCODE_HPP_
31 #define HIPCUB_CUB_DEVICE_DEVICE_RUN_LENGTH_ENCODE_HPP_
33 #include "../../../config.hpp"
35 #include <cub/device/device_run_length_encode.cuh>
37 BEGIN_HIPCUB_NAMESPACE
43 typename InputIteratorT,
44 typename UniqueOutputIteratorT,
45 typename LengthsOutputIteratorT,
46 typename NumRunsOutputIteratorT
48 HIPCUB_RUNTIME_FUNCTION
static
49 hipError_t Encode(
void * d_temp_storage,
50 size_t& temp_storage_bytes,
52 UniqueOutputIteratorT d_unique_out,
53 LengthsOutputIteratorT d_counts_out,
54 NumRunsOutputIteratorT d_num_runs_out,
56 hipStream_t stream = 0,
57 bool debug_synchronous =
false)
59 return hipCUDAErrorTohipError(
60 ::cub::DeviceRunLengthEncode::Encode(
61 d_temp_storage, temp_storage_bytes,
63 d_unique_out, d_counts_out, d_num_runs_out,
65 stream, debug_synchronous
71 typename InputIteratorT,
72 typename OffsetsOutputIteratorT,
73 typename LengthsOutputIteratorT,
74 typename NumRunsOutputIteratorT
76 HIPCUB_RUNTIME_FUNCTION
static
77 hipError_t NonTrivialRuns(
void * d_temp_storage,
78 size_t& temp_storage_bytes,
80 OffsetsOutputIteratorT d_offsets_out,
81 LengthsOutputIteratorT d_lengths_out,
82 NumRunsOutputIteratorT d_num_runs_out,
84 hipStream_t stream = 0,
85 bool debug_synchronous =
false)
87 return hipCUDAErrorTohipError(
88 ::cub::DeviceRunLengthEncode::NonTrivialRuns(
89 d_temp_storage, temp_storage_bytes,
91 d_offsets_out, d_lengths_out, d_num_runs_out,
93 stream, debug_synchronous
Definition: device_run_length_encode.hpp:40