Skip to content

Commit

Permalink
Fixes #569: Avoiding a compiler warning in release mode by only defin…
Browse files Browse the repository at this point in the history
…ing `validate_all_dimensions_compatibility()` when `NDEBUG` is undefined
  • Loading branch information
eyalroz committed Jan 6, 2024
1 parent 9d5818e commit 9e5ebaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cuda/api/launch_config_builder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ inline dimensions_t div_rounding_up(overall_dimensions_t overall_dims, block_dim

} // namespace grid

#ifndef NDEBUG

namespace detail_ {

static void validate_all_dimensions_compatibility(
Expand All @@ -58,6 +60,8 @@ static void validate_all_dimensions_compatibility(

} // namespace detail_

#endif // NDEBUG

class launch_config_builder_t {
protected:
memory::shared::size_t get_dynamic_shared_memory_size(grid::block_dimensions_t block_dims) const
Expand Down

0 comments on commit 9e5ebaf

Please sign in to comment.