Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[QST]Why I can not print rank and depth of a tensor??? #1237

Closed
ziyuhuang123 opened this issue Dec 5, 2023 · 1 comment
Closed

[QST]Why I can not print rank and depth of a tensor??? #1237

ziyuhuang123 opened this issue Dec 5, 2023 · 1 comment

Comments

@ziyuhuang123
Copy link

What is your question?
Tensor A = make_tensor(make_gmem_ptr(Aptr), make_shape(m, k), make_stride(k, Int<1>{}));
Tensor B = make_tensor(make_gmem_ptr(Bptr), make_shape(n, k), make_stride(k, Int<1>{}));
Tensor C = make_tensor(make_gmem_ptr(Cptr), make_shape(m, n), make_stride(n, Int<1>{}));

Why I can not print A.rank, A.depth???

gemm-simple.cu(20): error: expression preceding parentheses of apparent call must have (pointer-to-) function type
          detected during instantiation of "void gemm_simple<T,kTileM,kTileN,kTileK,TiledMMA>(T *, const T *, const T *, int, int, int) [with T=cutlass::half_t, kTileM=128, kTileN=128, kTileK=32, TiledMMA=cute::TiledMMA<cute::MMA_Atom<cute::MMA_Traits<cute::SM80_16x8x16_F16F16F16F16_TN>>, cute::Layout<cute::tuple<cute::_2, cute::_2, cute::_1>, cute::tuple<cute::C<1>, cute::_2, cute::C<0>>>, cute::Layout<cute::tuple<cute::_1, cute::_2, cute::_1>, cute::tuple<cute::C<0>, cute::C<1>, cute::C<0>>>, cute::tuple<cute::Underscore, cute::Underscore, cute::Underscore>>]" 
(102): here

gemm-simple.cu(20): error: class "cute::Tensor<cute::ViewEngine<cute::gmem_ptr<const cutlass::half_t *>>, cute::Layout<cute::tuple<int, int>, cute::tuple<int, cute::C<1>>>>" has no member "depth"
          detected during instantiation of "void gemm_simple<T,kTileM,kTileN,kTileK,TiledMMA>(T *, const T *, const T *, int, int, int) [with T=cutlass::half_t, kTileM=128, kTileN=128, kTileK=32, TiledMMA=cute::TiledMMA<cute::MMA_Atom<cute::MMA_Traits<cute::SM80_16x8x16_F16F16F16F16_TN>>, cute::Layout<cute::tuple<cute::_2, cute::_2, cute::_1>, cute::tuple<cute::C<1>, cute::_2, cute::C<0>>>, cute::Layout<cute::tuple<cute::_1, cute::_2, cute::_1>, cute::tuple<cute::C<0>, cute::C<1>, cute::C<0>>>, cute::tuple<cute::Underscore, cute::Underscore, cute::Underscore>>]" 
(102): here
@thakkarV
Copy link
Collaborator

thakkarV commented Dec 5, 2023

print(rank(A)) or print(depth(A))

@thakkarV thakkarV closed this as completed Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants