From 38dcbb1023c49adddfacac7cbd596ce396d7cae3 Mon Sep 17 00:00:00 2001 From: Mike Iovine Date: Tue, 10 May 2022 21:35:28 -0700 Subject: [PATCH] Fix init-self compiler warnings (#493) 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`. --- include/cutlass/gemm/kernel/gemm_universal.h | 6 +++--- tools/library/include/cutlass/library/library.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cutlass/gemm/kernel/gemm_universal.h b/include/cutlass/gemm/kernel/gemm_universal.h index c11e308a..982f765d 100644 --- a/include/cutlass/gemm/kernel/gemm_universal.h +++ b/include/cutlass/gemm/kernel/gemm_universal.h @@ -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( diff --git a/tools/library/include/cutlass/library/library.h b/tools/library/include/cutlass/library/library.h index aa4a1364..b2e68097 100644 --- a/tools/library/include/cutlass/library/library.h +++ b/tools/library/include/cutlass/library/library.h @@ -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,