From ed266b70d1d87fcc4bf7d53e1b0124cee9de5205 Mon Sep 17 00:00:00 2001 From: LeSingh1 Date: Sun, 17 May 2026 18:23:50 -0700 Subject: [PATCH] [CuTe] Add missing include for smem_ptr_flag_bits in print_tensor.hpp cute/util/print_tensor.hpp references smem_ptr_flag_bits at line 92 in its print_layout overload for ComposedLayout, but only includes config.hpp, layout.hpp, and tensor_impl.hpp -- none of which transitively pull in cute/pointer_flagged.hpp where smem_ptr_flag_bits is defined. In practice users typically reach this header via cute/tensor.hpp (which already pulls in pointer_flagged.hpp), so the bug only surfaces when the header is included directly. clangd and isolated translation units that include only print_tensor.hpp report "use of undeclared identifier 'smem_ptr_flag_bits'". Fixes #3205 --- include/cute/util/print_tensor.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/cute/util/print_tensor.hpp b/include/cute/util/print_tensor.hpp index aabd0d844c..bac9722b53 100644 --- a/include/cute/util/print_tensor.hpp +++ b/include/cute/util/print_tensor.hpp @@ -33,6 +33,7 @@ #include // CUTE_HOST_DEVICE #include +#include // cute::smem_ptr_flag_bits #include namespace cute