Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
In-place guarantees for RLE
Browse files Browse the repository at this point in the history
  • Loading branch information
gevtushenko committed May 31, 2022
1 parent 4382cfb commit d4ac304
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cub/device/device_run_length_encode.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ struct DeviceRunLengthEncode
* - The total number of runs encountered is written to `d_num_runs_out`.
* - The `==` equality operator is used to determine whether values are
* equivalent
* - Let `out` represent a set of following ranges
* `[d_unique_out, d_unique_out + *d_num_runs_out)`,
* `[d_counts_out, d_counts_out + *d_num_runs_out)`,
* `d_num_runs_out`. There shall be no overlap between ranges represented
* by `out`. The range `[d_in, d_in + num_items)` shall not overlap `out`.
* - @devicestorage
*
* @par Performance
Expand Down Expand Up @@ -249,6 +254,11 @@ struct DeviceRunLengthEncode
* - The total number of runs encountered is written to `d_num_runs_out`.
* - The `==` equality operator is used to determine whether values are
* equivalent
* - Let `out` represent a set of following ranges
* `[d_offsets_out, d_offsets_out + *d_num_runs_out)`,
* `[d_lengths_out, d_lengths_out + *d_num_runs_out)`,
* `d_num_runs_out`. There shall be no overlap between ranges represented
* by `out`. The range `[d_in, d_in + num_items)` shall not overlap `out`.
* - @devicestorage
*
* @par Performance
Expand Down

0 comments on commit d4ac304

Please sign in to comment.