Commit 0e889dc7 authored by Alan Turner's avatar Alan Turner
Browse files

Formatting

parent 8752d11f
......@@ -59,7 +59,7 @@ MIGRAPHX_PRED_MATCHER(is_ck_gemm, instruction_ref ins)
auto k = a.lens()[1];
if(a.lens().size() > 2 or b.lens().size() > 2)
return false;
if (a.lens()[1] >= 2048)
if(a.lens()[1] >= 2048)
return false;
return true;
......
......@@ -91,10 +91,7 @@ static std::size_t get_grid_size(const std::vector<std::string>& s, std::size_t
return int_div_ceil(m, mpb) * int_div_ceil(n, npb);
}
static void set_padding(std::vector<std::string>& s, const std::string p)
{
s[padding_index] = p;
}
static void set_padding(std::vector<std::string>& s, const std::string p) { s[padding_index] = p; }
template <class F, class Action>
auto action_decorate(F f, Action action)
......@@ -118,8 +115,7 @@ static std::size_t get_tuning_for(const std::vector<shape>& inputs)
static auto tuning = read_tuning(string_value_of(MIGRAPHX_CK_TUNING{}, ""));
if(tuning.empty())
std::cout << "*********** Warning: No CK tuning!" << std::endl;
std::cout << inputs[0] << std::endl
<< inputs[1] << std::endl;
std::cout << inputs[0] << std::endl << inputs[1] << std::endl;
auto it = std::find_if(
tuning.begin(), tuning.end(), [&](const auto& p) { return p.first == inputs; });
if(it == tuning.end())
......@@ -171,7 +167,7 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
const bool pad_n = n % 8;
const bool pad_k = k % 8;
if (pad_m or pad_n or pad_k)
if(pad_m or pad_n or pad_k)
{
std::string padding_t = "ck::tensor_operation::device::GemmSpecialization::";
padding_t += pad_m ? "M" : "";
......
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