This commit is contained in:
Chao Liu
2021-08-06 19:59:53 +00:00
parent 54b3e73d17
commit 49c33aaea7
3 changed files with 13 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ void online_device_dynamic_convolution_forward_implicit_gemm_v6r1_dlops_nchw_kcy
"dynamic_convolution_forward_implicit_gemm_v6r1_dlops_nchw_kcyx_nkhw.cpp";
std::string algo_name = "implicit_gemm_conv_fwd_v6r1_dlops_nchw";
std::string compile_param_string = " -std=c++17 " + compile_param.GetCompileParameterString();
std::string compile_param_string = get_ck_hip_online_compile_common_flag() + compile_param.GetCompileParameterString();
std::string network_config = compile_param_string;
std::vector<float> kernel1_times;

View File

@@ -3,6 +3,13 @@
namespace ck_driver {
inline auto get_ck_hip_online_compile_common_flag()
{
std::string param = " -std=c++17";
return param;
}
// greatest common divisor, aka highest common factor
inline int gcd(int x, int y)
{

View File

@@ -6,6 +6,9 @@
#include <half.hpp>
#include <boost/container/small_vector.hpp>
namespace online_compile {
struct OpKernelArg
{
@@ -32,4 +35,6 @@ struct OpKernelArg
bool is_ptr = false;
};
} // namespace online_compile
#endif