Skip to content

[BUG] [CuTe] print_tensor.hpp missing include for cute/pointer_flagged.hpp #3205

@RunChuan123

Description

@RunChuan123

Which component has the problem?

CuTe DSL

Bug Report

Description

cute/util/print_tensor.hpp appears to use symbols related to flagged pointers, such as smem_ptr_flag_bits, but it does not directly include the header that defines them.
This can cause clangd/static analysis diagnostics such as:

Use of undeclared identifier 'smem_ptr_flag_bits'

Proposed fix:

add

 #include <cute/pointer_flagged.hpp>

to include/cute/util/print_tensor.hpp

Expected behavior

print_tensor.hpp should be self-contained with respect to the symbols it uses.

Actual behavior

clangd reports smem_ptr_flag_bits as undeclared unless another header happens to include cute/pointer_flagged.hpp first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions