From 887d3d3b744fababba3b5e61d185e2d5d1717c9d Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Fri, 27 Sep 2024 15:55:07 -0700 Subject: [PATCH] Add strongly typed index support for TensorIndex. --- include/RAJA/pattern/tensor/TensorIndex.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/RAJA/pattern/tensor/TensorIndex.hpp b/include/RAJA/pattern/tensor/TensorIndex.hpp index f992649876..379e13ae41 100644 --- a/include/RAJA/pattern/tensor/TensorIndex.hpp +++ b/include/RAJA/pattern/tensor/TensorIndex.hpp @@ -29,7 +29,7 @@ namespace expt { - template LENGTH_VALUE> + template INDEX_VALUE, strip_index_type_t LENGTH_VALUE> struct StaticTensorIndexInner; template @@ -56,8 +56,8 @@ namespace expt RAJA_HOST_DEVICE static constexpr - StaticTensorIndex> static_all(){ - return StaticTensorIndex>(); + StaticTensorIndex> static_all(){ + return StaticTensorIndex>(); } RAJA_INLINE @@ -103,7 +103,7 @@ namespace expt TensorIndex(TensorIndex const &c) : m_index(*c), m_length(c.size()) {} - template LEN_VAL> + template IDX_VAL, strip_index_type_t LEN_VAL> RAJA_INLINE RAJA_HOST_DEVICE constexpr @@ -156,7 +156,7 @@ namespace expt }; - template LENGTH_VALUE> + template INDEX_VALUE, strip_index_type_t LENGTH_VALUE> struct StaticTensorIndex> { using base_type = TensorIndex;