Skip to content

Commit 6f0bd00

Browse files
committed
adds comment on const ref
1 parent 9475d95 commit 6f0bd00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cub/cub/agent/agent_select_if.cuh

+2
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ struct AgentSelectIf
316316
InequalityWrapper<EqualityOpT> inequality_op; ///< T inequality operator
317317
SelectOpT select_op; ///< Selection operator
318318
OffsetT num_items; ///< Total number of input items
319+
320+
// Note: This is a const reference because we have seen double-digit percentage perf regressions otherwise
319321
const StreamingContextT& streaming_context; ///< Context for the current partition
320322

321323
//---------------------------------------------------------------------

0 commit comments

Comments
 (0)