Commit 38e5c863 authored by umangyadav's avatar umangyadav
Browse files

logging

parent 6878ea29
......@@ -633,7 +633,7 @@ void program::from_value(const value& v)
auto migx_version = v.at("migraphx_version").to<std::string>();
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 "
<< std::endl;
}
......
......@@ -291,7 +291,7 @@ struct context
std::string current_miopen_version = get_miopen_version();
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
<< ", but current device has gfx_arch: " << current_gfx_arch
<< " with number of CUs=" << current_cu_count
......@@ -301,7 +301,7 @@ struct context
}
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
<< ", but this machine has MIOpen version: " << current_miopen_version
<< ", Performance may suffer.\
......
......@@ -33,7 +33,7 @@ TEST_CASE(gpu_context_serialize)
migraphx::context ctx = migraphx::gpu::context{0, 3};
auto v = ctx.to_value();
EXPECT(v.size() == 2);
EXPECT(v.size() == 5);
EXPECT(v.contains("events"));
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