From 5f248f66589def23efaca0d22a7446551b29aede Mon Sep 17 00:00:00 2001 From: chrisHuxi Date: Wed, 19 Nov 2025 23:35:36 +0800 Subject: [PATCH 1/2] Fix print subbyte compilation error --- include/cute/container/array_subbyte.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cute/container/array_subbyte.hpp b/include/cute/container/array_subbyte.hpp index be6410b318..0b501d8b4f 100644 --- a/include/cute/container/array_subbyte.hpp +++ b/include/cute/container/array_subbyte.hpp @@ -195,7 +195,7 @@ struct subbyte_reference template CUTE_HOST_DEVICE void -print(subbyte_reference ref) { +print(subbyte_reference&& ref) { cute::print(ref.get()); } From 07d0803f2be959b837869eeffe9162dfc5a0193f Mon Sep 17 00:00:00 2001 From: chrisHuxi Date: Thu, 20 Nov 2025 23:01:33 +0800 Subject: [PATCH 2/2] delete overload for const& input --- include/cute/container/array_subbyte.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/cute/container/array_subbyte.hpp b/include/cute/container/array_subbyte.hpp index 0b501d8b4f..022687ab05 100644 --- a/include/cute/container/array_subbyte.hpp +++ b/include/cute/container/array_subbyte.hpp @@ -195,7 +195,7 @@ struct subbyte_reference template CUTE_HOST_DEVICE void -print(subbyte_reference&& ref) { +print(subbyte_reference ref) { cute::print(ref.get()); } @@ -365,12 +365,6 @@ print(subbyte_iterator const& x) { printf("subptr[%db](%p.%u)", int(sizeof_bits_v), x.ptr_, x.idx_); } -template -CUTE_HOST_DEVICE void -print(subbyte_reference const& x) { - print(x.get()); -} - // // array_subbyte // Statically sized array for non-byte-aligned data types