Skip to content

Commit

Permalink
Remove useless const keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
caugonnet committed Oct 11, 2024
1 parent f7608d0 commit b9a2617
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public:
}

template <typename mdspan_shape_t>
CUDASTF_HOST_DEVICE static const auto apply(const mdspan_shape_t& in, pos4 place_position, dim4 grid_dims)
CUDASTF_HOST_DEVICE static auto apply(const mdspan_shape_t& in, pos4 place_position, dim4 grid_dims)
{
constexpr size_t dimensions = mdspan_shape_t::rank();

Expand Down
4 changes: 2 additions & 2 deletions cudax/include/cuda/experimental/__stf/places/cyclic_shape.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ public:
cyclic_partition() = default;

template <size_t dimensions>
CUDASTF_HOST_DEVICE static const auto apply(const box<dimensions>& in, pos4 place_position, dim4 grid_dims)
CUDASTF_HOST_DEVICE static auto apply(const box<dimensions>& in, pos4 place_position, dim4 grid_dims)
{
::std::array<size_t, dimensions> begins;
::std::array<size_t, dimensions> ends;
Expand All @@ -218,7 +218,7 @@ public:
}

template <typename mdspan_shape_t>
CUDASTF_HOST_DEVICE static const auto apply(const mdspan_shape_t& in, pos4 place_position, dim4 grid_dims)
CUDASTF_HOST_DEVICE static auto apply(const mdspan_shape_t& in, pos4 place_position, dim4 grid_dims)
{
constexpr size_t dimensions = mdspan_shape_t::rank();

Expand Down

0 comments on commit b9a2617

Please sign in to comment.