What compiler flags make opencv even more faster?

asked 2017-10-16 14:29:12 -0600

Ajay gravatar image

updated 2017-10-16 14:51:42 -0600

Our application is using opencv and ffmpeg; we want to build the opencv, such that it will leverage all the parallel processing and GPU hardware available under that particular os. Can you please list all compiler level flags which can be used to improve the performance of the opencv while compiling.

Update:

cmake -D WITH_TBB=ON 
-D WITH_OPENMP=ON
-D WITH_IPP=ON 
-D CMAKE_BUILD_TYPE=RELEASE 
-D BUILD_EXAMPLES=OFF 
-D WITH_NVCUVID=ON 
-D WITH_CUDA=ON 
-D BUILD_DOCS=OFF 
-D BUILD_PERF_TESTS=OFF
-D BUILD_TESTS=OFF 
-D WITH_CSTRIPES=ON 
-D WITH_OPENCL=ON 
CMAKE_INSTALL_PREFIX=/usr/local/ ..

I see from http://amritamaz.net/blog/opencv-config link, we can use above flags, is there anything else to add/remove on to above list?

edit retag flag offensive close merge delete