Skip to content

Commit 4dc9cea

Browse files
committed
remove ocv
1 parent 33153ce commit 4dc9cea

6 files changed

Lines changed: 2 additions & 93 deletions

File tree

.github/workflows/static-analysis-pr.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
id: review
2222
with:
2323
build_dir: build
24-
apt_packages: mpich,libmpich*,mpi*,openmpi-bin,ninja-build,libomp-19-dev,valgrind,libopencv-dev
24+
apt_packages: mpich,libmpich*,mpi*,openmpi-bin,ninja-build,libomp-19-dev,valgrind
2525
cmake_command: >
2626
cmake -S . -B build
2727
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
@@ -30,7 +30,6 @@ jobs:
3030
-D USE_SEQ=ON -D USE_MPI=ON
3131
-D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
3232
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
33-
-D USE_SYSTEM_OPENCV=ON
3433
config_file: .clang-tidy
3534
exclude: 3rdparty
3635
split_workflow: true
@@ -59,7 +58,7 @@ jobs:
5958
id: review
6059
with:
6160
build_dir: build
62-
apt_packages: mpich,libmpich*,mpi*,openmpi-bin,ninja-build,libomp-19-dev,valgrind,libopencv-dev
61+
apt_packages: mpich,libmpich*,mpi*,openmpi-bin,ninja-build,libomp-19-dev,valgrind
6362
cmake_command: >
6463
cmake -S . -B build
6564
-D CMAKE_C_COMPILER_LAUNCHER=ccache -D CMAKE_CXX_COMPILER_LAUNCHER=ccache
@@ -68,7 +67,6 @@ jobs:
6867
-D USE_SEQ=ON -D USE_MPI=ON
6968
-D USE_OMP=ON -D USE_TBB=ON -D USE_STL=ON
7069
-D CMAKE_BUILD_TYPE=RELEASE -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
71-
-D USE_SYSTEM_OPENCV=ON
7270
config_file: .clang-tidy
7371
exclude: 3rdparty
7472
split_workflow: true

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ include(cmake/onetbb.cmake)
2121
######################### External projects #########################
2222

2323
message( STATUS "PPC step: Setup external projects" )
24-
include(cmake/opencv.cmake)
2524
include(cmake/gtest.cmake)
2625

2726
########################### Documentation ###########################

cmake/opencv.cmake

Lines changed: 0 additions & 45 deletions
This file was deleted.

scripts/run_tests.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,6 @@ def __init__(self):
2929
self.work_dir = None
3030
self.valgrind_cmd = "valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all"
3131

32-
if platform.system() == "Windows":
33-
self.ocv_script_name = "setup_vars_opencv4.cmd"
34-
self.ocv_script_path = Path("build/ppc_opencv/install/") / self.ocv_script_name
35-
else:
36-
self.ocv_script_name = "setup_vars_opencv4.sh"
37-
self.ocv_script_path = Path("build/ppc_opencv/install/bin/") / self.ocv_script_name
38-
3932
if platform.system() == "Windows":
4033
self.mpi_exec = "mpiexec"
4134
else:
@@ -65,18 +58,6 @@ def __source_script(script_path):
6558
print(f"Failed to source script: {script_path}")
6659
return {}
6760

68-
def setup_env(self):
69-
if os.path.isfile(Path(self.__get_project_path()) / self.ocv_script_path):
70-
_work_dir = Path(self.__get_project_path()) / "build/bin"
71-
env_vars = self.__source_script(Path(self.__get_project_path()) / self.ocv_script_path)
72-
else:
73-
_work_dir = Path(self.__get_project_path()) / "install/bin"
74-
env_vars = self.__source_script(Path(_work_dir) / self.ocv_script_name)
75-
76-
self.work_dir = Path(_work_dir)
77-
if not platform.system() == "Windows":
78-
os.environ.update(env_vars)
79-
8061
@staticmethod
8162
def __run_exec(command):
8263
result = subprocess.run(command, shell=True, env=os.environ)
@@ -149,7 +130,6 @@ def run_performance_list(self):
149130
args_dict = init_cmd_args()
150131

151132
ppc_runner = PPCRunner()
152-
ppc_runner.setup_env()
153133

154134
if args_dict["running_type"] in ["threads", "processes"]:
155135
ppc_runner.run_core()

tasks/CMakeLists.txt

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -130,28 +130,6 @@ foreach(TASK_TYPE ${LIST_OF_TASKS})
130130
endif()
131131
endif ()
132132

133-
add_dependencies(${EXEC_FUNC} ppc_opencv)
134-
if(WIN32)
135-
target_include_directories(${EXEC_FUNC} PUBLIC "${CMAKE_BINARY_DIR}/ppc_opencv/install/include")
136-
else()
137-
target_include_directories(${EXEC_FUNC} PUBLIC "${CMAKE_BINARY_DIR}/ppc_opencv/install/include/opencv4")
138-
endif()
139-
140-
141-
if(WIN32)
142-
target_link_directories(${EXEC_FUNC} PUBLIC "${CMAKE_BINARY_DIR}/ppc_opencv/build/lib")
143-
set(OCV_VERSION "4110")
144-
else()
145-
target_link_directories(${EXEC_FUNC} PUBLIC "${CMAKE_BINARY_DIR}/ppc_opencv/install/lib")
146-
endif()
147-
148-
target_link_libraries(${EXEC_FUNC} PUBLIC
149-
opencv_core${OCV_VERSION}
150-
opencv_highgui${OCV_VERSION}
151-
opencv_imgcodecs${OCV_VERSION}
152-
opencv_imgproc${OCV_VERSION}
153-
opencv_videoio${OCV_VERSION})
154-
155133
add_dependencies(${EXEC_FUNC} ppc_googletest)
156134
target_link_directories(${EXEC_FUNC} PUBLIC "${CMAKE_BINARY_DIR}/ppc_googletest/install/lib")
157135
target_link_libraries(${EXEC_FUNC} PUBLIC gtest gtest_main)

tasks/all/example/func_tests/func_all.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#include <cstddef>
44
#include <cstdint>
55
#include <memory>
6-
#include <opencv2/opencv.hpp>
76
#include <vector>
87

98
#include "all/example/include/ops_all.hpp"

0 commit comments

Comments
 (0)