From 45aae9846ed952fdab75c0ac7aea6674f3bad1d6 Mon Sep 17 00:00:00 2001 From: Oleg Pipikin Date: Fri, 2 Aug 2024 15:39:54 +0000 Subject: [PATCH] fix --- .github/workflows/code_snippets.yml | 2 +- .../articles_en/assets/snippets/{ => gpu}/context_sharing.cpp | 0 .../assets/snippets/{ => gpu}/context_sharing_va.cpp | 0 .../assets/snippets/{ => gpu}/context_sharing_va_c.cpp | 0 .../snippets/{ => gpu}/preprocessing_nv12_single_plane.cpp | 0 .../assets/snippets/{ => gpu}/preprocessing_nv12_to_gray.cpp | 0 .../snippets/{ => gpu}/preprocessing_nv12_two_planes.cpp | 0 .../snippets/{ => gpu}/preprocessing_nv12_two_planes_c.cpp | 0 docs/articles_en/assets/snippets/{ => gpu}/queue_sharing.cpp | 0 .../assets/snippets/{ => gpu}/remote_objects_creation.cpp | 0 .../assets/snippets/{ => gpu}/remote_objects_creation_c.cpp | 0 docs/snippets/CMakeLists.txt | 4 ++-- 12 files changed, 3 insertions(+), 3 deletions(-) rename docs/articles_en/assets/snippets/{ => gpu}/context_sharing.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/context_sharing_va.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/context_sharing_va_c.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/preprocessing_nv12_single_plane.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/preprocessing_nv12_to_gray.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/preprocessing_nv12_two_planes.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/preprocessing_nv12_two_planes_c.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/queue_sharing.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/remote_objects_creation.cpp (100%) rename docs/articles_en/assets/snippets/{ => gpu}/remote_objects_creation_c.cpp (100%) diff --git a/.github/workflows/code_snippets.yml b/.github/workflows/code_snippets.yml index af6758bafc11fc..7c36c5555bf90c 100644 --- a/.github/workflows/code_snippets.yml +++ b/.github/workflows/code_snippets.yml @@ -43,7 +43,7 @@ jobs: run: brew install scons - name: CMake configure - run: cmake -DCMAKE_BUILD_TYPE=Release -DTHREADING=SEQ -B build + run: cmake -DCMAKE_BUILD_TYPE=Release -DTHREADING=SEQ -DENABLE_TESTS=ON -B build - name: Build snippets run: cmake --build build --target openvino_docs_snippets --parallel diff --git a/docs/articles_en/assets/snippets/context_sharing.cpp b/docs/articles_en/assets/snippets/gpu/context_sharing.cpp similarity index 100% rename from docs/articles_en/assets/snippets/context_sharing.cpp rename to docs/articles_en/assets/snippets/gpu/context_sharing.cpp diff --git a/docs/articles_en/assets/snippets/context_sharing_va.cpp b/docs/articles_en/assets/snippets/gpu/context_sharing_va.cpp similarity index 100% rename from docs/articles_en/assets/snippets/context_sharing_va.cpp rename to docs/articles_en/assets/snippets/gpu/context_sharing_va.cpp diff --git a/docs/articles_en/assets/snippets/context_sharing_va_c.cpp b/docs/articles_en/assets/snippets/gpu/context_sharing_va_c.cpp similarity index 100% rename from docs/articles_en/assets/snippets/context_sharing_va_c.cpp rename to docs/articles_en/assets/snippets/gpu/context_sharing_va_c.cpp diff --git a/docs/articles_en/assets/snippets/preprocessing_nv12_single_plane.cpp b/docs/articles_en/assets/snippets/gpu/preprocessing_nv12_single_plane.cpp similarity index 100% rename from docs/articles_en/assets/snippets/preprocessing_nv12_single_plane.cpp rename to docs/articles_en/assets/snippets/gpu/preprocessing_nv12_single_plane.cpp diff --git a/docs/articles_en/assets/snippets/preprocessing_nv12_to_gray.cpp b/docs/articles_en/assets/snippets/gpu/preprocessing_nv12_to_gray.cpp similarity index 100% rename from docs/articles_en/assets/snippets/preprocessing_nv12_to_gray.cpp rename to docs/articles_en/assets/snippets/gpu/preprocessing_nv12_to_gray.cpp diff --git a/docs/articles_en/assets/snippets/preprocessing_nv12_two_planes.cpp b/docs/articles_en/assets/snippets/gpu/preprocessing_nv12_two_planes.cpp similarity index 100% rename from docs/articles_en/assets/snippets/preprocessing_nv12_two_planes.cpp rename to docs/articles_en/assets/snippets/gpu/preprocessing_nv12_two_planes.cpp diff --git a/docs/articles_en/assets/snippets/preprocessing_nv12_two_planes_c.cpp b/docs/articles_en/assets/snippets/gpu/preprocessing_nv12_two_planes_c.cpp similarity index 100% rename from docs/articles_en/assets/snippets/preprocessing_nv12_two_planes_c.cpp rename to docs/articles_en/assets/snippets/gpu/preprocessing_nv12_two_planes_c.cpp diff --git a/docs/articles_en/assets/snippets/queue_sharing.cpp b/docs/articles_en/assets/snippets/gpu/queue_sharing.cpp similarity index 100% rename from docs/articles_en/assets/snippets/queue_sharing.cpp rename to docs/articles_en/assets/snippets/gpu/queue_sharing.cpp diff --git a/docs/articles_en/assets/snippets/remote_objects_creation.cpp b/docs/articles_en/assets/snippets/gpu/remote_objects_creation.cpp similarity index 100% rename from docs/articles_en/assets/snippets/remote_objects_creation.cpp rename to docs/articles_en/assets/snippets/gpu/remote_objects_creation.cpp diff --git a/docs/articles_en/assets/snippets/remote_objects_creation_c.cpp b/docs/articles_en/assets/snippets/gpu/remote_objects_creation_c.cpp similarity index 100% rename from docs/articles_en/assets/snippets/remote_objects_creation_c.cpp rename to docs/articles_en/assets/snippets/gpu/remote_objects_creation_c.cpp diff --git a/docs/snippets/CMakeLists.txt b/docs/snippets/CMakeLists.txt index 46760c605091ad..e6558daf1cd158 100644 --- a/docs/snippets/CMakeLists.txt +++ b/docs/snippets/CMakeLists.txt @@ -25,7 +25,7 @@ file(GLOB SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/*.cpp" file(GLOB GPU_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/../articles_en/assets/snippets/gpu/*.cpp") # add GPU snippets if OpenCL has been found if(TARGET OpenCL::OpenCL) - list(APPEND SOURCES ${GPU_SOURCES}) + list(APPEND SOURCES ${GPU_SOURCES}) endif() # try to find VA libraries @@ -87,7 +87,7 @@ if(OpenCV_FOUND) target_link_libraries(${TARGET_NAME} PRIVATE opencv_core) endif() -target_link_libraries(${TARGET_NAME} PRIVATE gtest gtest_main common_test_utils) +target_link_libraries(${TARGET_NAME} PRIVATE common_test_utils) # ov_ncc_naming_style(FOR_TARGET "${TARGET_NAME}" # SOURCE_DIRECTORIES "${CMAKE_CURRENT_SOURCE_DIR}"