"git@developer.sourcefind.cn:gaoqiong/migraphx.git" did not exist on "eb173aaae0f1aeafa55d28fc14962a9685d3e46a"
Commit b9ce9f10 authored by umangyadav's avatar umangyadav
Browse files

tidy, cppcheck fix

parent 38e5c863
...@@ -274,18 +274,16 @@ struct context ...@@ -274,18 +274,16 @@ struct context
auto v_streams = v.at("streams"); auto v_streams = v.at("streams");
std::size_t n_streams = v_streams.without_key().to<std::size_t>(); std::size_t n_streams = v_streams.without_key().to<std::size_t>();
auto v_gfx_arch = v.at("gfx_arch").to<std::string>();
auto v_cu_count = v.at("cu_count");
std::size_t n_cu_count = v_cu_count.without_key().to<std::size_t>();
std::string v_miopen_version = v.at("miopen_version").to<std::string>();
this->current_device = std::make_shared<hip_device>(0, n_streams); this->current_device = std::make_shared<hip_device>(0, n_streams);
#ifdef MIGRAPHX_HAS_FIND_2_API #ifdef MIGRAPHX_HAS_FIND_2_API
{ {
auto v_gfx_arch = v.at("gfx_arch").to<std::string>();
auto v_cu_count = v.at("cu_count");
std::size_t n_cu_count = v_cu_count.without_key().to<std::size_t>();
std::string v_miopen_version = v.at("miopen_version").to<std::string>();
std::string current_gfx_arch = this->current_device->get_device_name(); std::string current_gfx_arch = this->current_device->get_device_name();
std::size_t current_cu_count = this->current_device->get_cu_count(); std::size_t current_cu_count = this->current_device->get_cu_count();
std::string current_miopen_version = get_miopen_version(); std::string current_miopen_version = get_miopen_version();
......
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