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.
Which component has the problem?
CuTe DSL
Bug Report
Description
cute/util/print_tensor.hppappears to use symbols related to flagged pointers, such assmem_ptr_flag_bits, but it does not directly include the header that defines them.This can cause clangd/static analysis diagnostics such as:
Proposed fix:
add
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.