Skip to content

Commit

Permalink
Fixed a missing namespace qualification the array_management exampl…
Browse files Browse the repository at this point in the history
…e program
  • Loading branch information
eyalroz committed Feb 5, 2024
1 parent 6c5cd1e commit 51948cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/other/array_management.cu
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ void array_2d_example(cuda::device_t& device, size_t w, size_t h)
cuda::texture_view tv(arr);

constexpr cuda::grid::block_dimension_t block_dim = 10;
assert(div_rounding_up(w, block_dim) <= std::numeric_limits<grid::dimension_t>::max());
assert(div_rounding_up(h, block_dim) <= std::numeric_limits<grid::dimension_t>::max());
assert(div_rounding_up(w, block_dim) <= std::numeric_limits<cuda::grid::dimension_t>::max());
assert(div_rounding_up(h, block_dim) <= std::numeric_limits<cuda::grid::dimension_t>::max());
auto launch_config = cuda::launch_config_builder()
.overall_dimensions(w, h)
.block_dimensions(block_dim, block_dim)
Expand Down

0 comments on commit 51948cb

Please sign in to comment.