libfacedetection icon indicating copy to clipboard operation
libfacedetection copied to clipboard

How to make Multi-thread in Ubuntu18.04?

Open Chambers1994 opened this issue 4 years ago • 3 comments

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 ?

Chambers1994 avatar Mar 07 '20 04:03 Chambers1994

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.

ShiqiYu avatar Mar 07 '20 06:03 ShiqiYu

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";[email protected]; Send time: Saturday, Mar 7, 2020 2:44 PM To: "ShiqiYu/libfacedetection"[email protected]; Cc: "章星星"[email protected]; "Author"[email protected]; 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 avatar Mar 07 '20 07:03 Chambers1994

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$

Chambers1994 avatar Mar 07 '20 07:03 Chambers1994