asking bob to use multiple cores available in local CPU

41 views
Skip to first unread message

Abhishek Dutta

unread,
Jul 29, 2013, 5:36:35 AM7/29/13
to bob-...@googlegroups.com
Hi all,
I just installed Bob 1.1.2 in a Fedora Core 14 and it runs well. My machine has 8 cores but when I run facereclib (built on top of Bob, not yet released [1]), it only uses a single core (see the attached screenshot).

Is there any way to make Bob utilize all the available cores when running its operations?

[1] M. G ̈nther, R. Wallace, S. Marcel, An open source framework for standardized comparisons of face recognition algorithms, in: Computer Vision–ECCV 2012. Workshops and Demonstrations, Springer, pp. 547–
556.

Regards,
Abhishek



bob_using_single_core.jpg

Jörg Harder

unread,
Jul 29, 2013, 5:56:02 AM7/29/13
to bob-...@googlegroups.com
Dear Abhishek,

currently, the FaceRecLib does not support multi-threading. The only way
to parallelize the computation is via SGE using the gridtk
(http://pypi.python.org/pypi/gridtk). In its current version, gridtk
runs only on Idiap machines, but it should be easy to adapt it to other
SGE grids.

Internally, we discussed the implementation of a unified interface to
execute either in the SGE or parallel on the local machine. So far we
decided not to do it since it seemed quite complicated and useless for
Idiap. If I find some time, I will look to that issue in more detail,
maybe there is an easier solution.

Sorry for that.
Manuel
> --
> -- You received this message because you are subscribed to the Google
> Groups bob-devel group. To post to this group, send email to
> bob-...@googlegroups.com. To unsubscribe from this group, send email
> to bob-devel+...@googlegroups.com. For more options, visit
> this group at https://groups.google.com/d/forum/bob-devel or directly
> the project website at http://idiap.github.com/bob/
> ---
> You received this message because you are subscribed to the Google
> Groups "bob-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bob-devel+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Abhishek Dutta

unread,
Jul 29, 2013, 6:02:17 AM7/29/13
to bob-...@googlegroups.com, siebe...@googlemail.com
Thanks for the quick reply.

Bob depends on many libraries (Blitz++, numpy, lapack, etc). So, one possible solution would be to let these dependencies use multiple cores. I will check if it is possible to compile these dependencies with multicore usage enabled. If I succeed, I will let you know.

Abhishek

Manuel Günther

unread,
Aug 13, 2013, 11:59:59 AM8/13/13
to bob-...@googlegroups.com, siebe...@googlemail.com
Dear Abhishek,

I just recently re-implemented the gridtk to allow to use multiple threads on the local machine instead of the SGE grid. I also updated the facereclib to use it.

Please check out the latest version of the facereclib and re-buildout. This should automatically download the required branch of the gridtk. Use the --grid local option to run your facereclib scripts. If you need more power, please change the corresponding configuration file under facereclib/confugirations/grid/local.py


Be aware that gridtk is under development and currently only a beta version. It is tested every night, but still there might be unexpected behavior. Please file a bug report under the gridtk package if you experience problems.

Bests
Manuel

Abhishek Dutta

unread,
Aug 14, 2013, 2:58:02 AM8/14/13
to bob-...@googlegroups.com, siebe...@googlemail.com
Thank you manual for the update. I will try it for my future experiments.

Regards,
Abhishek
Reply all
Reply to author
Forward
0 new messages