Skip to content

Commit

Permalink
Fixes #498: Support num_blocks() as an alias of grid_size() as la…
Browse files Browse the repository at this point in the history
…unch config builder methods
  • Loading branch information
eyalroz committed Apr 23, 2023
1 parent 6b5a0db commit c4c1e88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cuda/api/launch_config_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ class launch_config_builder_t {
return grid_dimensions(grid::dimensions_t{x, y, z});
}

launch_config_builder_t& grid_size(grid::dimension_t size) {return grid_dimensions(size, 1, 1); }
launch_config_builder_t& grid_size(grid::dimension_t size) {return grid_dimensions(size, 1, 1); }
launch_config_builder_t& num_blocks(grid::dimension_t size) {return grid_size(size); }

launch_config_builder_t& overall_dimensions(grid::overall_dimensions_t dims)
{
Expand Down

0 comments on commit c4c1e88

Please sign in to comment.