HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cann_provider_options.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Copyright (c) Huawei. All rights reserved.
3 // Licensed under the MIT License.
4 
5 #pragma once
6 
7 #include "onnxruntime_c_api.h"
8 #include "core/framework/arena_extend_strategy.h"
9 
11  int device_id; // CANN device id
12  size_t npu_mem_limit; // BFC Arena memory limit for CANN
13  onnxruntime::ArenaExtendStrategy arena_extend_strategy; // Strategy used to grow the memory arena
14  int do_copy_in_default_stream; // Flag indicating if copying needs to take place on the
15  // same stream as the compute stream in the CANN EP
16  int enable_cann_graph; // Flag indicating if prioritizing the use of
17  // CANN's graph-running capabilities
18  OrtArenaCfg* default_memory_arena_cfg; // CANN memory arena configuration parameters
19 };
onnxruntime::ArenaExtendStrategy arena_extend_strategy
OrtArenaCfg * default_memory_arena_cfg