v4.8.1
authorHailoRT-Automation <contact@hailo.ai>
Wed, 6 Jul 2022 08:14:26 +0000 (11:14 +0300)
committerHailoRT-Automation <contact@hailo.ai>
Wed, 6 Jul 2022 08:14:26 +0000 (11:14 +0300)
hailort/CMakeLists.txt
hailort/hailortcli/download_action_list_command.cpp
hailort/libhailort/CMakeLists.txt
hailort/libhailort/bindings/gstreamer/CMakeLists.txt
hailort/libhailort/bindings/python/platform/hailo_platform/pyhailort/hailo_control_protocol.py
hailort/libhailort/bindings/python/platform/setup.py
hailort/libhailort/examples/CMakeLists.txt
hailort/libhailort/src/network_group_scheduler.hpp

index 63edd6806cfcb9c553ba642d507115656fda2099..3b8206d72f0c0d522a958c5a8d507ba7cede061c 100644 (file)
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.0.0)
 # Set firmware version
 add_definitions( -DFIRMWARE_VERSION_MAJOR=4 )
 add_definitions( -DFIRMWARE_VERSION_MINOR=8 )
-add_definitions( -DFIRMWARE_VERSION_REVISION=0 )
+add_definitions( -DFIRMWARE_VERSION_REVISION=1 )
 
 message(STATUS "Building pre_build")
 include(${CMAKE_CURRENT_LIST_DIR}/libhailort/cmake/execute_cmake.cmake)
index 6cb49ced95b158acd92b0850b6da6be95fe6ab2d..d88ca7cd2c64992bdd6d7005aea69592c59dc81b 100644 (file)
@@ -15,6 +15,8 @@
 #include <iostream>
 #include <iomanip>
 
+#define MHz (1000 * 1000)
+
 constexpr int DownloadActionListCommand::INVALID_NUMERIC_VALUE;
 
 DownloadActionListCommand::DownloadActionListCommand(CLI::App &parent_app) :
@@ -34,12 +36,14 @@ hailo_status DownloadActionListCommand::execute(Device &device, const std::strin
     auto curr_time = CliCommon::current_time_to_string();
     CHECK_EXPECTED_AS_STATUS(curr_time);
 
-    // TODO: Get real clock rate (HRT-5998)
-    static const uint32_t CLOCK_CYCLE = 200;
+    auto extended_info = device.get_extended_device_information();
+    CHECK_EXPECTED_AS_STATUS(extended_info);
+    const auto clock_cycle = extended_info->neural_network_core_clock_rate / MHz;
+
     ordered_json action_list_json = {
         {"version", ACTION_LIST_FORMAT_VERSION()},
         {"creation_time", curr_time.release()},
-        {"clock_cycle_MHz", CLOCK_CYCLE},
+        {"clock_cycle_MHz", clock_cycle},
         {"hef", json({})}
     };
 
index aff9879b9a205287bef8ebda484f67ed6dbed798..5a51f0038818b2c5a7f1d97411161d74c5511110 100644 (file)
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.0.0)
 
 set(HAILORT_MAJOR_VERSION    4)
 set(HAILORT_MINOR_VERSION    8)
-set(HAILORT_REVISION_VERSION 0)
+set(HAILORT_REVISION_VERSION 1)
 
 # Add the cmake folder so the modules there are found
 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
index c9fe743b66e503e2a654fc9b7e96bbb2fbcb20de..87a0bc880df036aea650918e649caee8d5735981 100644 (file)
@@ -8,7 +8,7 @@ if(NOT CMAKE_HOST_UNIX)
     message(FATAL_ERROR "Only unix hosts are supported, stopping build")
 endif()
 
-find_package(HailoRT 4.8.0 EXACT REQUIRED)
+find_package(HailoRT 4.8.1 EXACT REQUIRED)
 
 # GST_PLUGIN_DEFINE needs PACKAGE to be defined
 set(GST_HAILO_PACKAGE_NAME "hailo")
index 2754cc84ca34eb24ba8670a893e9985c4de77f4f..a85e69803afdb728819920d74953d2c0555c323e 100644 (file)
@@ -13,7 +13,7 @@ import struct
 SUPPORTED_PROTOCOL_VERSION = 2
 SUPPORTED_FW_MAJOR = 4
 SUPPORTED_FW_MINOR = 8
-SUPPORTED_FW_REVISION = 0
+SUPPORTED_FW_REVISION = 1
 
 MEGA_MULTIPLIER = 1000.0 * 1000.0
 
index 04502e9182de3556f91e237fc3008d1c97590e78..c1658243645f60ba334b1a9c005f6b24ad3b53f6 100644 (file)
@@ -68,6 +68,6 @@ if __name__ == "__main__":
             "linux_aarch64",
         ],
         url="https://hailo.ai/",
-        version="4.8.0",
+        version="4.8.1",
         zip_safe=False,
     )
index 06bc93bd02acb9590e2cd8093644bd935ae5d015..40cb002833e76cae34419f031a7cadbacfde5f1f 100644 (file)
@@ -5,7 +5,7 @@ project(hailort-examples)
 find_package(Threads REQUIRED)
 set(THREADS_PREFER_PTHREAD_FLAG ON)
 
-find_package(HailoRT 4.8.0 EXACT REQUIRED)
+find_package(HailoRT 4.8.1 EXACT REQUIRED)
 
 add_library(example_base INTERFACE)
 target_link_libraries(example_base INTERFACE HailoRT::libhailort Threads::Threads)
index c262ebbb3e34f8d8148b5386fa3183e25421e28a..b7b0b20008ac23cf28d5886bbbc43e074a7eaf2c 100644 (file)
@@ -42,6 +42,7 @@ public:
         : m_algorithm(algorithm), m_before_read_write_mutex(), m_write_read_cv(), m_current_network_group(0),
             m_switching_network_group(true), m_has_current_ng_finished(true), m_next_network_group(0), m_forced_idle_state(false)
         {
+            m_should_stop = false;
             // Temp solution until we'll implement timeout as timers
             m_thread = std::thread([this] () {
                 while (!m_should_stop.load()) {