Commit 181ea79a authored by Alan Turner's avatar Alan Turner
Browse files

Avoid pipeline version 2 when k % kpb != 0

parent 48717006
......@@ -141,6 +141,8 @@ Solution Problem::MakeSolution(std::size_t idx, const std::string& arch) const
std::string{},
[](const std::string& a, const std::string& b) { return a.empty() ? b : a + ", " + b; });
str = params.front() + "< " + str + ">";
if (params.back().find("v2") != std::string::npos and K % k_per_block != 0)
str = "";
return Solution{str, block_size, grid_size};
}
......@@ -156,7 +158,9 @@ std::vector<Solution> Problem::GetSolutions(const std::string& arch) const
const std::size_t num_instances = GetInstances(arch).size();
for(std::size_t i = 0; i < num_instances; ++i)
{
solutions.push_back(MakeSolution(i, arch));
auto solution = MakeSolution(i, arch);
if (solution.template_str != "")
solutions.push_back(solution);
}
return solutions;
......
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