From 096598691de246c23902d49d228c7562ba2c9cc5 Mon Sep 17 00:00:00 2001 From: Chin Huat Ang Date: Fri, 27 Sep 2019 06:11:51 +0800 Subject: dldt-inference-engine: add recipe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This recipe builds the inference engine from opencv/dldt 2019 R1.1 release. OpenVINO™ toolkit, short for Open Visual Inference and Neural network Optimization toolkit, provides developers with improved neural network performance on a variety of Intel® processors and helps further unlock cost-effective, real-time vision applications. The toolkit enables deep learning inference and easy heterogeneous execution across multiple Intel® platforms (CPU, Intel® Processor Graphics)—providing implementations across cloud architectures to edge device. For more details, see: https://01.org/openvinotoolkit The recipe needs components from meta-oe so move it to dynamic-layers/openembedded-layer. GPU plugin support needs intel-compute-runtime which can be built by including clang layer in the mix as well. CPU and GPU plugins have been sanity tested to work using classification_sample. Further fine-tuning is still needed to improve the performance. Original patch by Anuj Mittal. Signed-off-by: Chin Huat Ang Signed-off-by: Anuj Mittal --- ...all-sample-apps-and-format_reader-library.patch | 130 +++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-sample-apps-and-format_reader-library.patch (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-sample-apps-and-format_reader-library.patch') diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-sample-apps-and-format_reader-library.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-sample-apps-and-format_reader-library.patch new file mode 100644 index 00000000..6f0eb517 --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0007-Install-sample-apps-and-format_reader-library.patch @@ -0,0 +1,130 @@ +From d96a9413face4e8540400848d9a25a5458bad74a Mon Sep 17 00:00:00 2001 +From: "Brett T. Warden" +Date: Mon, 28 Jan 2019 13:58:03 -0800 +Subject: [PATCH] Install sample apps and format_reader library + +Make sure that we install format_reader library as well. + +Upstream-Status: Submitted + +Signed-off-by: Chin Huat Ang +--- + inference-engine/samples/classification_sample/CMakeLists.txt | 1 + + inference-engine/samples/classification_sample_async/CMakeLists.txt | 1 + + inference-engine/samples/common/format_reader/CMakeLists.txt | 1 + + inference-engine/samples/hello_autoresize_classification/CMakeLists.txt | 1 + + inference-engine/samples/hello_classification/CMakeLists.txt | 1 + + inference-engine/samples/hello_request_classification/CMakeLists.txt | 1 + + inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt | 1 + + inference-engine/samples/style_transfer_sample/CMakeLists.txt | 1 + + inference-engine/samples/validation_app/CMakeLists.txt | 1 + + 9 files changed, 9 insertions(+) + +diff --git a/inference-engine/samples/classification_sample/CMakeLists.txt b/inference-engine/samples/classification_sample/CMakeLists.txt +index 1dab0c9..b2c67ea 100644 +--- a/inference-engine/samples/classification_sample/CMakeLists.txt ++++ b/inference-engine/samples/classification_sample/CMakeLists.txt +@@ -16,6 +16,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${SRC}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE" + COMPILE_PDB_NAME ${TARGET_NAME}) +diff --git a/inference-engine/samples/classification_sample_async/CMakeLists.txt b/inference-engine/samples/classification_sample_async/CMakeLists.txt +index 9e37440..3fc0082 100644 +--- a/inference-engine/samples/classification_sample_async/CMakeLists.txt ++++ b/inference-engine/samples/classification_sample_async/CMakeLists.txt +@@ -16,6 +16,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${SRC}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE" + COMPILE_PDB_NAME ${TARGET_NAME}) +diff --git a/inference-engine/samples/common/format_reader/CMakeLists.txt b/inference-engine/samples/common/format_reader/CMakeLists.txt +index e3ecd58..cc30fec 100644 +--- a/inference-engine/samples/common/format_reader/CMakeLists.txt ++++ b/inference-engine/samples/common/format_reader/CMakeLists.txt +@@ -35,6 +35,7 @@ source_group("include" FILES ${LIBRARY_HEADERS}) + + # Create library file from sources. + add_library(${TARGET_NAME} SHARED ${MAIN_SRC} ${LIBRARY_HEADERS}) ++install(TARGETS ${TARGET_NAME} DESTINATION lib) + target_link_libraries(${TARGET_NAME} ${OpenCV_LIBRARIES}) + + if(CMAKE_VERSION VERSION_LESS "2.8.11") +diff --git a/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt b/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt +index 01deda6..5ef2900 100644 +--- a/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt ++++ b/inference-engine/samples/hello_autoresize_classification/CMakeLists.txt +@@ -21,6 +21,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${SRC}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE" + COMPILE_PDB_NAME ${TARGET_NAME}) +diff --git a/inference-engine/samples/hello_classification/CMakeLists.txt b/inference-engine/samples/hello_classification/CMakeLists.txt +index 845f7e9..276be87 100644 +--- a/inference-engine/samples/hello_classification/CMakeLists.txt ++++ b/inference-engine/samples/hello_classification/CMakeLists.txt +@@ -23,6 +23,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${SRC}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + if(WIN32) + # This target supports UNICODE on Windows +diff --git a/inference-engine/samples/hello_request_classification/CMakeLists.txt b/inference-engine/samples/hello_request_classification/CMakeLists.txt +index c7dbb1e..3e5ab8f 100644 +--- a/inference-engine/samples/hello_request_classification/CMakeLists.txt ++++ b/inference-engine/samples/hello_request_classification/CMakeLists.txt +@@ -23,6 +23,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${SRC}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE" + COMPILE_PDB_NAME ${TARGET_NAME}) +diff --git a/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt b/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt +index 436edc2..adba758 100644 +--- a/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt ++++ b/inference-engine/samples/object_detection_sample_ssd/CMakeLists.txt +@@ -21,6 +21,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${MAIN_SRC} ${MAIN_HEADERS}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + add_dependencies(${TARGET_NAME} gflags) + +diff --git a/inference-engine/samples/style_transfer_sample/CMakeLists.txt b/inference-engine/samples/style_transfer_sample/CMakeLists.txt +index ac2a170..d8e624b 100644 +--- a/inference-engine/samples/style_transfer_sample/CMakeLists.txt ++++ b/inference-engine/samples/style_transfer_sample/CMakeLists.txt +@@ -22,6 +22,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${MAIN_SRC} ${MAIN_HEADERS}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + add_dependencies(${TARGET_NAME} gflags) + +diff --git a/inference-engine/samples/validation_app/CMakeLists.txt b/inference-engine/samples/validation_app/CMakeLists.txt +index 87b337c..07f48b7 100644 +--- a/inference-engine/samples/validation_app/CMakeLists.txt ++++ b/inference-engine/samples/validation_app/CMakeLists.txt +@@ -36,6 +36,7 @@ link_directories(${LIB_FOLDER}) + + # Create library file from sources. + add_executable(${TARGET_NAME} ${MAIN_SRC} ${MAIN_HEADERS}) ++install(TARGETS ${TARGET_NAME} DESTINATION bin) + + set_target_properties(${TARGET_NAME} PROPERTIES "CMAKE_CXX_FLAGS" "${CMAKE_CXX_FLAGS} -fPIE" + COMPILE_PDB_NAME ${TARGET_NAME}) -- cgit v1.2.3-54-g00ecf