Skip to content

Question about cuda parallelism #1040

Answered by jrhemstad
trsh asked this question in Thrust
Feb 21, 2023 · 0 comments · 7 replies
Discussion options

You must be logged in to vote

What are those parameters? Is it auto adjusted for max parallelism?

We generally refer to things like block size, items per thread, etc. as "tuning parameters". They are not currently exposed for users to control.

Internally within Thrust and CUB we statically dispatch to a particular set of tuning parameters based on the algorithm and the architecture you're running on. The tuning parameters we select are necessarily a compromise based on what our benchmarking has found to be the "best" in the most cases.

This can often be unsatisfying if your use case happens to not perform well with the tuning parameters we have selected. As a result, it is on our roadmap for this year to design exte…

Replies: 0 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@jrhemstad
Comment options

@trsh
Comment options

@jrhemstad
Comment options

@trsh
Comment options

@jrhemstad
Comment options

Answer selected by trsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Thrust
Labels
None yet
2 participants