aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikhil Raj <nikhil.raj@arm.com>2021-02-03 10:27:22 +0000
committerNikhil Raj <nikhil.raj@arm.com>2021-02-05 16:47:12 +0000
commit09c610114dd40401c620081a34dabe8503a3a402 (patch)
tree82a2e35862f531b7515f34ec6a627a7b5e40da54
parentd0d7662eb8d53e20ab5e6f53904436d79e5328be (diff)
downloadarmnn-09c610114dd40401c620081a34dabe8503a3a402.tar.gz
IVGCVSW-4143 Add semantic versioning to Arm NN
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com> Change-Id: Ibe1200c6d7be9e04821b4a829c83833d44542ad5
-rw-r--r--include/armnn/Utils.hpp3
-rw-r--r--src/armnn/Utils.cpp6
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