Skip to content

Commit

Permalink
v4.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
HailoRT-Automation committed Jul 6, 2022
1 parent 3506da8 commit 8295c06
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion hailort/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 7 additions & 3 deletions hailort/hailortcli/download_action_list_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#include <iostream>
#include <iomanip>

#define MHz (1000 * 1000)

constexpr int DownloadActionListCommand::INVALID_NUMERIC_VALUE;

DownloadActionListCommand::DownloadActionListCommand(CLI::App &parent_app) :
Expand All @@ -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({})}
};

Expand Down
2 changes: 1 addition & 1 deletion hailort/libhailort/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down
2 changes: 1 addition & 1 deletion hailort/libhailort/bindings/gstreamer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
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

Expand Down
2 changes: 1 addition & 1 deletion hailort/libhailort/bindings/python/platform/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ def _get_package_paths():
"linux_aarch64",
],
url="https://hailo.ai/",
version="4.8.0",
version="4.8.1",
zip_safe=False,
)
2 changes: 1 addition & 1 deletion hailort/libhailort/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions hailort/libhailort/src/network_group_scheduler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class NetworkGroupScheduler final {
: 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()) {
Expand Down

0 comments on commit 8295c06

Please sign in to comment.