From 75a73214d8ebd2cfaa65f9bbae2b4cac20d51e3f Mon Sep 17 00:00:00 2001 From: ravil-mobile Date: Wed, 27 Sep 2023 20:19:43 +0200 Subject: [PATCH] Fixed MIGraphX+rocMLIR integration regarding fast tuning (#2257) --- src/targets/gpu/mlir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/targets/gpu/mlir.cpp b/src/targets/gpu/mlir.cpp index aa8bb4bc3ba..347f93333ea 100644 --- a/src/targets/gpu/mlir.cpp +++ b/src/targets/gpu/mlir.cpp @@ -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 tuning_key; size_t tuning_key_bytes =