Skip to content

[BUG] undefined in device code error #1879

@luliyucoordinate

Description

@luliyucoordinate

An error occurred when I printed a tensor of type half using the program below.

#include <cute/tensor.hpp>
using namespace cute;

void test_subbyte_ref() {
  auto x = make_tensor<int4b_t>(Int<1024>{});
  // Shift tensor
  x.data() = &x(10);
}
error: identifier "cute::subbyte_reference<const  ::cutlass::integer_subbyte<(int)4, (bool)1> > ::operator & const" is undefined in device code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions