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 (void)debug_synchronous;
60 return hipCUDAErrorTohipError(::cub::DeviceRunLengthEncode::Encode(d_temp_storage,
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 (void)debug_synchronous;
88 return hipCUDAErrorTohipError(
89 ::cub::DeviceRunLengthEncode::NonTrivialRuns(d_temp_storage,
Definition: device_run_length_encode.hpp:40