-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[BUG] tensor.hpp must be included before mma_atom.hpp #1254
Comments
I agree, but something else might be wrong here. The point of |
CC @ccecka |
Same issue |
the dependency can be summarized as the following table:
when we include tensor.hpp, after the preprocess, the code as:
when we include mma_atom.hpp, after the preprocess, the code as:
Solution1: we can simply forward declare the MMA_Atom/ThrMMA in gemm.hpp to make it compiled.
|
This issue has been labeled |
@reed-lau It sounds like you would prefer Solution 2; is that right? |
yes. |
Describe the bug
I find that
<cute/tensor.hpp>
must be included before<cute/atom/mma_atom.hpp>
, otherwise we cannot compile.Steps/Code to reproduce bug
Compile with
nvcc test.cu -I include/ -std=c++17
the output errors:
Exchange the two header files and we can compile normally
Expected behavior
It seems
mma_atom.hpp
already includestensor.hpp
and these two files are protected by#pragma once
. So I think we don't need to include<cute/tensor.hpp>
explicitly before<cute/atom/mma_atom.hpp>
.cutlass/include/cute/atom/mma_atom.hpp
Line 36 in a75b4ac
Environment details (please complete the following information):
nvcc: V12.2.128
cutlass: a75b4ac (tag:v3.3.0)
The text was updated successfully, but these errors were encountered: