diff options
-rw-r--r-- | include/armnn/Utils.hpp | 3 | ||||
-rw-r--r-- | src/armnn/Utils.cpp | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/armnn/Utils.hpp b/include/armnn/Utils.hpp index efd3d218e3..b090651813 100644 --- a/include/armnn/Utils.hpp +++ b/include/armnn/Utils.hpp @@ -5,6 +5,7 @@ #pragma once #include "armnn/TypesUtils.hpp" +#include <iostream> namespace armnn { @@ -37,4 +38,6 @@ void ConfigureLogging(bool printToStandardOutput, bool printToDebugOutput, LogSe bool NeonDetected(); +const std::string GetVersion(); + } // namespace armnn diff --git a/src/armnn/Utils.cpp b/src/armnn/Utils.cpp index 62c8ae6262..b9f948aea2 100644 --- a/src/armnn/Utils.cpp +++ b/src/armnn/Utils.cpp @@ -4,6 +4,7 @@ // #include "armnn/Logging.hpp" #include "armnn/Utils.hpp" +#include "armnn/Version.hpp" #if !defined(BARE_METAL) && (defined(__arm__) || defined(__aarch64__)) @@ -73,4 +74,9 @@ bool NeonDetected() return true; } +const std::string GetVersion() +{ + return ARMNN_VERSION; +} + } // namespace armnn
\ No newline at end of file |