Skip to content

dank33r/opencv-power

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

POWER-OpenCV: Open Source Computer Vision Library optimized for IBM Power architecture

Resources

Contributing

Please read before starting work on a pull request: https://github.com/opencv/opencv/wiki/How_to_contribute Build and other information, see: https://github.com/IBM/opencv-power/wiki

Summary of guidelines:

  • One pull request per issue;
  • Choose the right base branch;
  • Include tests and documentation;
  • Clean up "oops" commits before submitting;
  • Follow the coding style guide.

Compile and install

cd opencv

mkdir build

cd build

cmake -DWITH_JPEG=ON -DWITH_OPENCL=OFF
-DWITH_OPENMP=ON -DWITH_PTHREADS_PF=OFF
-DCMAKE_C_FLAGS="-mcpu=power9 -mtune=power9" -DCMAKE_CXX_FLAGS="-mcpu=power9 -mtune=power9"
-DCMAKE_VERBOSE_MAKEFILE=ON
-DCMAKE_C_COMPILER=/opt/at11.0/bin/gcc -DCMAKE_CXX_COMPILER=/opt/at11.0/bin/g++
..

make -j20 make install

  • You could specify the compiler as your default GCC/G++
  • It is highly recommend to turn OpenMP on for performance consideration, and it is better to set the environment OMP_PROC_BIND=true and proper OMP_NUM_THREADS for affinity.
  • If you are compiling the code on a POWER8 machine, please replace the cmake c/c++ flags as power8

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.4%
  • Cuda 5.4%
  • C 3.5%
  • CMake 2.3%
  • Java 2.1%
  • Python 1.5%
  • Other 0.8%