-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Which component has the problem?
CUTLASS C++
Bug Report
Describe the bug
We saw a build error because
include/cute/tensor_impl.hpp:765:6: error: variable ‘new_layout’ set but not used [-Werror=unused-but-set-variable]
pytorch/pytorch#158854
cc @Skylion007
I think it is because new_layout is not always used.
cutlass/include/cute/tensor_impl.hpp
Lines 765 to 768 in 6c0c8b7
auto new_layout = recast_layout<OldType,NewType>(old_layout); | |
if constexpr (is_same<NewType, OldType>::value) { | |
return tensor; |
Can this be fixed?
Steps/Code to reproduce bug
See PyTorch PR linked.
Expected behavior
Build should be successful even with -Werror=unused-but-set-variable
Environment details (please complete the following information):
- Environment location: [Bare-metal, Docker, Cloud(specify cloud provider)]
Additional context
Add any other context about the problem here.