ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.27k stars 3.05k forks source link

How to make Multi-thread in Ubuntu18.04? #210

Open Chambers1994 opened 4 years ago

Chambers1994 commented 4 years ago

Hello, Mr Yu, Firstly,thank you for your detection source code ,and I want to know how to make Multi-thread in Ubuntu18.04? I try : air@air-G3-3590:~/Tengine/libfacedetection/build$ cmake -O3 .. ; make and I test, however it run in my PC at the same FPS, 17fps ,the same as air@air-G3-3590:~/Tengine/libfacedetection/build$ cmake .. ; make So the sencond question is what is mean "-O3", and how to use it ?

ShiqiYu commented 4 years ago

After you run "cmake .." you will be promoted if OPENMP is enabled. If you aren't sure, you can post the output of cmake here.

Chambers1994 commented 4 years ago

Thank you for reply cmake result as follow: Can you help me ? I can't solve it by myself. Maybe install OPENMP? I don't konw.

------------------ Original ------------------ From: "Shiqi Yu";notifications@github.com; Send time: Saturday, Mar 7, 2020 2:44 PM To: "ShiqiYu/libfacedetection"libfacedetection@noreply.github.com; Cc: "章星星"805806073@qq.com; "Author"author@noreply.github.com; Subject: Re: [ShiqiYu/libfacedetection] How to make Multi-thread inUbuntu18.04? (#210)

After you run "cmake .." you will be promoted if OPENMP is enabled. If you aren't sure, you can post the output of cmake here.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Chambers1994 commented 4 years ago

air@air-G3-3590:~/Tengine/libfacedetection/build$ cmake .. -- The C compiler identification is GNU 6.5.0 -- The CXX compiler identification is GNU 6.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenCV: /usr (found version "3.2.0") AVX512 = OFF AVX2 = ON NEON = OFF OpenMP = DEMO = ON -- Configuring done -- Generating done -- Build files have been written to: /home/air/Tengine/libfacedetection/build air@air-G3-3590:~/Tengine/libfacedetection/build$