From b9a2617b18d7979ff1b463f133884cfd70bbe2a5 Mon Sep 17 00:00:00 2001 From: Cedric Augonnet Date: Fri, 11 Oct 2024 13:17:46 +0200 Subject: [PATCH] Remove useless const keywords --- .../cuda/experimental/__stf/places/blocked_partition.cuh | 2 +- cudax/include/cuda/experimental/__stf/places/cyclic_shape.cuh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cudax/include/cuda/experimental/__stf/places/blocked_partition.cuh b/cudax/include/cuda/experimental/__stf/places/blocked_partition.cuh index 27a0e5e198b..8f1c042e885 100644 --- a/cudax/include/cuda/experimental/__stf/places/blocked_partition.cuh +++ b/cudax/include/cuda/experimental/__stf/places/blocked_partition.cuh @@ -64,7 +64,7 @@ public: } template - 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(); diff --git a/cudax/include/cuda/experimental/__stf/places/cyclic_shape.cuh b/cudax/include/cuda/experimental/__stf/places/cyclic_shape.cuh index 9e8e850d051..98134e69349 100644 --- a/cudax/include/cuda/experimental/__stf/places/cyclic_shape.cuh +++ b/cudax/include/cuda/experimental/__stf/places/cyclic_shape.cuh @@ -202,7 +202,7 @@ public: cyclic_partition() = default; template - CUDASTF_HOST_DEVICE static const auto apply(const box& in, pos4 place_position, dim4 grid_dims) + CUDASTF_HOST_DEVICE static auto apply(const box& in, pos4 place_position, dim4 grid_dims) { ::std::array begins; ::std::array ends; @@ -218,7 +218,7 @@ public: } template - 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();