Commit ae21ecbf authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 6835a32e
...@@ -215,7 +215,7 @@ argument miopen_gemm::compute(context& ctx, ...@@ -215,7 +215,7 @@ argument miopen_gemm::compute(context& ctx,
auto to_pointer = [&](auto&& arg) { return to_rocblas_type(as.from(arg.data())); }; auto to_pointer = [&](auto&& arg) { return to_rocblas_type(as.from(arg.data())); };
if(num_matrices == 1) if(num_matrices == 1)
{ {
// the rocblas_gemm API handles inputs and output matrices as // the rocblas_gemm API handles inputs and output matrices as
// column-major format. When doing a C = A * B, we actually do // column-major format. When doing a C = A * B, we actually do
// C^T = (B^T) * (A^T). That is the reason we input args[1] as // C^T = (B^T) * (A^T). That is the reason we input args[1] as
// A and args[0] as B in calling the rocblas_gemm. // A and args[0] as B in calling the rocblas_gemm.
......
...@@ -91,7 +91,7 @@ argument miopen_quant_gemm::compute(context& ctx, ...@@ -91,7 +91,7 @@ argument miopen_quant_gemm::compute(context& ctx,
assert(transb or (ldb % 4 == 0)); assert(transb or (ldb % 4 == 0));
// need to pack B in thi scenario // need to pack B in thi scenario
if (!transb) if(!transb)
{ {
int nb = 4; int nb = 4;
for(int i_m = 0; i_m < m; i_m++) for(int i_m = 0; i_m < m; i_m++)
...@@ -104,16 +104,15 @@ argument miopen_quant_gemm::compute(context& ctx, ...@@ -104,16 +104,15 @@ argument miopen_quant_gemm::compute(context& ctx,
} }
// need to pack A in this scenario // need to pack A in this scenario
if (transa) if(transa)
{ {
} }
auto num_matrices = std::accumulate( auto num_matrices = std::accumulate(
out_lens.rbegin() + 2, out_lens.rend(), std::size_t{1}, std::multiplies<std::size_t>()); out_lens.rbegin() + 2, out_lens.rend(), std::size_t{1}, std::multiplies<std::size_t>());
if(num_matrices == 1) if(num_matrices == 1)
{ {
// the rocblas_gemm API handles inputs and output matrices as // the rocblas_gemm API handles inputs and output matrices as
// column-major format. When doing a C = A * B, we actually do // column-major format. When doing a C = A * B, we actually do
// C^T = (B^T) * (A^T). That is the reason we input args[1] as // C^T = (B^T) * (A^T). That is the reason we input args[1] as
// A and args[0] as B in calling the rocblas_gemm. // A and args[0] as B in calling the rocblas_gemm.
......
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