# 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)
#include <iostream>
#include <iomanip>
+#define MHz (1000 * 1000)
+
constexpr int DownloadActionListCommand::INVALID_NUMERIC_VALUE;
DownloadActionListCommand::DownloadActionListCommand(CLI::App &parent_app) :
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({})}
};
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})
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")
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
"linux_aarch64",
],
url="https://hailo.ai/",
- version="4.8.0",
+ version="4.8.1",
zip_safe=False,
)
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)
: 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()) {