Skip to content

Commit

Permalink
Fix init-self compiler warnings (#493)
Browse files Browse the repository at this point in the history
Fix a few errors caused by trying to initialize a class member
with itself. These errors can turn into errors if you compile
with `-Winit-self`.
  • Loading branch information
mikeiovine authored and ttl10101 committed Feb 7, 2024
1 parent 717e509 commit 38dcbb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions include/cutlass/gemm/kernel/gemm_universal.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ struct GemmUniversal {
mode(GemmUniversalMode::kGemm),
batch_count(1),
ptr_A(nullptr), ptr_B(nullptr), ptr_C(nullptr), ptr_D(nullptr),
ptr_gather_A_indices(ptr_gather_A_indices),
ptr_gather_B_indices(ptr_gather_B_indices),
ptr_scatter_D_indices(ptr_scatter_D_indices) {}
ptr_gather_A_indices(nullptr),
ptr_gather_B_indices(nullptr),
ptr_scatter_D_indices(nullptr) {}

/// constructs an arguments structure
Arguments(
Expand Down
2 changes: 1 addition & 1 deletion tools/library/include/cutlass/library/library.h
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ struct TrmmDescription : public OperationDescription {
TensorDescription const &A = TensorDescription(),
SideMode side_mode = SideMode::kInvalid,
FillMode fill_mode = FillMode::kInvalid,
DiagType daig_type = DiagType::kInvalid,
DiagType diag_type = DiagType::kInvalid,
TensorDescription const &B = TensorDescription(),
TensorDescription const &D = TensorDescription(),
NumericTypeID element_epilogue = NumericTypeID::kInvalid,
Expand Down

0 comments on commit 38dcbb1

Please sign in to comment.