mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-29 23:06:41 +00:00
Update calls to OrtArenaCfg constructor to pass additional parameter. (#16104)
Update calls to OrtArenaCfg constructor to pass additional parameter. Updating some call sites after change in #15983. Fix CI build.
This commit is contained in:
parent
2cf0ae7d01
commit
4bfb8d3303
2 changed files with 7 additions and 1 deletions
|
|
@ -1455,6 +1455,7 @@ void CANNExecutionProvider::RegisterAllocator(AllocatorManager& allocator_manage
|
|||
static_cast<int>(info_.arena_extend_strategy),
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
-1)},
|
||||
true,
|
||||
false);
|
||||
|
|
|
|||
|
|
@ -120,7 +120,12 @@ AllocatorPtr ROCMExecutionProvider::CreateRocmAllocator(OrtDevice::DeviceId devi
|
|||
device_id,
|
||||
true,
|
||||
{default_memory_arena_cfg ? *default_memory_arena_cfg
|
||||
: OrtArenaCfg(gpu_mem_limit, static_cast<int>(arena_extend_strategy), -1, -1, -1)},
|
||||
: OrtArenaCfg(gpu_mem_limit,
|
||||
static_cast<int>(arena_extend_strategy),
|
||||
-1,
|
||||
-1,
|
||||
-1,
|
||||
-1)},
|
||||
// make it stream aware
|
||||
true,
|
||||
// enable cross stream sharing?
|
||||
|
|
|
|||
Loading…
Reference in a new issue