-
Notifications
You must be signed in to change notification settings - Fork 71
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
Multi-threading not working on raspberry #95
Comments
v.useful info: |
Actually looks like aruco is compiling with debug flags: |
Added '-DCMAKE_BUILD_TYPE=Release -DENABLE_OPENMP=ON' compile options to turn off debug flags. cmake/compilerOptions.cmake sets wrong flags for raspberry:
|
changing compile options to:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
track_targets performs better when compiled to use a single thread for marker detection:
MParams.maxThreads = 1;
When compiled for multiple or maximum threads:
MParams.maxThreads = -1;
, performance decreases (about 20ms to 25-30ms per frame).cmake sets c++ flags to:
-- C++ flags (Release): -fomit-frame-pointer -O2 -ffast-math -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -DNDEBUG -Wall
seems to be missing threading flags:
-std=c++0x thread.cxx -o thread -pthread
Also check it's building release and not debug
The text was updated successfully, but these errors were encountered: