mirror of
https://github.com/ROCm/composable_kernel.git
synced 2026-06-30 03:37:38 +00:00
Move another function to cpp file
This commit is contained in:
@@ -63,27 +63,9 @@ private:
|
||||
;
|
||||
|
||||
public:
|
||||
auto GetHeaders() const
|
||||
{
|
||||
return ck_headers();
|
||||
}
|
||||
std::string GetIncludeHeader() const;
|
||||
|
||||
std::string GetIncludeHeader() const
|
||||
{
|
||||
return instance::gemm_add_add_fastgelu_instances{}.get_include_header();
|
||||
}
|
||||
|
||||
std::vector<Solution> GetSolutions(const std::string& arch) const
|
||||
{
|
||||
std::vector<Solution> solutions;
|
||||
const auto num_instances = GetInstances(arch).size();
|
||||
for (auto i = 0; i < num_instances; ++i)
|
||||
{
|
||||
solutions.push_back(MakeSolution(i, arch));
|
||||
}
|
||||
|
||||
return solutions;
|
||||
}
|
||||
std::vector<Solution> GetSolutions(const std::string& arch) const;
|
||||
};
|
||||
|
||||
} // namespace device_gemm_multiple_d
|
||||
|
||||
@@ -136,6 +136,23 @@ Solution Problem::MakeSolution(std::size_t idx, const std::string& arch) const
|
||||
return Solution{str, block_size, grid_size};
|
||||
}
|
||||
|
||||
std::string Problem::GetIncludeHeader() const
|
||||
{
|
||||
return instance::gemm_add_add_fastgelu_instances{}.get_include_header();
|
||||
}
|
||||
|
||||
std::vector<Solution> Problem::GetSolutions(const std::string& arch) const
|
||||
{
|
||||
std::vector<Solution> solutions;
|
||||
const auto num_instances = GetInstances(arch).size();
|
||||
for (auto i = 0; i < num_instances; ++i)
|
||||
{
|
||||
solutions.push_back(MakeSolution(i, arch));
|
||||
}
|
||||
|
||||
return solutions;
|
||||
}
|
||||
|
||||
|
||||
} // namespace device_gemm_multiple_d
|
||||
} // namespace host
|
||||
|
||||
Reference in New Issue
Block a user