This commit is contained in:
HailoRT-Automation
2022-07-06 11:14:26 +03:00
parent 3506da8c3f
commit 8295c0685f
8 changed files with 14 additions and 9 deletions

View 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)

View 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({})}
};

View 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})

View 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")

View 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

View 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,
)

View 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)

View 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()) {