Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No change in performance with Dlib with neon flag on Python #698

Closed
harshkn opened this issue Jul 11, 2017 · 2 comments
Closed

No change in performance with Dlib with neon flag on Python #698

harshkn opened this issue Jul 11, 2017 · 2 comments

Comments

@harshkn
Copy link

harshkn commented Jul 11, 2017

Hi, I installed dlib for python with neon flag enabled successfully by using sudo python3 setup.py install --compiler-flags "-mfpu=neon". But when I try it with my program, I did not see any change in the computation time for each frame.

I use only correlation tracker and landmark detection. Is there any way I can check if dlib is really installed with neon ? I checked in the build folder

I found this in /dlib/tools/python/build/CMakeFiles/CMakeOutput.log

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" The C compiler identification is GNU, found in "/home/pi/dlib/tools/python/build/CMakeFiles/3.6.2/CompilerIdC/a.out" Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/c++ Build flags: -mfpu=neon

Am I doing it right ? if yes how can I ensure dlib is compiled with neon by running some operation ?

Thanks in advance :)

@davisking
Copy link
Owner

It sounds like it's compiled with -mfpu=neon. It's just that some things don't benefit from NEON instructions very much, such as the things you are talking about using.

@harshkn
Copy link
Author

harshkn commented Jul 11, 2017

Okay, thank you very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants