Unverified Commit 75a73214 authored by ravil-mobile's avatar ravil-mobile Committed by GitHub
Browse files

Fixed MIGraphX+rocMLIR integration regarding fast tuning (#2257)

parent 48af0bcf
...@@ -804,7 +804,8 @@ struct mlir_program ...@@ -804,7 +804,8 @@ struct mlir_program
if(perf_key_bytes > perf_key.size()) if(perf_key_bytes > perf_key.size())
MIGRAPHX_THROW("Tuning perf key was " + std::to_string(perf_key_bytes) + MIGRAPHX_THROW("Tuning perf key was " + std::to_string(perf_key_bytes) +
" bytes and thus too long"); " bytes and thus too long");
tc.solutions.emplace_back(perf_key.begin(), perf_key.begin() + perf_key_bytes); tc.solutions.emplace_back(
std::string(perf_key.begin(), perf_key.begin() + perf_key_bytes));
} }
std::array<char, ROCMLIR_TUNING_KEY_BUFSZ> tuning_key; std::array<char, ROCMLIR_TUNING_KEY_BUFSZ> tuning_key;
size_t tuning_key_bytes = size_t tuning_key_bytes =
......
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