diff --git a/src/include/miopen/solver.hpp b/src/include/miopen/solver.hpp index c9307f3fbb..1355a527ff 100644 --- a/src/include/miopen/solver.hpp +++ b/src/include/miopen/solver.hpp @@ -5709,11 +5709,6 @@ struct ConvHipImplicitGemmFwdXdlops final template bool CheckCKApplicability(const ProblemDescription&) const; - template - void RunCKSolution(const Handle& handle, - const AnyInvokeParams& primitive_parameters, - const ProblemDescription& problem, - const PerformanceConfigHipImplicitGemmFwdXdlops& config) const; }; struct PerformanceConfigHipImplicitGemmBwdXdlops @@ -5821,11 +5816,6 @@ struct ConvHipImplicitGemmBwdXdlops final template bool CheckCKApplicability(const ProblemDescription&) const; - template - void RunCKSolution(const Handle& handle, - const AnyInvokeParams& primitive_parameters, - const ProblemDescription& problem, - const PerformanceConfigHipImplicitGemmBwdXdlops& config) const; }; struct AnySolver; diff --git a/src/solver/conv_hip_implicit_gemm_bwd_data_xdlops.cpp b/src/solver/conv_hip_implicit_gemm_bwd_data_xdlops.cpp index 3ffc5f851b..91284c2194 100644 --- a/src/solver/conv_hip_implicit_gemm_bwd_data_xdlops.cpp +++ b/src/solver/conv_hip_implicit_gemm_bwd_data_xdlops.cpp @@ -194,12 +194,13 @@ bool ConvHipImplicitGemmBwdXdlops::CheckCKApplicability(const ProblemDescription return false; } +namespace { + template -void ConvHipImplicitGemmBwdXdlops::RunCKSolution( - const Handle& handle, - const AnyInvokeParams& primitive_parameters, - const ProblemDescription& problem, - const PerformanceConfigHipImplicitGemmBwdXdlops& config) const +void RunCKSolution(const Handle& handle, + const AnyInvokeParams& primitive_parameters, + const ProblemDescription& problem, + const PerformanceConfigHipImplicitGemmBwdXdlops& config) { const auto args = CKArgsBwd{problem}; const auto conv_ptrs = DeviceOpBwdPtrs::GetInstances(); @@ -245,6 +246,8 @@ void ConvHipImplicitGemmBwdXdlops::RunCKSolution( handle.AccumKernelTime(elapsed_time); } } + +} // namespace #endif void PerformanceConfigHipImplicitGemmBwdXdlops::HeuristicInit(const ProblemDescription& problem) diff --git a/src/solver/conv_hip_implicit_gemm_fwd_xdlops.cpp b/src/solver/conv_hip_implicit_gemm_fwd_xdlops.cpp index 1941041042..e4599a1e6b 100644 --- a/src/solver/conv_hip_implicit_gemm_fwd_xdlops.cpp +++ b/src/solver/conv_hip_implicit_gemm_fwd_xdlops.cpp @@ -182,12 +182,13 @@ bool ConvHipImplicitGemmFwdXdlops::CheckCKApplicability(const ProblemDescription return false; } +namespace { + template -void ConvHipImplicitGemmFwdXdlops::RunCKSolution( - const Handle& handle, - const AnyInvokeParams& primitive_parameters, - const ProblemDescription& problem, - const PerformanceConfigHipImplicitGemmFwdXdlops& config) const +void RunCKSolution(const Handle& handle, + const AnyInvokeParams& primitive_parameters, + const ProblemDescription& problem, + const PerformanceConfigHipImplicitGemmFwdXdlops& config) { const auto args = CKArgs{problem}; const auto conv_ptrs = DeviceOpPtrs::GetInstances(); @@ -224,6 +225,8 @@ void ConvHipImplicitGemmFwdXdlops::RunCKSolution( handle.AccumKernelTime(elapsed_time); } } + +} // namespace #endif void PerformanceConfigHipImplicitGemmFwdXdlops::HeuristicInit(const ProblemDescription& problem)