aboutsummaryrefslogtreecommitdiff
path: root/include/armnn/IRuntime.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/armnn/IRuntime.hpp')
-rw-r--r--include/armnn/IRuntime.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/armnn/IRuntime.hpp b/include/armnn/IRuntime.hpp
index bee61d21a9..fcb8c05e30 100644
--- a/include/armnn/IRuntime.hpp
+++ b/include/armnn/IRuntime.hpp
@@ -90,6 +90,7 @@ public:
, m_EnableGpuProfiling(false)
, m_DynamicBackendsPath("")
, m_CustomAllocator(nullptr)
+ , m_ProtectedMode(false)
{}
/// If set, uses the GpuAcc tuned parameters from the given object when executing GPU workloads.
@@ -108,6 +109,12 @@ public:
/// Only supported for GpuAcc
ICustomAllocator* m_CustomAllocator;
+ /// Setting this flag will allow the user to create the Runtime in protected mode.
+ /// It will run all the inferences on protected memory and will make sure that
+ /// INetworkProperties::m_ImportEnabled set to true with MemorySource::DmaBufProtected option
+ /// This will use Protected Memory Allocator associated with the backend
+ bool m_ProtectedMode;
+
struct ExternalProfilingOptions
{
ExternalProfilingOptions()