diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fbf034391c44d5edb99667fcf86bb188ff32fff..05ca99c34d4a28ef426578e98b0090a216117521 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,14 @@ This changelog aims to follow the guiding principles of ### Added - Median Blur for 5x5 and 7x7 kernels. - Gaussian Blur for 21x21 kernels. +- Support for GCC 8.4. +- C example. + +### Changed +- Multithreaded dispatching in the OpenCV HAL of convertScale. + +### Fixed +- Inplace operation of kleidicv_scale_f32. ## 0.4.0 - 2025-03-25 diff --git a/doc/build.md b/doc/build.md index b174a32f163d67c102728130129281cca3a61ef3..5e35f18b2494239e6e5e15ec3d620101626c8a98 100644 --- a/doc/build.md +++ b/doc/build.md @@ -86,7 +86,7 @@ documentation for cross-building instructions. ## Prerequisites To successfully build and compile this project for AArch64 Linux, you'll need the following tools: -- Either GCC 9.4 or higher, or Clang 12 or higher. +- Either GCC 8.4 or higher, or Clang 12 or higher. - Binutils - [CMake](https://cmake.org) 3.16 or higher. - `make` diff --git a/kleidicv/CMakeLists.txt b/kleidicv/CMakeLists.txt index ff6a1cb47e77fc0eeb3a6e24936dda8e603eb082..d901c7cc84005900c2d5f9e80ed1e5c7917924a1 100644 --- a/kleidicv/CMakeLists.txt +++ b/kleidicv/CMakeLists.txt @@ -127,6 +127,15 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") "-flax-vector-conversions" "-Wno-unused-label" ) + # Some warnings are too sensitive in older GCC versions + if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10) + list(APPEND KLEIDICV_CXX_FLAGS + "-Wno-unused-parameter" + "-Wno-unused-but-set-parameter" + "-Wno-maybe-uninitialized" + "-Wno-unused-but-set-variable" + ) + endif() endif() if (KLEIDICV_CHECK_BANNED_FUNCTIONS) diff --git a/kleidicv_thread/CMakeLists.txt b/kleidicv_thread/CMakeLists.txt index 73a4b1c7e4c2cfcafddaf4ac107bd9ab8c8f6889..0710a5300db6fb7ed77e6ec23ba9d9eb60e2869b 100644 --- a/kleidicv_thread/CMakeLists.txt +++ b/kleidicv_thread/CMakeLists.txt @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: 2024 Arm Limited and/or its affiliates +# SPDX-FileCopyrightText: 2024 - 2025 Arm Limited and/or its affiliates # # SPDX-License-Identifier: Apache-2.0 @@ -19,6 +19,16 @@ set(KLEIDICV_THREAD_CXX_FLAGS "-Wno-shadow" # GCC's shadow declaration check is too sensitive for the library ) +# Some warnings are too sensitive in older GCC versions +if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 10) + list(APPEND KLEIDICV_THREAD_CXX_FLAGS + "-Wno-unused-parameter" + "-Wno-unused-but-set-parameter" + "-Wno-maybe-uninitialized" + "-Wno-unused-but-set-variable" + ) +endif() + if (KLEIDICV_CHECK_BANNED_FUNCTIONS) # The `SHELL:` prefix is used to turn off de-duplication of compiler flags, # it is necessary if other headers need to be force included.