eyalroz / cuda-api-wrappers

Thin, unified, C++-flavored wrappers for the CUDA APIs
BSD 3-Clause "New" or "Revised" License
790 stars 80 forks source link

Support num_blocks() as an alias for grid_size() in the launch config builder #498

Closed eyalroz closed 1 year ago

eyalroz commented 1 year ago

Some people will find it more intuitive / less confusing to write

my_build.num_blocks(123).build()

rather than

my_build.grid_size(123).build()

as the former better clarifies that it's not the overall grid size. So let's add that as an alias.