[BUG] Compile warning/error - -Werror=unused-but-set-variable
unused curr_stride in cute/layout.hpp via flash attention.
#2253
Labels
Describe the bug
A clear and concise description of what the bug is.
Compile Warning with unused variable in cute layout.h with constexpr if else.
Steps/Code to reproduce bug
Follow this guide http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports to craft a minimal bug report. This helps us reproduce the issue you're having and resolve the issue more quickly.
Compile flash attention via CUTLASS like in PyTorch. Generates a warning relating to this line:
cutlass/include/cute/layout.hpp
Line 1070 in 5e49724
Full logs from the build here:
https://hud.pytorch.org/pr/pytorch/pytorch/151253#40809563092
Expected behavior
No compiler warning with the PyTorch build script and no crash since warnings are treated as errors here.
Environment details (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: