mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-07-02 21:27:45 +00:00
Make sure all strides in ComputePtrOffset are at least value initialized to avoid undefined strides. Not convinced this struct is properly initialized in other code / future code.
This commit is contained in:
@@ -198,10 +198,10 @@ struct ComputePtrOffsetOfStridedBatch<NumATensor,
|
||||
return static_cast<long_index_t>(g_idx) * BatchStrideE_;
|
||||
}
|
||||
|
||||
Array<long_index_t, NumATensor> BatchStrideA_;
|
||||
Array<long_index_t, NumBTensor> BatchStrideB_;
|
||||
Array<long_index_t, NumDTensor> BatchStrideDs_;
|
||||
long_index_t BatchStrideE_;
|
||||
Array<long_index_t, NumATensor> BatchStrideA_{};
|
||||
Array<long_index_t, NumBTensor> BatchStrideB_{};
|
||||
Array<long_index_t, NumDTensor> BatchStrideDs_{};
|
||||
long_index_t BatchStrideE_{};
|
||||
long_index_t& BatchStrideC_ = BatchStrideE_; // alias for kernels without multiple D
|
||||
};
|
||||
|
||||
@@ -253,10 +253,10 @@ struct ComputePtrOffsetOfStridedBatch<NumATensor,
|
||||
return static_cast<long_index_t>(g_idx) * BatchStrideE_;
|
||||
}
|
||||
|
||||
long_index_t BatchStrideA_;
|
||||
long_index_t BatchStrideB_;
|
||||
Array<long_index_t, NumDTensor> BatchStrideDs_;
|
||||
long_index_t BatchStrideE_;
|
||||
long_index_t BatchStrideA_{};
|
||||
long_index_t BatchStrideB_{};
|
||||
Array<long_index_t, NumDTensor> BatchStrideDs_{};
|
||||
long_index_t BatchStrideE_{};
|
||||
long_index_t& BatchStrideC_ = BatchStrideE_; // alias for kernels without multiple D
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user