Skip to content

Commit

Permalink
Fixed MIGraphX+rocMLIR integration regarding fast tuning (#2257)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravil-mobile authored Sep 27, 2023
1 parent 48af0bc commit 75a7321
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/targets/gpu/mlir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,8 @@ struct mlir_program
if(perf_key_bytes > perf_key.size())
MIGRAPHX_THROW("Tuning perf key was " + std::to_string(perf_key_bytes) +
" 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;
size_t tuning_key_bytes =
Expand Down

0 comments on commit 75a7321

Please sign in to comment.