Skip to content

Commit

Permalink
adds comment on const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
elstehle committed Oct 8, 2024
1 parent 9475d95 commit 6f0bd00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cub/cub/agent/agent_select_if.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ struct AgentSelectIf
InequalityWrapper<EqualityOpT> inequality_op; ///< T inequality operator
SelectOpT select_op; ///< Selection operator
OffsetT num_items; ///< Total number of input items

// Note: This is a const reference because we have seen double-digit percentage perf regressions otherwise
const StreamingContextT& streaming_context; ///< Context for the current partition

//---------------------------------------------------------------------
Expand Down

0 comments on commit 6f0bd00

Please sign in to comment.