Skip to content
Discussion options

You must be logged in to vote

Thank you for expressing your interest in exploring CUB's codebase, @Wilson1211!

Implementation Details

I can understand that the CUB dispatch mechanism can be overwhelming at times to developers that are new to CUB's codebase. You will find the implementation details in the Agent* of the respective algorithm, e.g., AgentReduce in cub/agent/agent_reduce.cuh.

Call Trace

I think the next step in the call trace is:

The dispatch object's Invoke function is then called with the best policy for the device's PTX version:

The call trace of CUB's dispatch mechanism is outlined in the Dispatch Layer section of CUB's Developer Overview - that may be a good starting point for you.

For DeviceReduce

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Wilson1211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
CUB
Labels
None yet
2 participants