IVGCVSW-4143 Add semantic versioning to Arm NN
authorNikhil Raj <nikhil.raj@arm.com>
Wed, 3 Feb 2021 10:27:22 +0000 (10:27 +0000)
committerNikhil Raj <nikhil.raj@arm.com>
Fri, 5 Feb 2021 16:47:12 +0000 (16:47 +0000)
Signed-off-by: Nikhil Raj <nikhil.raj@arm.com>
Change-Id: Ibe1200c6d7be9e04821b4a829c83833d44542ad5

include/armnn/Utils.hpp
src/armnn/Utils.cpp

index efd3d21..b090651 100644 (file)
@@ -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
index 62c8ae6..b9f948a 100644 (file)
@@ -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