cutlass icon indicating copy to clipboard operation
cutlass copied to clipboard

[BUG] undefined in device code error

Open luliyucoordinate opened this issue 4 months ago • 0 comments

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

luliyucoordinate avatar Oct 17 '24 12:10 luliyucoordinate