Commit 744f236c authored by Paul's avatar Paul
Browse files

Format

parent 5c2a9f2e
...@@ -412,11 +412,12 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler> ...@@ -412,11 +412,12 @@ struct ck_gemm_compiler : compiler<ck_gemm_compiler>
}}; }};
} }
optional<tuning_config> get_tuning_config(context& ctx, instruction_ref ins, const operation& op) const optional<tuning_config>
get_tuning_config(context& ctx, instruction_ref ins, const operation& op) const
{ {
tuning_config tc; tuning_config tc;
auto shapes = to_shapes(ins->inputs()); auto shapes = to_shapes(ins->inputs());
auto problem = create_problem(shapes, create_settings(ins, op)); auto problem = create_problem(shapes, create_settings(ins, op));
auto solutions = problem.GetSolutions(ctx.get_current_device().get_gfx_name()); auto solutions = problem.GetSolutions(ctx.get_current_device().get_gfx_name());
tc.solutions.resize(solutions.size()); tc.solutions.resize(solutions.size());
std::iota(tc.solutions.begin(), tc.solutions.end(), 0); std::iota(tc.solutions.begin(), tc.solutions.end(), 0);
......
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