".github/git@developer.sourcefind.cn:hehl2/torchaudio.git" did not exist on "9135b544f343007025db7db007ecd13666de896b"
Commit 38e5c863 authored by umangyadav's avatar umangyadav
Browse files

logging

parent 6878ea29
...@@ -633,7 +633,7 @@ void program::from_value(const value& v) ...@@ -633,7 +633,7 @@ void program::from_value(const value& v)
auto migx_version = v.at("migraphx_version").to<std::string>(); auto migx_version = v.at("migraphx_version").to<std::string>();
if(migx_version != get_migraphx_version()) if(migx_version != get_migraphx_version())
{ {
std::clog << "MIGraphX version mismatch, consider recompiling model with environment " std::cerr << "MIGraphX version mismatch, consider recompiling model with environment "
"variable MIOPEN_FIND_ENFORCE=3 to re-tune the model " "variable MIOPEN_FIND_ENFORCE=3 to re-tune the model "
<< std::endl; << std::endl;
} }
......
...@@ -291,7 +291,7 @@ struct context ...@@ -291,7 +291,7 @@ struct context
std::string current_miopen_version = get_miopen_version(); std::string current_miopen_version = get_miopen_version();
if(n_cu_count != current_cu_count || v_gfx_arch != current_gfx_arch) if(n_cu_count != current_cu_count || v_gfx_arch != current_gfx_arch)
{ {
std::clog << "MIGraphX model was compiled for gfx_arch: " << v_gfx_arch std::cerr << "MIGraphX model was compiled for gfx_arch: " << v_gfx_arch
<< " with number of CUs=" << n_cu_count << " with number of CUs=" << n_cu_count
<< ", but current device has gfx_arch: " << current_gfx_arch << ", but current device has gfx_arch: " << current_gfx_arch
<< " with number of CUs=" << current_cu_count << " with number of CUs=" << current_cu_count
...@@ -301,7 +301,7 @@ struct context ...@@ -301,7 +301,7 @@ struct context
} }
if(current_miopen_version != v_miopen_version) if(current_miopen_version != v_miopen_version)
{ {
std::clog << "MIGraphX model was compiled with MIOpen version : " std::cerr << "MIGraphX model was compiled with MIOpen version : "
<< v_miopen_version << v_miopen_version
<< ", but this machine has MIOpen version: " << current_miopen_version << ", but this machine has MIOpen version: " << current_miopen_version
<< ", Performance may suffer.\ << ", Performance may suffer.\
......
...@@ -33,7 +33,7 @@ TEST_CASE(gpu_context_serialize) ...@@ -33,7 +33,7 @@ TEST_CASE(gpu_context_serialize)
migraphx::context ctx = migraphx::gpu::context{0, 3}; migraphx::context ctx = migraphx::gpu::context{0, 3};
auto v = ctx.to_value(); auto v = ctx.to_value();
EXPECT(v.size() == 2); EXPECT(v.size() == 5);
EXPECT(v.contains("events")); EXPECT(v.contains("events"));
EXPECT(v.at("events").without_key().to<std::size_t>() == 0); EXPECT(v.at("events").without_key().to<std::size_t>() == 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