Commit 070f8c95 authored by Paul's avatar Paul
Browse files

Initialize variables

parent e1ef6e2c
...@@ -492,18 +492,32 @@ struct gemm_impl ...@@ -492,18 +492,32 @@ struct gemm_impl
} }
#endif #endif
private: private:
size_t num_matrices; size_t num_matrices = 0;
rocblas_int m, n, k; rocblas_int m = 0;
bool transa, transb; rocblas_int n = 0;
T alpha, beta; rocblas_int k = 0;
bool transa = false;
std::function<const void*()> get_alpha; bool transb = false;
std::function<const void*()> get_beta; T alpha = 0;
flag_type int8_flag; T beta = 0;
rocblas_int lda, ldb, ldc, ldd;
rocblas_int a_stride, b_stride, c_stride, d_stride; std::function<const void*()> get_alpha{};
rocblas_datatype compute_type, arg_type, output_type; std::function<const void*()> get_beta{};
bool strided_batched = true, is_3inputs = true, compute_fp32 = true; flag_type int8_flag = 0;
rocblas_int lda = 0;
rocblas_int ldb = 0;
rocblas_int ldc = 0;
rocblas_int ldd = 0;
rocblas_int a_stride = 0;
rocblas_int b_stride = 0;
rocblas_int c_stride = 0;
rocblas_int d_stride = 0;
rocblas_datatype compute_type = rocblas_datatype_f32_r;
rocblas_datatype arg_type = rocblas_datatype_f32_r;
rocblas_datatype output_type = rocblas_datatype_f32_r;
bool strided_batched = true;
bool is_3inputs = true;
bool compute_fp32 = true;
}; // gemm_impl }; // gemm_impl
void gemm_compute(context& ctx, void gemm_compute(context& ctx,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment