All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacob Stiffler <j-stiffler@ti.com>
To: Djordje Senicic <x0157990@ti.com>, <meta-arago@arago-project.org>
Subject: Re: [EXTERNAL] [PATCH 2/2] armnn: Upgrade to latest release 19.08
Date: Mon, 9 Sep 2019 10:16:04 -0400	[thread overview]
Message-ID: <5d1ba618-0c9d-aa94-134c-206e00d23cac@ti.com> (raw)
In-Reply-To: <20190903155203.23271-2-x0157990@ti.com>

Denys,

Can you backport this to ti2019.03?


Thanks,

Jake

On 9/3/2019 11:52 AM, Djordje Senicic wrote:
> - Upgrade to latest release and modify example for new API (19.08 change)
> - Realign patches (no change only context lines) for the new release
>
> Signed-off-by: Djordje Senicic <x0157990@ti.com>
> ---
>   ...2-enable-use-of-boost-shared-library.patch | 36 ++++++++-----------
>   .../0004-generate-versioned-library.patch     | 23 ++++++------
>   ...mples-update-for-19.08-modifications.patch | 28 +++++++++++++++
>   .../recipes-support/armnn/armnn_git.bb        | 10 +++---
>   4 files changed, 60 insertions(+), 37 deletions(-)
>   create mode 100644 meta-arago-extras/recipes-support/armnn/armnn/0010-armnnexamples-update-for-19.08-modifications.patch
>
> diff --git a/meta-arago-extras/recipes-support/armnn/armnn/0002-enable-use-of-boost-shared-library.patch b/meta-arago-extras/recipes-support/armnn/armnn/0002-enable-use-of-boost-shared-library.patch
> index 50c2e1da..a436ffda 100644
> --- a/meta-arago-extras/recipes-support/armnn/armnn/0002-enable-use-of-boost-shared-library.patch
> +++ b/meta-arago-extras/recipes-support/armnn/armnn/0002-enable-use-of-boost-shared-library.patch
> @@ -1,37 +1,31 @@
> -From 34a7ec821b11f7bed3dd644bf341cbaf6023516b Mon Sep 17 00:00:00 2001
> -From: Qin Su <qsu@ti.com>
> -Date: Tue, 11 Sep 2018 17:11:07 -0400
> -Subject: [PATCH] enable use of boost shared library
> +From b46177bb1a59df0130aba88555ec4f81024669a8 Mon Sep 17 00:00:00 2001
> +From: Djordje Senicic <x0157990@ti.com>
> +Date: Tue, 27 Aug 2019 09:40:54 -0400
> +Subject: [PATCH] fix boost lib dependency
>   
>   Upstream-Status: Inappropriate [configuration]
> -This is a hack to modify hard coded configuration. If anything, it
> -should be made configurable.
> +This is a hack to modify hard coded configuration. If anything, it should be made configurable.
>   
> -Signed-off-by: Qin Su <qsu@ti.com>
> +Signed-off-by: Djordje Senicic <x0157990@ti.com>
>   ---
> - cmake/GlobalConfig.cmake | 6 ++++--
> - 1 file changed, 4 insertions(+), 2 deletions(-)
> - mode change 100644 => 100755 cmake/GlobalConfig.cmake
> + cmake/GlobalConfig.cmake | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
>   
>   diff --git a/cmake/GlobalConfig.cmake b/cmake/GlobalConfig.cmake
> -old mode 100644
> -new mode 100755
> -index 2dbeada..a5a1113
> +index f518f809..d94c4e50 100755
>   --- a/cmake/GlobalConfig.cmake
>   +++ b/cmake/GlobalConfig.cmake
> -@@ -96,8 +96,10 @@ endif()
> +@@ -135,8 +135,8 @@ endif()
>    set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
> -
> +
>    # Boost
>   -add_definitions("-DBOOST_ALL_NO_LIB") # Turn off auto-linking as we specify the libs manually
>   -set(Boost_USE_STATIC_LIBS ON)
> -+#add_definitions("-DBOOST_ALL_NO_LIB") # Turn off auto-linking as we specify the libs manually
> -+#set(Boost_USE_STATIC_LIBS ON)
>   +add_definitions(-DBOOST_ALL_DYN_LINK) # use shared library
>   +set(Boost_USE_STATIC_LIBS OFF)
>    find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework system filesystem log program_options)
> - include_directories(SYSTEM "${Boost_INCLUDE_DIR}")
> - link_directories(${Boost_LIBRARY_DIR})
> ---
> -1.9.1
> + include_directories(SYSTEM "${Boost_INCLUDE_DIRS}")
> + link_directories(${Boost_LIBRARY_DIRS})
> +--
> +2.17.1
>   
> diff --git a/meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch b/meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch
> index 06756130..a3c3e21a 100644
> --- a/meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch
> +++ b/meta-arago-extras/recipes-support/armnn/armnn/0004-generate-versioned-library.patch
> @@ -1,19 +1,20 @@
> -From ad22150032bda1b1a8d0f0cb4b0b020f80724313 Mon Sep 17 00:00:00 2001
> +From 94bec1c47b8da6350c598827950ef4852e998bd9 Mon Sep 17 00:00:00 2001
>   From: Djordje Senicic <x0157990@ti.com>
> -Date: Mon, 24 Jun 2019 15:10:04 -0400
> -Subject: [PATCH] generate versioned library
> +Date: Mon, 2 Sep 2019 10:16:21 -0400
> +Subject: [PATCH] Generate versioned library
>   
>   Upstream-Status: Inappropriate [configuration]
> +
>   Signed-off-by: Djordje Senicic <x0157990@ti.com>
>   ---
>    CMakeLists.txt | 4 ++++
>    1 file changed, 4 insertions(+)
>   
>   diff --git a/CMakeLists.txt b/CMakeLists.txt
> -index b6c97761..5c7b13a7 100644
> +index 8bdcd8df..38d1390f 100644
>   --- a/CMakeLists.txt
>   +++ b/CMakeLists.txt
> -@@ -88,6 +88,7 @@ if(BUILD_CAFFE_PARSER)
> +@@ -95,6 +95,7 @@ if(BUILD_CAFFE_PARSER)
>    
>        target_link_libraries(armnnCaffeParser armnn)
>        target_link_libraries(armnnCaffeParser ${PROTOBUF_LIBRARIES})
> @@ -21,7 +22,7 @@ index b6c97761..5c7b13a7 100644
>    
>    endif()
>    
> -@@ -112,6 +113,7 @@ if(BUILD_ONNX_PARSER)
> +@@ -119,6 +120,7 @@ if(BUILD_ONNX_PARSER)
>    
>        # Protobuf
>        target_link_libraries(armnnOnnxParser ${PROTOBUF_LIBRARIES})
> @@ -29,18 +30,18 @@ index b6c97761..5c7b13a7 100644
>    endif()
>    
>    if(BUILD_TF_PARSER)
> -@@ -135,6 +137,7 @@ if(BUILD_TF_PARSER)
> +@@ -142,6 +144,7 @@ if(BUILD_TF_PARSER)
>    
>        # Protobuf (use the specific version tensorflow wants)
>        target_link_libraries(armnnTfParser ${PROTOBUF_LIBRARIES})
>   +    set_target_properties(armnnTfParser PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
>    endif()
>    
> - if(BUILD_ARMNN_QUANTIZER)
> -@@ -430,6 +433,7 @@ endif()
> - install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
> + if(BUILD_ARMNN_QUANTIZER AND ARMNNREF)
> +@@ -473,6 +476,7 @@ install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
>    
> - target_link_libraries(armnn ${Boost_LOG_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_SYSTEM_LIBRARY})
> + target_link_libraries(armnn ${Boost_LOG_LIBRARY} ${Boost_THREAD_LIBRARY}
> +                             ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY})
>   +set_target_properties(armnn PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )
>    
>    if(ARMCOMPUTENEON OR ARMCOMPUTECL)
> diff --git a/meta-arago-extras/recipes-support/armnn/armnn/0010-armnnexamples-update-for-19.08-modifications.patch b/meta-arago-extras/recipes-support/armnn/armnn/0010-armnnexamples-update-for-19.08-modifications.patch
> new file mode 100644
> index 00000000..f75b1dc4
> --- /dev/null
> +++ b/meta-arago-extras/recipes-support/armnn/armnn/0010-armnnexamples-update-for-19.08-modifications.patch
> @@ -0,0 +1,28 @@
> +From a3e266a2de7c45116428f4e21645a2657534191b Mon Sep 17 00:00:00 2001
> +From: Djordje Senicic <x0157990@ti.com>
> +Date: Mon, 26 Aug 2019 03:51:39 -0400
> +Subject: [PATCH] armnnexamples: update for 19.08 modifications
> +
> +Upstream-Status: Inappropriate [TI only test code]
> +
> +Signed-off-by: Djordje Senicic <x0157990@ti.com>
> +---
> + tests/ArmnnExamples/ArmnnExamples.cpp | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/tests/ArmnnExamples/ArmnnExamples.cpp b/tests/ArmnnExamples/ArmnnExamples.cpp
> +index d1526539..c10a4fc0 100644
> +--- a/tests/ArmnnExamples/ArmnnExamples.cpp
> ++++ b/tests/ArmnnExamples/ArmnnExamples.cpp
> +@@ -310,7 +310,7 @@ int MainImpl(const char* modelPath,
> +     params.m_OutputBindings = { outputName };
> +     //params.m_EnableProfiling = enableProfiling;
> +     params.m_SubgraphId = 0;
> +-    InferenceModel<TParser, TDataType> model(params, enableProfiling, runtime);
> ++    InferenceModel<TParser, TDataType> model(params, enableProfiling, "", runtime);
> +
> +     VideoCapture cap;
> +     int input_type = INPUT_IMAGE;
> +--
> +2.17.1
> +
> diff --git a/meta-arago-extras/recipes-support/armnn/armnn_git.bb b/meta-arago-extras/recipes-support/armnn/armnn_git.bb
> index 77921218..e8d16944 100644
> --- a/meta-arago-extras/recipes-support/armnn/armnn_git.bb
> +++ b/meta-arago-extras/recipes-support/armnn/armnn_git.bb
> @@ -5,12 +5,12 @@ LICENSE = "MIT & Apache-2.0"
>   LIC_FILES_CHKSUM = "file://LICENSE;md5=3e14a924c16f7d828b8335a59da64074 \
>                       file://${COMMON_LICENSE_DIR}/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
>   
> -PR = "r0"
> -PV = "19.05"
> +PR = "r1"
> +PV = "19.08"
>   PV_MAJOR = "${@d.getVar('PV',d,1).split('.')[0]}"
>   
> -BRANCH = "branches/armnn_19_05"
> -SRCREV = "a723ec5d2ac35948efb5dfd0c121a1a89cb977b7"
> +BRANCH = "branches/armnn_19_08"
> +SRCREV = "26052fcf2f8c91f3479c9484354e88e8944d004d"
>   
>   SRCREV_tidl-api = "7e9a3942ec38efd64d45e34c10cba2f2938f5618"
>   BRANCH_tidl-api = "master"
> @@ -30,8 +30,8 @@ SRC_URI = " \
>       file://0005-add-armnn-mobilenet-test-example.patch \
>       file://0006-armnn-mobilenet-test-example.patch \
>       file://0007-enable-use-of-arm-compute-shared-library.patch \
> -    file://0008-Avoid-stringop-overflow-warning-resulting-in-compila.patch \
>       file://0009-command-line-options-for-video-port-selection.patch \
> +    file://0010-armnnexamples-update-for-19.08-modifications.patch \
>       http://download.tensorflow.org/models/mobilenet_v1_2018_02_22/mobilenet_v1_1.0_224.tgz;name=mobilenet;subdir=${WORKDIR}/tfmodel;destsuffix=tfmodel \
>       git://git.ti.com/tidl/tidl-api.git;name=tidl-api;branch=${BRANCH_tidl-api};subdir=${WORKDIR}/tidl-api;destsuffix=tidl-api \
>   "


  reply	other threads:[~2019-09-09 14:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 15:52 [PATCH 1/2] arm-compute-library: Upgrade to 19.08 release Djordje Senicic
2019-09-03 15:52 ` [PATCH 2/2] armnn: Upgrade to latest release 19.08 Djordje Senicic
2019-09-09 14:16   ` Jacob Stiffler [this message]
2019-09-09 14:15 ` [EXTERNAL] [PATCH 1/2] arm-compute-library: Upgrade to 19.08 release Jacob Stiffler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5d1ba618-0c9d-aa94-134c-206e00d23cac@ti.com \
    --to=j-stiffler@ti.com \
    --cc=meta-arago@arago-project.org \
    --cc=x0157990@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.