kalibr icon indicating copy to clipboard operation
kalibr copied to clipboard

Enable multi-thread during optimization

Open zhixy opened this issue 5 years ago • 7 comments

I notice that the number of threads is set according to cpu core here, however when I really calibrate camera-imu, only one thread is been used as I make sure that with system monitor.

zhixy avatar Jan 15 '20 11:01 zhixy

I have same problem! how to solve this!

kongdaqing avatar Mar 12 '20 12:03 kongdaqing

I have the same problem too, waiting so long time for the result of calibration

JACKLiuDay avatar Jan 13 '22 06:01 JACKLiuDay

I have same problem too!

DavidNY123 avatar Feb 09 '22 16:02 DavidNY123

I have same problem too!

Hi, you can build your kalibr with release. Only release version can run fast.

JACKLiuDay avatar Feb 14 '22 00:02 JACKLiuDay

I have same problem too!

Hi, you can build your kalibr with release. Only release version can run fast.

Hello,thank u for your reply! But I still have this problem.Only one thread is enable

DavidNY123 avatar Feb 14 '22 12:02 DavidNY123

I have same problem too!

Hi, you can build your kalibr with release. Only release version can run fast.

Hello,thank u for your reply! But I still have this problem.Only one thread is enable

catkin build --cmake-args -DCMAKE_BUILD_TYPE=Release You can try this command and it worked for me.

JACKLiuDay avatar Feb 15 '22 03:02 JACKLiuDay

This is actually due to the backend solver BlockCholeskyLinearSystemSolver not supporting multiple threads. It would be nice to do what is described in it: https://github.com/ethz-asl/kalibr/blob/e9453e0734abec221d4335b1d6fb3202b1c9ff2b/aslam_optimizer/aslam_backend/src/BlockCholeskyLinearSystemSolver.cpp#L58-L72

goldbattle avatar May 04 '22 01:05 goldbattle