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 =