From 0ceb1fd01dd3e40b83568ec71914e4f49930226a Mon Sep 17 00:00:00 2001 From: Uros Petkovic Date: Fri, 20 Dec 2024 16:34:18 +0100 Subject: [PATCH] Fixing issue with allocating extend arena --- .../core/providers/migraphx/migraphx_provider_factory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/providers/migraphx/migraphx_provider_factory.cc b/onnxruntime/core/providers/migraphx/migraphx_provider_factory.cc index 6540c3cdfc591..6dd14e00e0bcf 100644 --- a/onnxruntime/core/providers/migraphx/migraphx_provider_factory.cc +++ b/onnxruntime/core/providers/migraphx/migraphx_provider_factory.cc @@ -99,7 +99,7 @@ struct MIGraphX_Provider : Provider { if (options.migraphx_load_model_path != nullptr) { info.load_model_file = options.migraphx_load_model_path; } - info.arena_extend_strategy = options.migraphx_arena_extend_strategy; + info.arena_extend_strategy = static_cast(options.migraphx_arena_extend_strategy); info.mem_limit = options.migraphx_mem_limit; return std::make_shared(info); } @@ -133,7 +133,7 @@ struct MIGraphX_Provider : Provider { migx_options.migraphx_save_model_path = internal_options.save_model_file.c_str(); migx_options.migraphx_load_compiled_model = internal_options.load_compiled_model; migx_options.migraphx_load_model_path = internal_options.load_model_file.c_str(); - migx_options.migraphx_arena_extend_strategy = internal_options.arena_extend_strategy; + migx_options.migraphx_arena_extend_strategy = static_cast(internal_options.arena_extend_strategy); migx_options.migraphx_mem_limit = internal_options.mem_limit; }