Skip to content

Commit

Permalink
Adjust warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eddieliao committed Jul 10, 2024
1 parent e3ab429 commit 15bc7bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/driver/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,12 +531,12 @@ struct compiler
"passing "
"`--enable-offload-copy` if program run fails.\n";
}
else if(co.offload_copy)
else if(not is_offload_copy_set(p) and co.offload_copy)
{
std::cout << "[WARNING]: MIGraphX program was likely compiled without "
"offload_copy set, Try "
"removing "
"`--enable-offload-copy` flag if passed to driver, if program run "
"`--enable-offload-copy` if program run "
"fails.\n";
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/program.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,9 +772,9 @@ void program::from_value(const value& v)
auto migx_version = v.at("migraphx_version").to<std::string>();
if(migx_version != get_migraphx_version())
{
std::cout << "WARNING: MXR File was created using MIGraphX version: " << migx_version
std::cout << "[WARNING]: MXR File was created using MIGraphX version: " << migx_version
<< ", while installed MIGraphX is at version: " << get_migraphx_version()
<< ", operators implementation could be mismatched.";
<< ", operators implementation could be mismatched.\n";

Check warning on line 777 in src/program.cpp

View check run for this annotation

Codecov / codecov/patch

src/program.cpp#L777

Added line #L777 was not covered by tests
}

migraphx::from_value(v.at("targets"), this->impl->targets);
Expand Down

0 comments on commit 15bc7bc

Please sign in to comment.